if (!$usersmenus->AsAnAdministratorGeneric) { $tpl = new templates(); $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('{$alert}');"; die; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["tabs"])) { tabs(); exit; } if (isset($_GET["list"])) { serverlist(); exit; } if (isset($_GET["update"])) { update(); exit; } if (isset($_GET["update-zoom"])) { update_zoom(); exit; } js(); function js() { $tpl = new templates(); $page = CurrentPageName();
include_once('ressources/class.mysql.inc'); include_once('ressources/class.groups.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.blackboxes.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsSquidAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["listonly"])){servers();exit;} if(isset($_GET["servers"])){servers();exit;} if(isset($_GET["nodes-list"])){serverlist();exit;} if(isset($_GET["events"])){events();exit;} if(isset($_GET["statsremoteservers-list-search"])){events_search();exit;} if(isset($_POST["BuildRemoteConfig"])){BuildRemoteConfig();exit;} if(isset($_POST["AddArticaAgent"])){AddArticaAgent();exit;} if(isset($_POST["refresh-node"])){RefreshNode();exit;} tabs(); function tabs(){ $squid=new squidbee(); $tpl=new templates();