Update index.php

pull/13/head
qkqpttgf 2020-01-02 12:54:03 +08:00 committed by GitHub
parent 52a67c48e9
commit 2a4cbbe5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,10 @@ include 'vendor/autoload.php';
include 'conststr.php'; include 'conststr.php';
include 'functions.php'; include 'functions.php';
$theme = getConfig('theme');
if ($theme=='') $theme = 'classic.php';
include 'theme/'.$theme;
//echo '<pre>'. json_encode($_SERVER, JSON_PRETTY_PRINT).'</pre>'; //echo '<pre>'. json_encode($_SERVER, JSON_PRETTY_PRINT).'</pre>';
//echo '<pre>'. json_encode($_GET, JSON_PRETTY_PRINT).'</pre>'; //echo '<pre>'. json_encode($_GET, JSON_PRETTY_PRINT).'</pre>';
if (!isset($_SERVER['REDIRECT_URL'])) $_SERVER['REDIRECT_URL'] = '/index.php'; if (!isset($_SERVER['REDIRECT_URL'])) $_SERVER['REDIRECT_URL'] = '/index.php';
@ -588,7 +592,3 @@ function fetch_files_children($files, $path, $page, $cache)
} }
return $files; return $files;
} }
$theme = getConfig('theme');
if ($theme=='') $theme = 'classic.php';
include 'theme/'.$theme;