summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-06-28 08:27:25 +0300
committerAndrew Dolgov <[email protected]>2017-06-28 08:27:25 +0300
commit4496d4a5e1f3ddb5fd0b3a0315f12c207e7c9041 (patch)
tree64b38c360970f4f8c3f31dff13f45ea506378d87 /index.php
parent93cebbf740d950496948f20cadff6820bdd4e695 (diff)
do not die silently when config.php is missing
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 8ec19cc..59486eb 100644
--- a/index.php
+++ b/index.php
@@ -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"]);