From: Andrew Dolgov Date: Wed, 23 Nov 2005 17:20:17 +0000 (+0100) Subject: add some basic "did I forget to create config.php" sanity checks X-Git-Tag: schema_feature_freeze_for_1.1~112 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=66581886f8ace4076d2c08431904974d3f1a4f7a;hp=74bff337daccf62e402388990faa840dcec766a1;p=tt-rss.git add some basic "did I forget to create config.php" sanity checks --- diff --git a/backend.php b/backend.php index 1a267805..cdad2083 100644 --- a/backend.php +++ b/backend.php @@ -22,6 +22,7 @@ define(SCHEMA_VERSION, 2); + require_once "sanity_check.php"; require_once "config.php"; require_once "db.php"; require_once "db-prefs.php"; diff --git a/error.php b/error.php index 6a7b5297..4d5e06e2 100644 --- a/error.php +++ b/error.php @@ -1,4 +1,5 @@ Fatal Error: You forgot to copy + config.php-dist to config.php and edit it."; + exit; + } + + if (!file_exists("magpierss/rss_fetch.inc")) { + print "Fatal Error: You forgot to place + MagpieRSS + distribution in magpierss/ + subdirectory of TT-RSS tree."; + exit; + } +?> diff --git a/tt-rss.php b/tt-rss.php index f52a67d7..3aa5d52c 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -1,6 +1,7 @@