include_once('ressources/class.system.network.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["search"])){page_search();exit;} if(isset($_GET["port-js"])){port_js();exit;} if(isset($_GET["delete-port-js"])){delete_port_js();exit;} if(isset($_GET["port-popup"])){port_popup();exit;} if(isset($_POST["ipaddr"])){port_save();exit;} if(isset($_POST["delete-port"])){port_delete();exit;} page(); function port_js(){ $page=CurrentPageName(); header("content-type: application/x-javascript"); $ID=intval($_GET["ID"]); $tpl=new templates(); $q=new mysql_squid_builder(); $title=$tpl->javascript_parse_text("{new_port}"); if($ID>0){ $ligne=@mysql_fetch_array($q->QUERY_SQL("SELECT ipaddr,port FROM proxy_ports WHERE ID=$ID")); $title="{$ligne["ipaddr"]}:{$ligne["port"]}";
exit; } if (isset($_GET["delete-port-js"])) { delete_port_js(); exit; } if (isset($_GET["port-popup"])) { port_popup(); exit; } if (isset($_POST["nic"])) { port_save(); exit; } if (isset($_POST["delete-port"])) { port_delete(); exit; } if (isset($_GET["listen-port-popup"])) { echo port_popup_main(); exit; } if (isset($_GET["allow-80-popup"])) { echo allow_port_80_popup(); exit; } if (isset($_GET["certificate-refresh"])) { echo certificate_refresh(); exit; } if (isset($_POST["SquidAllow80Port"])) {