diff options
author | Andrew Dolgov <[email protected]> | 2005-11-23 18:20:17 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-23 18:20:17 +0100 |
commit | 66581886f8ace4076d2c08431904974d3f1a4f7a (patch) | |
tree | 4429b78db9b4ac3118d1e06ee1220e00be287a87 /sanity_check.php | |
parent | 74bff337daccf62e402388990faa840dcec766a1 (diff) |
add some basic "did I forget to create config.php" sanity checks
Diffstat (limited to 'sanity_check.php')
-rw-r--r-- | sanity_check.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sanity_check.php b/sanity_check.php new file mode 100644 index 000000000..322aa9bf1 --- /dev/null +++ b/sanity_check.php @@ -0,0 +1,15 @@ +<? + 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."; + exit; + } + + if (!file_exists("magpierss/rss_fetch.inc")) { + print "<b>Fatal Error</b>: You forgot to place + <a href=\"http://magpierss.sourceforge.net\">MagpieRSS</a> + distribution in <b>magpierss/</b> + subdirectory of TT-RSS tree."; + exit; + } +?> |