Exemple #1
0
    }
    $guilds = new Guilds();
}
if (defined('load_achievements_class')) {
    if (!@(include 'classes/class.achievements.php')) {
        die('<b>Error:</b> can not load achievements class!');
    }
    $achievements = new Achievements();
}
if (defined('load_items_class')) {
    if (!@(include 'classes/class.items.php')) {
        die('<b>Error:</b> can not load items class!');
    }
    $items = new Items();
}
if (defined('load_mangos_class')) {
    if (!@(include 'classes/class.mangos.php')) {
        die('<b>Error:</b> can not load Mangos class!');
    }
    $mangos = new Mangos();
}
if (defined('load_arenateams_class')) {
    if (!@(include 'classes/class.arenateams.php')) {
        die('<b>Error:</b> can not load arenateams class!');
    }
    $arenateams = new Arenateams();
}
$dbVersion = $armory->aDB->selectCell("SELECT `version` FROM `armory_db_version`");
if ($dbVersion != DB_VERSION) {
    $armory->ArmoryError('DbVersion Error', sprintf('Database error: field `version` in `armory_db_version` table have \'%s\' value, but expected \'%s\'!<br />Apply all SQL updates from \'sql/updates\' folder and refresh this page again.', $dbVersion, DB_VERSION));
}