if ($user->SQUID_INSTALLED == false) { if (!$user->WEBSTATS_APPLIANCE) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } } if ($user->AsSquidAdministrator == false) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["purge-js"])) { purge_js(); exit; } if (isset($_GET["dns-servers"])) { dns_servers(); exit; } if (isset($_GET["items"])) { items(); exit; } if (isset($_POST["purge-popup"])) { purge(); exit; } page();
if($user->SQUID_INSTALLED==false){ if(!$user->WEBSTATS_APPLIANCE){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } } if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["purge-js"])){purge_js();exit;} if(isset($_GET["dns-servers"])){dns_servers();exit;} if(isset($_GET["items"])){items();exit;} if(isset($_POST["purge-popup"])){purge();exit;} page(); function purge_js(){ header("content-type: application/x-javascript"); $page=CurrentPageName(); $tpl=new templates(); $explain=$tpl->javascript_parse_text("{squid_purge_dns_explain}"); $dev=$_GET["unlink-disk-js"]; $t=time(); $thml="