]> git.immae.eu Git - github/wallabag/wallabag.git/blob - check_setup.php
changes in all themes
[github/wallabag/wallabag.git] / check_setup.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
15 $writableFolders = array('cache', 'db', 'inc/3rdparty/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer');
16 foreach ($writableFolders as $folder) {
17 if (! is_writable($folder)) {
18 die('The directory "' . $folder . '" must be writeable by your web server user');
19 }
20 }
21
22 // install folder still present, need to install wallabag
23 if (is_dir('install')) {
24 require('install/index.php');
25 exit;
26 }