]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - check_setup.php
Updated legacy changelog
[github/wallabag/wallabag.git] / check_setup.php
old mode 100644 (file)
new mode 100755 (executable)
index eee5d24..cf02c34
@@ -1,22 +1,8 @@
 <?php
-// PHP 5.3 minimum
-if (version_compare(PHP_VERSION, '5.3.3', '<')) {
-    die('This software require PHP 5.3.3 minimum');
-}
-
-// Short tags must be enabled for PHP < 5.4
-if (version_compare(PHP_VERSION, '5.4.0', '<')) {
-
-    if (! ini_get('short_open_tag')) {
-        die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
-    }
-}
 
-$writableFolders = array('cache', 'db');
-foreach ($writableFolders as $folder) {
-    if (! is_writable($folder)) {
-        die('The directory "' . $folder . '" must be writeable by your web server user');
-    }
+// Check if /cache is writeable
+if (! is_writable('cache')) {
+    die('The directory "cache" must be writeable by your web server user');
 }
 
 // install folder still present, need to install wallabag