diff --git a/index.php b/index.php index 9dcd8b7..7398ab8 100644 --- a/index.php +++ b/index.php @@ -3,6 +3,10 @@ include 'vendor/autoload.php'; include 'conststr.php'; include 'functions.php'; +$theme = getConfig('theme'); +if ($theme=='') $theme = 'classic.php'; +include 'theme/'.$theme; + //echo '
'. json_encode($_SERVER, JSON_PRETTY_PRINT).'
'; //echo '
'. json_encode($_GET, JSON_PRETTY_PRINT).'
'; if (!isset($_SERVER['REDIRECT_URL'])) $_SERVER['REDIRECT_URL'] = '/index.php'; @@ -588,7 +592,3 @@ function fetch_files_children($files, $path, $page, $cache) } return $files; } - -$theme = getConfig('theme'); -if ($theme=='') $theme = 'classic.php'; -include 'theme/'.$theme;