if there is 'index.html', then do not show file but show the html
parent
84599c32d7
commit
1d36bd3213
|
@ -857,11 +857,12 @@ function render_list($path, $files)
|
||||||
|
|
||||||
$theme = getConfig('theme');
|
$theme = getConfig('theme');
|
||||||
if ( $theme=='' || !file_exists('theme/'.$theme) ) $theme = 'classic.php';
|
if ( $theme=='' || !file_exists('theme/'.$theme) ) $theme = 'classic.php';
|
||||||
include 'theme/'.$theme;
|
$htmlpage = include 'theme/'.$theme;
|
||||||
|
|
||||||
$html = '<!--
|
$html = '<!--
|
||||||
github : https://github.com/qkqpttgf/OneManager-php
|
github : https://github.com/qkqpttgf/OneManager-php
|
||||||
-->' . ob_get_clean();
|
-->' . ob_get_clean();
|
||||||
|
if (isset($htmlpage['statusCode'])) return $htmlpage;
|
||||||
if ($_SERVER['Set-Cookie']!='') return output($html, $statusCode, [ 'Set-Cookie' => $_SERVER['Set-Cookie'], 'Content-Type' => 'text/html' ]);
|
if ($_SERVER['Set-Cookie']!='') return output($html, $statusCode, [ 'Set-Cookie' => $_SERVER['Set-Cookie'], 'Content-Type' => 'text/html' ]);
|
||||||
return output($html,$statusCode);
|
return output($html,$statusCode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue