exit; } if ($_GET["script"] == "network") { echo network_js(); exit; } if ($_GET["script"] == "listen_port") { echo listen_port_js(); exit; } if ($_GET["script"] == "visible_hostname") { echo visible_hostname_js(); exit; } if ($_GET["script"] == "ldap") { echo ldap_js(); exit; } if ($_GET["script"] == "dns") { echo dns_js(); exit; } //plugins if ($_GET["script"] == "plugins") { echo plugins_js(); exit; } if ($_GET["content"] == "plugins") { echo plugins_popup(); exit; }
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["x-save-plugins"])){x_save_plugins();exit;} if(isset($_POST["positive_dns_ttl"])){dns_popup_cache_save();exit;} if($_GET["script"]=="network"){echo network_js();exit;} if($_GET["script"]=="listen_port"){echo listen_port_js();exit;} if($_GET["script"]=="visible_hostname"){echo visible_hostname_js();exit;} if($_GET["script"]=="ldap"){echo ldap_js();exit;} if($_GET["script"]=="dns"){echo dns_js();exit;} //plugins if($_GET["script"]=="plugins"){echo plugins_js();exit;} if($_GET["content"]=="plugins"){echo plugins_popup();exit;} if(isset($_GET["enable_plugins"])){plugins_save();exit;} if($_GET["script"]=="url_regex"){echo url_regex_js();exit;} if(isset($_GET["url_regex_list"])){echo url_regex_popup_list();exit;} if($_GET["script"]=="user-agent-ban"){echo user_agent_ban_js();exit;} if(isset($_GET["user-agent-ban"])){echo user_agent_ban_popup();exit;}