mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* fixed auth against TCs auth table * check for real paths when creating emote aliasses * races page no longer identifies as classes * fixed item comparison tool * fixed js error when trying to display spawn maps
27 lines
693 B
PHP
27 lines
693 B
PHP
<?php
|
|
|
|
define('AOWOW_REVISION', 18);
|
|
define('CLI', PHP_SAPI === 'cli');
|
|
|
|
|
|
$reqExt = ['SimpleXML', 'gd', 'mysqli', 'mbstring'];
|
|
$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, '5.5.0') < 0)
|
|
$error .= 'PHP Version <b>5.5.0</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';
|
|
|
|
?>
|