diff options
author | Andrew Dolgov <[email protected]> | 2017-06-28 08:27:25 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-06-28 08:27:25 +0300 |
commit | 4496d4a5e1f3ddb5fd0b3a0315f12c207e7c9041 (patch) | |
tree | 64b38c360970f4f8c3f31dff13f45ea506378d87 | |
parent | 93cebbf740d950496948f20cadff6820bdd4e695 (diff) |
do not die silently when config.php is missing
-rw-r--r-- | index.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,4 +1,8 @@ <?php + if (!file_exists("config.php")) { + die("Please copy config.php-dist to config.php and edit it."); + } + require_once "config.php"; $owner = SQLite3::escapeString($_SERVER["PHP_AUTH_USER"]); |