include_once('ressources/class.squid.inc'); include_once('ressources/class.tcpip.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["hosts"])){hosts();exit;} if(isset($_GET["host-js"])){hosts_js();exit;} if(isset($_GET["delete-host-js"])){hosts_js_delete();exit;} if(isset($_POST["delete-host-id"])){hosts_delete();exit;} if(isset($_POST["domain"])){domain_save();exit;} if(isset($_GET["table"])){table();exit;} js(); function js(){ header("content-type: application/x-javascript"); $ID=$_GET["ID"]; $t=$_GET["t"]; $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->javascript_parse_text("{blacklist}");
exit; } if (isset($_GET["host-js"])) { hosts_js(); exit; } if (isset($_GET["delete-host-js"])) { hosts_js_delete(); exit; } if (isset($_POST["delete-host-id"])) { hosts_delete(); exit; } if (isset($_POST["domain"])) { domain_save(); exit; } if (isset($_GET["table"])) { table(); exit; } js(); function js() { header("content-type: application/x-javascript"); $ID = $_GET["ID"]; $t = $_GET["t"]; $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->javascript_parse_text("{blacklist}");