diff options
author | Andrew Dolgov <[email protected]> | 2011-12-12 15:19:34 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-12 15:19:34 +0400 |
commit | 9da0e4a2ff84b097cf436b2641fc056315278f55 (patch) | |
tree | b7b7993f3535c9bda9413cbe4ed10ca850c603d1 /index.php | |
parent | fe6d5185d46c06d57d03dba62eb71bd9028e6519 (diff) |
fix 500 error on missing config.php
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,4 +1,10 @@ <?php + if (!file_exists("config.php")) { + print "<b>Fatal Error</b>: You forgot to copy + <b>config.php-dist</b> to <b>config.php</b> and edit it.\n"; + exit; + } + set_include_path(get_include_path() . PATH_SEPARATOR . "include"); require_once "functions.php"; |