diff options
author | tcit <tcit@tcit.fr> | 2014-09-27 17:54:13 +0200 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-09-27 17:54:13 +0200 |
commit | 04a7674bdd20f2f24b32de69c086ecffdf20ceb4 (patch) | |
tree | bcc26634c68a8689ad511513c316058647e90789 /check_setup.php | |
parent | 657245dcbdbca323621952d2b6f9e991dd94fa03 (diff) | |
parent | a15108e65b12ceaf50821783bcaa1ee3fee10d13 (diff) | |
download | wallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.tar.gz wallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.tar.zst wallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.zip |
merge refactor and dev
Diffstat (limited to 'check_setup.php')
-rwxr-xr-x[-rw-r--r--] | check_setup.php | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/check_setup.php b/check_setup.php index eee5d24a..cf02c34b 100644..100755 --- a/check_setup.php +++ b/check_setup.php | |||
@@ -1,22 +1,8 @@ | |||
1 | <?php | 1 | <?php |
2 | // PHP 5.3 minimum | ||
3 | if (version_compare(PHP_VERSION, '5.3.3', '<')) { | ||
4 | die('This software require PHP 5.3.3 minimum'); | ||
5 | } | ||
6 | |||
7 | // Short tags must be enabled for PHP < 5.4 | ||
8 | if (version_compare(PHP_VERSION, '5.4.0', '<')) { | ||
9 | |||
10 | if (! ini_get('short_open_tag')) { | ||
11 | die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"'); | ||
12 | } | ||
13 | } | ||
14 | 2 | ||
15 | $writableFolders = array('cache', 'db'); | 3 | // Check if /cache is writeable |
16 | foreach ($writableFolders as $folder) { | 4 | if (! is_writable('cache')) { |
17 | if (! is_writable($folder)) { | 5 | die('The directory "cache" must be writeable by your web server user'); |
18 | die('The directory "' . $folder . '" must be writeable by your web server user'); | ||
19 | } | ||
20 | } | 6 | } |
21 | 7 | ||
22 | // install folder still present, need to install wallabag | 8 | // install folder still present, need to install wallabag |