]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
replace htmlpurifier with htmlawed
[tt-rss.git] / include / sanity_check.php
index 80ca7822f02c62110c96e9ef67f9497676cebdca..8d5f523776799ba856d7158e5d61c3e21185a404 100644 (file)
                                array_push($errors, "Please don't run this script as root.");
                        }
 
-                       if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
-                               array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value.");
+                       if (version_compare("5.3.0", phpversion()) == 1) {
+                               array_push($errors, "PHP version 5.3.0 or newer required.");
                        }
 
-                       $purifier_cache_dir = CACHE_DIR . "/htmlpurifier";
-
-                       if (!is_writable($purifier_cache_dir)) {
-                               array_push($errors, "HTMLPurifier cache directory should be writable by anyone (chmod -R 777 $purifier_cache_dir)");
+                       if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
+                               array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value.");
                        }
 
                        if (!is_writable(CACHE_DIR . "/images")) {