示例#1
0
	$usersmenus=new usersMenus();
	if($usersmenus->AsSystemAdministrator==false){exit();}	
	
	
	if(isset($_GET["add-range"])){firewall_range_form();exit;}
	if(isset($_GET["iptables_rules"])){firewall_rules();exit();}
	if(isset($_GET["edit_rule"])){firewall_rule_form();exit;}
	
	if(isset($_POST["source_address"])){firewall_rule_save();exit;}
	if(isset($_POST["sources_addresses"])){firewall_rule_save_multiples();exit;}
	
	
	if(isset($_POST["DeleteIptableRule"])){firewall_rule_delete();exit;}
	if(isset($_POST["EnableFwRule"])){firewall_rule_enable();exit;}
	if(isset($_POST["EnableLog"])){firewall_rule_log();exit;}
	if(isset($_GET["add-multiple-rules"])){firewall_multiple_form();exit;}
	
	if(isset($_POST["range-from"])){firewall_range_save();exit;}
	if(isset($_POST["EmptyAll"])){firewall_empty();exit;}
	if(isset($_GET["options"])){options_js();exit;}
	if(isset($_GET["options-popup"])){options_popup();exit;}
	if(isset($_POST["EnableIptablesDNS"])){options_save();exit;}
	
	firewall_popup();
	
	
function options_js(){
header("content-type: application/x-javascript");
$page=CurrentPageName();
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body("{options}");
示例#2
0
    exit;
}
if (isset($_POST["DeleteIptableRule"])) {
    firewall_rule_delete();
    exit;
}
if (isset($_POST["EnableFwRule"])) {
    firewall_rule_enable();
    exit;
}
if (isset($_POST["EnableLog"])) {
    firewall_rule_log();
    exit;
}
if (isset($_GET["add-multiple-rules"])) {
    firewall_multiple_form();
    exit;
}
if (isset($_POST["range-from"])) {
    firewall_range_save();
    exit;
}
if (isset($_POST["EmptyAll"])) {
    firewall_empty();
    exit;
}
if (isset($_GET["options"])) {
    options_js();
    exit;
}
if (isset($_GET["options-popup"])) {