include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["perfs"])){perfs();exit;} if(isset($_POST["cache_mem"])){save();exit;} if(isset($_POST["SaveCacheMem"])){SaveCacheMem();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["cache-mount"])){caches_mount();exit;} if(isset($_POST["HugePages"])){SaveHugePages();exit;} js(); function js(){ $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{cache_mem}"); $page=CurrentPageName(); header("content-type: application/x-javascript"); $html="YahooWin3('650','$page?tabs=yes','$title');";
$tpl = new templates(); header("content-type: application/x-javascript"); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; } } if (isset($_GET["other-options"])) { other_options(); exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["perfs"])) { perfs(); exit; } if (isset($_POST["SquidUrgency"])) { SquidUrgency(); exit; } if (isset($_POST["EnableSquidUrgencyPublic"])) { EnableSquidUrgencyPublic(); exit; } if (isset($_GET["justbutton"])) { justbutton_js(); exit; } if (isset($_GET["activedirectory"])) {