se64_decode($_GET["title"])), clear_string($_GET["type"])); break; } break; case(isset($_GET["lang"]) != ""): if (language_exists(clear_string($_GET["lang"])) === true) { $_SESSION["current_language"] = clear_string($_GET["lang"]); redirect($config["url"]); } else { redirect($config["url"]); } break; case(isset($_GET["page"])): $slug = htmlentities(urlencode($_GET["page"])); $page_exists = database::slug_exists($slug); if ($page_exists === 0) { redirect($config["url"]); } include(__DIR__ . "/template/" . $template . "/header.php"); include(__DIR__ . "/template/" . $template . "/page.php"); include(__DIR__ . "/template/" . $template . "/footer.php"); break; }