connect(); $db->query("SET character set utf8"); $seo["root"]="http://".$_SERVER['SERVER_NAME']."/"; $seo["title"]="E-Diagnostika"; $seo["keywords"]=""; $seo["description"]=""; $seo["copyright"]="© tosuya.net"; $seo["lang"]="cs"; $seo["h1"]=""; if ($_GET["action"]=="logout") { $_SESSION["user_session"]=null; unset($_SESSION["user_session"]); $_SESSION["test_session"]=null; unset($_SESSION["test_session"]); $_SESSION["subject_id"]=null; unset($_SESSION["subject_id"]); session_destroy(); // header("Location: ".$seo["root"]."break"); header("Location: ".$seo["root"]); } switch ($_POST["section"]) { case "administration": require "include/administration.php"; break; } switch ($_GET["section"]) { case "administration": require "include/administration.php"; break; case "sitemap": require "include/sitemap.php"; break; default: require "include/content.php"; break; } $db->disconnect(); ?>