aboutsummaryrefslogblamecommitdiffhomepage
path: root/app/check_essentials.php
blob: 073b6032a4ae61bf95fba467c250f97f1b217854 (plain) (tree)
1
2
3
4
5
6
7
8
9
     


                                                                                    
 



                                                   
                                                 



                                                                                                             
<?php
if (!file_exists(__DIR__ . '/config/config.inc.php')) {
    die('wallabag seems to be not installed. Please execute ./bin/install before.');
}

if (version_compare(PHP_VERSION, '5.3.3', '<')) {
    die('This software require PHP 5.3.3 minimum');
}

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"');
    }
}