} // // Found a category ID? // $cat = PMF_Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT, 0); $cat_from_id = -1; if (is_numeric($id) && $id > 0) { $cat_from_id = $category->getCategoryIdFromArticle($id); } if ($cat_from_id != -1 && $cat == 0) { $cat = $cat_from_id; } $category->transform(0); $category->collapseAll(); if ($cat != 0) { $category->expandTo($cat); } if (isset($cat) && $cat != 0 && $id == '' && isset($category->categoryName[$cat]['name'])) { $title = ' - ' . $category->categoryName[$cat]['name']; } // // Found an action request? // if (!isset($allowedVariables[$action])) { $action = 'main'; } // // Select the template for the requested page // if (isset($auth)) { $login_tpl = 'loggedin.tpl';