exit; } if (isset($_GET["events"])) { events_popup(); exit; } if (isset($_GET["events-list"])) { events_list(); exit; } if (isset($_GET["re-categorize-js"])) { re_categorize_js(); exit; } if (isset($_GET["re-categorize-popup"])) { re_categorize_popup(); exit; } if (isset($_POST["RecategorizeProxyStats"])) { re_categorize_save(); exit; } tabs(); function tabs() { $page = CurrentPageName(); $tpl = new templates(); $array["tasks"] = '{tasks}'; $array["events"] = '{events}'; while (list($num, $ligne) = each($array)) { $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\"><span style='font-size:14px'>{$ligne}</span></a></li>\n");
<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); $user=new usersMenus(); if(!$user->AsSquidAdministrator){$tpl=new templates();echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";exit;} if(isset($_GET["tasks"])){tasks();exit;} if(isset($_GET["events"])){events_popup();exit;} if(isset($_GET["events-list"])){events_list();exit;} if(isset($_GET["re-categorize-js"])){re_categorize_js();exit;} if(isset($_GET["re-categorize-popup"])){re_categorize_popup();exit;} if(isset($_POST["RecategorizeProxyStats"])){re_categorize_save();exit;} tabs(); function tabs(){ $page=CurrentPageName(); $tpl=new templates(); $users=new usersMenus(); $array["tasks"]='{tasks}'; //$array["tasks_events"]='{tasks}:{events}'; //$array["events"]='{events}'; if($users->PROXYTINY_APPLIANCE){ unset($array["events"]); } while (list ($num, $ligne) = each ($array) ){