]> git.wh0rd.org - tt-rss.git/blobdiff - sanity_check.php
rework user CSS support (bump schema)
[tt-rss.git] / sanity_check.php
index d2f0e31778862e8b41e7c21d7397ba2ddcc7bfd7..628499d172391416a5e414a32fc6014a71b23071 100644 (file)
@@ -1,8 +1,8 @@
 <?php
        require_once "functions.php";
 
-       define('EXPECTED_CONFIG_VERSION', 18);
-       define('SCHEMA_VERSION', 66);
+       define('EXPECTED_CONFIG_VERSION', 20);
+       define('SCHEMA_VERSION', 77);
 
        if (!file_exists("config.php")) {
                print "<b>Fatal Error</b>: You forgot to copy 
        }
 
        if (defined('DAEMON_REFRESH_ONLY')) {
-               $err_msg = "config: option DAEMON_REFRESH_ONLY is obsolete. Please remove this option and read about other ways to update feeds on the <a href='http://tt-rss.spb.ru/trac/wiki/UpdatingFeeds'>wiki</a>.";
+               $err_msg = "config: option DAEMON_REFRESH_ONLY is obsolete. Please remove this option and read about other ways to update feeds on the <a href='http://tt-rss.org/wiki/UpdatingFeeds'>wiki</a>.";
 
        }
 
+       if (defined('ENABLE_SIMPLEPIE')) {
+               $err_msg = "config: ENABLE_SIMPLEPIE is obsolete and replaced with DEFAULT_UPDATE_METHOD. Please adjust your config.php.";
+       }
+
+       if (!defined('DEFAULT_UPDATE_METHOD') || (DEFAULT_UPDATE_METHOD != 0 &&
+                       DEFAULT_UPDATE_METHOD != 1)) {
+               $err_msg = "config: DEFAULT_UPDATE_METHOD should be either 0 or 1.";            
+       }
+
+       if (!is_writable(ICONS_DIR)) {
+               $err_msg = "config: your ICONS_DIR (" . ICONS_DIR . ") is not writable.\n";
+       }
+
        if ($err_msg) {
                print "<b>Fatal Error</b>: $err_msg\n";
                exit;