mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* enforced v7.1 compliance, preparations for v7.2 * removed deprecated usage of each() * prefer array deconstruction via [] instead of calling list() * try to catch failed session_start() * prefer ... - Token instead of calling func_get_args() func_num_args() * enforce return types in AjaxHandler * revision push
27 lines
677 B
PHP
27 lines
677 B
PHP
<?php
|
|
|
|
define('AOWOW_REVISION', 28);
|
|
define('CLI', PHP_SAPI === 'cli');
|
|
|
|
|
|
$reqExt = ['SimpleXML', 'gd', 'mysqli', 'mbstring', 'fileinfo'];
|
|
$error = '';
|
|
foreach ($reqExt as $r)
|
|
if (!extension_loaded($r))
|
|
$error .= 'Required Extension <b>'.$r."</b> was not found. Please check if it should exist, using \"<i>php -m</i>\"\n\n";
|
|
|
|
if (version_compare(PHP_VERSION, '7.1.0') < 0)
|
|
$error .= 'PHP Version <b>7.1</b> or higher required! Your version is <b>'.PHP_VERSION."</b>.\nCore functions are unavailable!\n";
|
|
|
|
if ($error)
|
|
{
|
|
echo CLI ? strip_tags($error) : $error;
|
|
die();
|
|
}
|
|
|
|
|
|
// include all necessities, set up basics
|
|
require_once 'includes/kernel.php';
|
|
|
|
?>
|