getPage(1)->getItem("forwards")->getRows() as $row) { if (strtolower($row->getItem("string")->getValue()) == strtolower($_GET["forward"])) { $id = $row->getItem("page")->getValue()->id; } } } catch (Exception $e) {} if (!$id) { throw new NoPageException("404"); } } $website->showPage($id); } catch (Exception $e) { $website->showError($e); exit; } toLog("Show page: " . $_SERVER["REQUEST_URI"] . " (" . round(benchmark("main", "show"), 2) . "s / " . executeQuery("count") . "q)", "II"); ?>