From 66581886f8ace4076d2c08431904974d3f1a4f7a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2005 18:20:17 +0100 Subject: [PATCH 1/1] add some basic "did I forget to create config.php" sanity checks --- backend.php | 1 + error.php | 1 + login.php | 1 + opml.php | 2 ++ prefs.php | 1 + sanity_check.php | 15 +++++++++++++++ tt-rss.php | 3 ++- 7 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 sanity_check.php 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 @@