]> git.wh0rd.org - tt-rss.git/blobdiff - sanity_check.php
update.php & daemon: chdir to script directory using __FILE__ magic constant
[tt-rss.git] / sanity_check.php
index c9d0fe9228ff3c853c5752739ca1a6bd9f6a8602..e518a8c269a1514d5a8c543b76025bbe111e49de 100644 (file)
@@ -1,8 +1,8 @@
 <?php
        require_once "functions.php";
 
-       define('EXPECTED_CONFIG_VERSION', 21);
-       define('SCHEMA_VERSION', 81);
+       define('EXPECTED_CONFIG_VERSION', 22);
+       define('SCHEMA_VERSION', 83);
 
        if (!file_exists("config.php")) {
                print "<b>Fatal Error</b>: You forgot to copy
                $err_msg = "php.ini: Safe mode is not supported. If you wish to continue, remove this test from sanity_check.php and proceeed at your own risk. Please note that your bug reports will not be accepted or reviewed.";
        }
 
+       if (PUBSUBHUBBUB_HUB && !function_exists("curl_init")) {
+               $err_msg = "PUBSUBHUBBUB_HUB is defined, but CURL functions are not found. CURL is required for PubSubHubbub support.";
+       }
+
+       if (!class_exists("DOMDocument")) {
+               $err_msg = "PHP: DOMDocument extension not found.";
+       }
+
+       if (!ISCONFIGURED) {
+               $err_msg = "config: please read config.php completely.";
+       }
+
        if ($err_msg) {
                print "<b>Fatal Error</b>: $err_msg\n";
                exit;