exit; } if (isset($_GET["rules-browse-popup"])) { rules_browse_popup(); exit; } if (isset($_POST["rule-link-add"])) { rules_link_add(); exit; } if (isset($_POST["rule-link-enable"])) { rules_link_enable(); exit; } if (isset($_POST["rule-link-unlink"])) { rules_link_delete(); exit; } table(); function rules_browse_js() { $q = new mysql_squid_builder(); $page = CurrentPageName(); $tpl = new templates(); $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT rulename FROM webfilter_ufdbexpr WHERE ID={$_GET["ID"]}")); $ligne["rulename"] = str_replace("'", "`", $ligne["rulename"]); $t = $_GET["t"]; $title = $tpl->_ENGINE_parse_body("::{browse}:{groups}:{expressions}"); $html = "\n\tYahooWinBrowse('600','{$page}?rules-browse-popup=yes&ID={$_GET["ID"]}&ruleid={$_GET["ruleid"]}&t={$_GET["t"]}','{$ligne["rulename"]}{$title}');"; echo $html; }
if(isset($_POST["rule-add"])){rules_add();exit;} if(isset($_POST["rule-delete"])){rules_delete();exit;} if(isset($_POST["rule-enable"])){rules_enable();exit;} if(isset($_GET["change-rule-name-js"])){rules_changename_js();exit;} if(isset($_POST["rule-edit"])){rules_edit();exit;} if(isset($_GET["rules-link-js"])){rules_link_js();exit;} if(isset($_GET["rule-link"])){rules_link_popup();exit;} if(isset($_GET["rule-link-list"])){rules_link_list();exit;} if(isset($_GET["rules-browse-js"])){rules_browse_js();exit;} if(isset($_GET["rules-browse-list"])){rules_browse_list();exit;} if(isset($_GET["rules-browse-popup"])){rules_browse_popup();exit;} if(isset($_POST["rule-link-add"])){rules_link_add();exit;} if(isset($_POST["rule-link-enable"])){rules_link_enable();exit;} if(isset($_POST["rule-link-unlink"])){rules_link_delete();exit;} table(); function rules_browse_js(){ $q=new mysql_squid_builder(); $page=CurrentPageName(); $tpl=new templates(); $ligne=mysql_fetch_array($q->QUERY_SQL("SELECT rulename FROM webfilter_ufdbexpr WHERE ID={$_GET["ID"]}")); $ligne["rulename"]=str_replace("'", "`", $ligne["rulename"]); $t=$_GET["t"]; $title=$tpl->_ENGINE_parse_body("::{browse}:{groups}:{expressions}"); $html=" YahooWinBrowse('600','$page?rules-browse-popup=yes&ID={$_GET["ID"]}&ruleid={$_GET["ruleid"]}&t={$_GET["t"]}','{$ligne["rulename"]}$title');"; echo $html; }