mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* moved wt_presets to DB * scales are now saved sensibly instead of just being dumped as is (also, tables have now constrains) * added admin=weight-presets to edit presets * added an internal user on id:0 who 'owns' the wt-presets and the +1 rates on new comments * consequently added constraints to comment-related tables Misc: * Util::toJSON() priorizes its flags over CFG_DEBUG, wich fixes the modelviewer-redButton * moved terrible javascript-dump from admin-page to template
27 lines
693 B
PHP
27 lines
693 B
PHP
<?php
|
|
|
|
define('AOWOW_REVISION', 19);
|
|
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';
|
|
|
|
?>
|