global $gHistory; global $reclist; global $gamenames; $gamenames = array('ob' => 'Oblivion', 'mw' => 'Morrowind', 'sr' => 'Skyrim'); global $libdir; $libdir = './'; if (file_exists($libdir . '/.update')) { $_GET['game'] = 'ob'; $_GET['format'] = 'html'; print start_page('Game Data Offline'); print 'This tool is temporarily offline for a code update. Please check back shortly.'; print end_page(); return; } require_once $libdir . 'outputformat.inc'; $params = process_get(); // Testing!! //$_GET['rec'] = 'WEAP'; //$_GET['edid'] = 'FIDG'; //$_GET['formid'] = '0x000c89aa'; //$_GET['game'] = 'ob'; $gCSData = setup_cs(); if (0 && empty($gHistory['DB'])) { print start_page($gamenames[$_GET['game']] . ' Game Data Offline'); print 'The ' . $_GET['game'] . ' database is currently unavailable. Please check back shortly.'; print end_page(); return; } $gOutput = OutputFormat::getInstance($_GET['format']); $gOutput->set_start_functions('start_page', 'end_page'); if (!empty($_GET['history'])) {
/* * Image Generation */ //include('./functions/system/printImage.php'); /* * Authenticiation * First of all things we want to know wether the webuser is logged in, * and that the logged in username is actually valid. If not, we will * send CONCORD after him. */ $MySelf = auth(); /* * Is this a call for an image only (non-cached)? */ include_once './functions/system/printImage.php'; /* * Load User preferences. */ $PREFS = new preferences($MySelf->getID()); /* * At this point we have all the required configuration files, * the user is authenticated and he/she wants something. (She? * are there any females playing the game?) */ if (isset($_POST['check'])) { // User has submited a form. process_post(); } else { // User is viewing the page, or is requesting a specific page. process_get(); }