upgraded theme to bootstrap and added support for subdirectory hosting

This commit is contained in:
Christian Haschek
2016-11-04 14:54:39 +01:00
parent ff33bed7cd
commit 165cb2f84c
36 changed files with 2803 additions and 1416 deletions

View File

@@ -80,7 +80,7 @@ function whatToDo($url)
if(!is_array($data) || !$data['hash'])
{
if((UPLOAD_FORM_LOCATION && $url==UPLOAD_FORM_LOCATION) || (!UPLOAD_FORM_LOCATION && $url='/'))
if((UPLOAD_FORM_LOCATION && $url==UPLOAD_FORM_LOCATION) || (!UPLOAD_FORM_LOCATION && $url==PATH))
{
$upload_answer = $pm->ProcessUploads();
if($upload_answer)
@@ -126,7 +126,7 @@ function renderAlbum($data)
foreach($data['album'] as $hash)
{
$content.='<a href="/'.$filters.$hash.'"><img class="picture" src="/'.$size.$forcesize.$filters.$hash.'" /></a>';
$content.='<a href="'.PATH.$filters.$hash.'"><img class="picture" src="'.PATH.$size.$forcesize.$filters.$hash.'" /></a>';
}
if($data['embed']===true)