You are using an old PHP version (' . PHP_VERSION . '), to run Kleeja you should use PHP 7.0 or above.' ); } // if mysqli is not installed if (! function_exists('mysqli_connect')) { exit( '

In order to use Kleeja, "php_mysqli" extension has to be installed on your server.

' ); } if (file_exists(PATH . 'config.php')) { include_once PATH . 'config.php'; } include_once PATH . 'includes/functions.php'; if (isset($dbtype) && $dbtype == 'sqlite') { include PATH . 'includes/sqlite.php'; } else { include PATH . 'includes/mysqli.php'; } include_once 'includes/functions_install.php'; /** * print header */ if (! ip('lang')) { echo gettpl('header.html'); } /** * Navigation .. */ switch (g('step', 'str')) { default: case 'language': if (ig('ln')) { echo ''; exit; } echo gettpl('lang.html'); break; case 'what_is_kleeja': echo gettpl('what_is_kleeja.html'); break; case 'official': echo gettpl('official.html'); break; case 'choose' : $install_or_no = $php_ver = true; //check version of PHP if (! function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_VERSION, '<')) { $php_ver = false; } if (file_exists(PATH . 'config.php')) { include_once PATH . 'config.php'; if (! empty($dbuser) && ! empty($dbname)) { $d = inst_get_config('language'); if (! empty($d)) { $install_or_no = false; } } } echo gettpl('choose.html'); break; } /** * print footer */ echo gettpl('footer.html');