]> git.immae.eu Git - github/wallabag/wallabag.git/blame - check_setup.php
Added translation capabilities for epub system
[github/wallabag/wallabag.git] / check_setup.php
CommitLineData
792097fb
NL
1<?php
2
3// PHP 5.3 minimum
4if (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
9if (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
792097fb
NL
16// Check if /cache is writeable
17if (! is_writable('cache')) {
18 die('The directory "cache" must be writeable by your web server user');
19}
20
21// Check if /db is writeable
22if (! 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
27if (is_dir('install')) {
28 require('install/index.php');
29 exit;
30}