exit; // Delete page // Delete page case 'page_delete': Editor::DeletePage($_POST['page_id']); exit; // Set default page // Set default page case 'page_default': Editor::SetDefaultPage($_POST['page_id']); exit; default: exit; } } else { print Editor::GetPage($pageid); } } else { $pagename = isset($_GET['page']) ? $_GET['page'] : 'index'; print Content::GetPage($pageid); } StopWatch::Stop(); print "<br/><br/><h1>Execution took " . StopWatch::GetTotal() . "ms with " . Database::$queries . " queries</h1>"; //print "<br/><br/>"; /* if ($_GET['action'] == "login") { if (!$core->Account->m_loggedin) { if ($core->Account->Login($_GET['username'], $_GET['password'], false)) print "Login successful!<br/>"; else print "Login failed<br/>";