2014-02-18 20:22:34 +00:00
|
|
|
<?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"');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-12 20:08:48 +00:00
|
|
|
$writableFolders = array('cache', 'db', 'inc/3rdparty/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer');
|
2014-07-11 14:03:59 +00:00
|
|
|
foreach ($writableFolders as $folder) {
|
|
|
|
if (! is_writable($folder)) {
|
|
|
|
die('The directory "' . $folder . '" must be writeable by your web server user');
|
|
|
|
}
|
2014-02-18 20:22:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// install folder still present, need to install wallabag
|
|
|
|
if (is_dir('install')) {
|
|
|
|
require('install/index.php');
|
|
|
|
exit;
|
|
|
|
}
|