diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2014-10-10 13:33:54 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2014-10-10 13:33:54 +0200 |
commit | 44d35257e805856b4913c63fcbed3c0acb64bae8 (patch) | |
tree | 11e9d276c34b1b287706cb61182bdc71729661e2 /check_setup.php | |
parent | af8292c1de1886cd975d79f0f42df40e0bd1c5bd (diff) | |
parent | cf8a5e1eedbed484dbcb1ddc9f7a13fc19b7a27b (diff) | |
download | wallabag-44d35257e805856b4913c63fcbed3c0acb64bae8.tar.gz wallabag-44d35257e805856b4913c63fcbed3c0acb64bae8.tar.zst wallabag-44d35257e805856b4913c63fcbed3c0acb64bae8.zip |
Merge branch 'dev'1.8.0
Diffstat (limited to 'check_setup.php')
-rwxr-xr-x[-rw-r--r--] | check_setup.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/check_setup.php b/check_setup.php index 2b84a744..cf02c34b 100644..100755 --- a/check_setup.php +++ b/check_setup.php | |||
@@ -1,28 +1,10 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | // PHP 5.3 minimum | ||
4 | if (version_compare(PHP_VERSION, '5.3.3', '<')) { | ||
5 | die('This software require PHP 5.3.3 minimum'); | ||
6 | } | ||
7 | |||
8 | // Short tags must be enabled for PHP < 5.4 | ||
9 | if (version_compare(PHP_VERSION, '5.4.0', '<')) { | ||
10 | |||
11 | if (! ini_get('short_open_tag')) { | ||
12 | die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"'); | ||
13 | } | ||
14 | } | ||
15 | |||
16 | // Check if /cache is writeable | 3 | // Check if /cache is writeable |
17 | if (! is_writable('cache')) { | 4 | if (! is_writable('cache')) { |
18 | die('The directory "cache" must be writeable by your web server user'); | 5 | die('The directory "cache" must be writeable by your web server user'); |
19 | } | 6 | } |
20 | 7 | ||
21 | // Check if /db is writeable | ||
22 | if (! is_writable('db')) { | ||
23 | die('The directory "db" must be writeable by your web server user'); | ||
24 | } | ||
25 | |||
26 | // install folder still present, need to install wallabag | 8 | // install folder still present, need to install wallabag |
27 | if (is_dir('install')) { | 9 | if (is_dir('install')) { |
28 | require('install/index.php'); | 10 | require('install/index.php'); |