diff --git a/index.php b/index.php index 7398ab8..a391e1c 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ include 'conststr.php'; include 'functions.php'; $theme = getConfig('theme'); -if ($theme=='') $theme = 'classic.php'; +if ( $theme=='' || !file_exists('theme/'.$theme) ) $theme = 'classic.php'; include 'theme/'.$theme; //echo '
'. json_encode($_SERVER, JSON_PRETTY_PRINT).'
';