//}}} //{{{ Category page if ("{$page}" == "newscat") { $_SESSION['lastpage'] = $page; $start = "0"; if (isset($_REQUEST['start'])) { $start = $_REQUEST['start']; } $cat = "1"; if (isset($_REQUEST['catid'])) { $cat = $_REQUEST['catid']; } elseif (isset($_SESSION['catid'])) { $cat = $_SESSION['catid']; } $_SESSION['catid'] = $cat; $news = $main->getcatnews($role, $start, $nr, $cat); $nrofnews = $main->getcatnrnews($role, $cat); $nrofnews = $nrofnews->records[0]['nr']; $main->printnews($news, $nrofnews, $role, $userid, $start, $nr, $page, ""); } //}}} //{{{ Guestbook if ("{$page}" == "guestbook") { $_SESSION['lastpage'] = $page; $cstart = 0; if (isset($_REQUEST['cstart'])) { $cstart = $_REQUEST['cstart']; } $cnr = $nr; if (isset($_REQUEST['cnr'])) { $cnr = $_REQUEST['cnr'];