if ($action && $admin > 0){ switch ($action) { case 'logout': $adminservice->logout(); header('Location: ' . $OPT['baseurl']); exit(); break; case 'mark_page_read': $iids = $_SESSION['iids']; foreach($iids as $iid) { $headlineservice->markItemRead($uid, $iid); } break; } } $hl =& $headlineservice->getHeadlines($page - 1, $items_per_page, $hl_sort_order, $sort_date, $feed_id, $tags, $terms, $uid, $show_unread_only, $show_private, $saved_only); $templateservice->loadTemplate('headlines.tpl', $tplVars);