0) $Page = 'pages/'.$QueryItems[0].'.php'; if(!file_exists($Page)) $Page = 'pages/main.php'; if(file_exists('inc/config.php')) include_once('inc/config.php'); else die('Nenalezen soubor inc/config.php. Vytvořte jej z předlohy config.sample.php.'); session_start(); include_once('inc/error.php'); include_once('inc/database.php'); include_once('inc/html.php'); include_once('inc/system.php'); include_once('inc/player.php'); include_once('inc/server.php'); include_once('inc/realm.php'); // SQL injection hack protection foreach($_POST as $Index => $Item) $_POST[$Index] = addslashes($Item); foreach($_GET as $Index => $Item) $_GET[$Index] = addslashes($Item); // classes start $System = new System($Config); $db = $System->Database; $player = new Player($db); $server = new Server($System, 1); $html = new Html(0, $db); $html->Start(); $_GET = $html->GetQueryStringArray(); if(isset($_COOKIE['hof-random']) and $_COOKIE['hof-random'] == 'no') $num_headers = 1; else $num_headers = 8; echo('
'. ''. '
'. ''. '
'); // obsah start $include = 1; if($include == 1) { include_once($Page); } echo('
'. '
'); $html->Stop(); $db->close(); ?>