fixups required for successfull setup

This commit is contained in:
Sarjuuk
2014-03-14 19:14:29 +01:00
parent d0b738b628
commit f2ff2346fa
31 changed files with 319 additions and 110 deletions

View File

@@ -12,6 +12,14 @@ if (!file_exists('config/config.php'))
// include all necessities, set up basics
require 'includes/kernel.php';
if (version_compare(PHP_VERSION, '5.4.0') <= 0)
{
if (User::isInGroup(U_GROUP_EMPLOYEE))
$smarty->internalNotice(U_GROUP_EMPLOYEE, 'PHP Version 5.4.0 or higher required! Your version is '.PHP_VERSION."\nCore functions are unavailable!");
else
$smarty->brb();
}
if ($AoWoWconf['maintenance'] && !User::isInGroup(U_GROUP_EMPLOYEE))
$smarty->brb();
else if ($AoWoWconf['maintenance'] && User::isInGroup(U_GROUP_EMPLOYEE))