exit; } if (isset($_POST["acl-rule-delete"])) { acl_rule_delete(); exit; } if (isset($_POST["acl-rule-enable"])) { acl_rule_enable(); exit; } if (isset($_POST["acl-rule-move"])) { acl_rule_move(); exit; } if (isset($_POST["acl-rule-order"])) { acl_rule_order(); exit; } page(); function acl_rule_delete_js() { $page = CurrentPageName(); $tpl = new templates(); $q = new mysql_squid_builder(); header("content-type: application/x-javascript"); $t = time(); $ID = intval($_GET["acl-rule-delete-js"]); $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT aclname FROM meta_webfilters_acls WHERE ID='{$ID}'")); $title = utf8_encode($ligne["aclname"]); $ask = $tpl->javascript_parse_text("{delete_this_rule} - {$title} - ?"); $html = "\n\t\t\t\nvar xSave{$t}= function (obj) {\n\tvar res=obj.responseText;\n\tif(res.length>3){alert(res);return;}\n\t\$('#META_PROXY_ACLS_MAIN').flexReload();\n}\t\n\t\nfunction Save{$t}(){\n\tif(!confirm('{$ask}')){return;}\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('acl-rule-delete', '{$ID}');\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\nSave{$t}();\n\t\n";
} if(isset($_POST["aclrulename-group"])){acl_rule_group_save();exit;} if(isset($_POST["aclname-save"])){acl_rule_save();exit;} if(isset($_GET["acls-list"])){acl_list();exit;} if(isset($_GET["Addacl-js"])){acl_js();exit;} if(isset($_GET["Addacl-group"])){acl_group_js();exit;} if(isset($_GET["acl-rule-settings-group"])){acl_group_settings();exit;} if(isset($_GET["acl-rule-group"])){page();exit;} if(isset($_GET["acl-rule-tabs"])){acl_rule_tab();exit;} if(isset($_GET["acl-rule-settings"])){acl_rule_settings();exit;} if(isset($_POST["acl-rule-delete"])){acl_rule_delete();exit;} if(isset($_POST["acl-rule-enable"])){acl_rule_enable();exit;} if(isset($_POST["acl-rule-move"])){acl_rule_move();exit;} if(isset($_POST["acl-rule-order"])){acl_rule_order();exit;} if(isset($_POST["aclrulename"])){acl_main_rule_edit();exit;} if(isset($_POST["ApplySquid"])){squid_compile();exit;} if(isset($_GET["csv"])){output_scv();exit;} if(isset($_POST["EnableSquidPortsRestrictions"])){EnableSquidPortsRestrictions();exit;} if(isset($_POST["SquidAllowSmartPhones"])){SquidAllowSmartPhones();exit;} page(); function acl_group_js(){ $page=CurrentPageName(); $tpl=new templates(); $q=new mysql_squid_builder(); header("content-type: application/x-javascript"); $ID=$_GET["ID"];