From 7c5a308d9136a83c8d53c2b78b54c9440594b8cb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 4 Jul 2006 06:51:05 +0100 Subject: add experimental support for simplepie rss parser --- sanity_check.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'sanity_check.php') diff --git a/sanity_check.php b/sanity_check.php index 25f4da0b9..503e4d070 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -16,7 +16,7 @@ exit; } - if (!file_exists("magpierss/rss_fetch.inc")) { + if (RSS_BACKEND_TYPE == "magpie" && !file_exists("magpierss/rss_fetch.inc")) { print "Fatal Error: You forgot to place MagpieRSS distribution in magpierss/ @@ -24,9 +24,22 @@ exit; } - if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) { - return "config: your config file version is incorrect. See config.php-dist."; - } + if (RSS_BACKEND_TYPE == "simplepie" && !file_exists("simplepie/simplepie.inc")) { + print "Fatal Error: You forgot to place + SimplePie + distribution in simplepie/ + subdirectory of TT-RSS tree."; + exit; + } + + if (RSS_BACKEND_TYPE != "simplepie" && RSS_BACKEND_TYPE != "magpie") { + print "Fatal Error: Invalid RSS_BACKEND_TYPE"; + exit; + } + + if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) { + return "config: your config file version is incorrect. See config.php-dist."; + } if (file_exists("xml-export.php") || file_exists("xml-import.php")) { print "Fatal Error: XML Import/Export tools (xml-export.php -- cgit v1.2.3