exit; } if (isset($_GET["host-tab"])) { hosts_tab(); exit; } if (isset($_GET["delete-host-js"])) { hosts_js_delete(); exit; } if (isset($_POST["delete-host-id"])) { hosts_delete(); exit; } if (isset($_POST["ID"])) { hosts_save(); exit; } if (isset($_GET["host-aliases"])) { aliases_table(); exit; } if (isset($_GET["host-aliases-list"])) { aliases_list(); exit; } if (isset($_GET["alias-js"])) { aliases_js(); exit; } if (isset($_POST["alias-add"])) {
$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["host-popup"])){hosts_popup();exit;} if(isset($_GET["host-tab"])){hosts_tab();exit;} if(isset($_GET["delete-host-js"])){hosts_js_delete();exit;} if(isset($_POST["delete-host-id"])){hosts_delete();exit;} if(isset($_POST["ID"])){hosts_save();exit;} if(isset($_GET["host-aliases"])){aliases_table();exit;} if(isset($_GET["host-aliases-list"])){aliases_list();exit;} if(isset($_GET["alias-js"])){aliases_js();exit;} if(isset($_POST["alias-add"])){aliases_add();exit;} if(isset($_GET["delete-alias-js"])){alias_js_delete();exit;} if(isset($_POST["delete-alias-id"])){alias_delete();exit;} table(); function alias_delete(){ $q=new mysql_squid_builder(); $q->QUERY_SQL("DELETE FROM dnsmasq_cname WHERE ID={$_POST["delete-alias-id"]}");