示例#1
0
    exit;
}
if (isset($_GET["EnablePostfixAutoBlock"])) {
    save();
    exit;
}
if (isset($_GET["BlockDenyAddWhiteList"])) {
    echo BlockDenyWhiteList();
    exit;
}
if (isset($_GET["AutoBlockDenyAddWhiteList"])) {
    AutoBlockDenyAddWhiteList();
    exit;
}
if (isset($_GET["PostfixAutoBlockDenyDelWhiteList"])) {
    PostfixAutoBlockDenyDelWhiteList();
    exit;
}
if (isset($_GET["PostfixAutoBlockDays"])) {
    PostfixAutoBlockParameters();
    exit;
}
if (isset($_GET["PostfixAutoBlockLoadFW"])) {
    firewall_popup();
    exit;
}
if (isset($_GET["PostfixAutoBlockLoadFWRules"])) {
    echo firewall_rules();
    exit;
}
if (isset($_GET["PostfixEnableFwRule"])) {
示例#2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');


	$users=new usersMenus();
	if(!$users->AsPostfixAdministrator){
		$error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
		echo "alert('$error')";
		die();
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["AutoBlockDenyAddWhiteList"])){AutoBlockDenyAddWhiteList();exit;}
	if(isset($_GET["PostfixAutoBlockDenyDelWhiteList"])){PostfixAutoBlockDenyDelWhiteList();exit;}
	if(isset($_GET["BlockDenyAddWhiteList"])){echo WhiteList();exit;}
	
js();



function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{PostfixAutoBlockDenyAddWhiteList}',"postfix.index.php");
	$PostfixAutoBlockDenyAddWhiteList_explain=$tpl->_ENGINE_parse_body('{PostfixAutoBlockDenyAddWhiteList_explain}');
	$prefix=str_replace(".",'_',$page);
	
	$html="