"; exit(); } $_GET['id'] = stripslashes(strip_tags($_GET['id'])); $_GET['sort'] = stripslashes(strip_tags($_GET['sort'])); if (!array_key_exists('start', $_GET) || $_GET['start'] < 0) { $start = 0; } else { $start = $_GET['start']; } $forum = getForum($_GET['id']); $category = getCategory($forum->category); if ($category->is_helpdesk) { $sort_style = $_GET['sort']; if (!$sort_style) { $sort_style = getSortStyle($logged_in_user,"faq"); } else { setSortStyle($logged_in_user,"faq",$sort_style); } if (!$sort_style) $sort_style = 'activity'; page_head('Help Desk'); } else { $sort_style = $_GET['sort']; if (!$sort_style) { $sort_style = getSortStyle($logged_in_user,"forum"); //$sort_style = $_COOKIE['forum_sort_style']; } else { setSortStyle($logged_in_user, "forum",$sort_style); //setcookie('forum_sort_style', $sort_style, time()+3600*24*365); } if (!$sort_style) $sort_style = 'modified-new'; page_head('Message boards : '.$forum->title); } echo "
"; show_forum($category, $forum, $start, $sort_style, $logged_in_user); page_tail(); ?>