exit; } if (isset($_GET["items-rules"])) { items(); exit; } if (isset($_GET["diclaimers-rule"])) { disclaimer_rule(); exit; } if (isset($_POST["mailfrom"])) { rule_add(); exit; } if (isset($_POST["del-zmd5"])) { rule_delete(); exit; } js(); function js() { header("content-type: application/x-javascript"); $tpl = new templates(); $page = CurrentPageName(); $title = $tpl->javascript_parse_text("{alternate_servers}"); echo "YahooWin2(990,'{$page}?popup=yes','{$title}')"; } function delete_js() { header("content-type: application/x-javascript"); $tpl = new templates();
$error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } if(isset($_GET["iptables"])){iptables_tabs();exit;} if(isset($_GET["iptables-table"])){iptables_table();exit;} if(isset($_GET["rules"])){rules();exit;} if(isset($_GET["ruleid"])){rule_js();exit;} if(isset($_GET["rule-tabs"])){rule_tab();exit;} if(isset($_GET["rule-popup"])){rule_popup();exit;} if(isset($_POST["isFW"])){isFW_save();exit;} if(isset($_POST["rule-save"])){rule_save();exit;} if(isset($_GET["groupname"])){groupname();exit;} if(isset($_POST["rule-order"])){rule_order();exit;} if(isset($_POST["rule-delete"])){rule_delete();exit;} if(isset($_POST["rule-enable"])){rule_enable();exit;} if(isset($_GET["rule-time"])){rule_time();exit;} if(isset($_POST["time-save"])){time_save();exit;} if(isset($_GET["generic"])){generic_tabs();exit;} if(isset($_POST["EnableArticaAsGateway"])){EnableArticaAsGateway_save();exit;} tabs(); function tabs(){ if(GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)){return;} $page=CurrentPageName(); $net=new networking(); $interfaces=$net->Local_interfaces(); $tpl=new templates(); $generic=$tpl->_ENGINE_parse_body("{central_rules}"); unset($interfaces["lo"]);