Exemplo n.º 1
0
include_once 'ressources/class.amavis.inc';
session_start();
$ldap = new clladp();
if (isset($_GET["loadhelp"])) {
    loadhelp();
    exit;
}
$user = new usersMenus();
if ($user->AsPostfixAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["whitelist"])) {
    SaveWhiteList();
    exit;
}
if (isset($_GET["del_whitelist"])) {
    del_whitelist();
    exit;
}
if (isset($_GET["whitelist-form-add"])) {
    form_whitelist();
    exit;
}
if (isset($_GET["blacklist-form-add"])) {
    form_blacklist();
    exit;
}
if (isset($_GET["MembersSearch"])) {
Exemplo n.º 2
0
include_once('ressources/class.templates.inc');
include_once('ressources/class.spamassassin.inc');
include_once('ressources/class.amavis.inc');

session_start();
$ldap=new clladp();
if(isset($_GET["loadhelp"])){loadhelp();exit;}

	$user=new usersMenus();
	if($user->AsPostfixAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}

if(isset($_GET["whitelist"])){SaveWhiteList();exit;}
if(isset($_GET["del_whitelist"])){del_whitelist();exit;}
if(isset($_GET["js"])){js_popup();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["SelectedDomain"])){popup_switch();exit;}
if(isset($_GET["wblopt"])){wblopt_js();exit;}
if(isset($_GET["wblopt-popup"])){wblopt_popup();exit;}
if(isset($_GET["WBLReplicEnable"])){wblopt_save();exit;}
if(isset($_GET["WBLReplicNow"])){wblopt_replic();exit;}
if(isset($_GET["EnableWhiteListAndBlackListPostfix"])){ArticaRobotsSave();exit;}
if(isset($_GET["popup-domain-white"])){popup_domains();exit;}
if(isset($_GET["popup-domain-black"])){popup_domains();exit;}
if(isset($_GET["popup-hosts"])){popup_hosts();exit;}
if(isset($_GET["white-hosts"])){hosts_WhiteList();exit;}
if(isset($_GET["white-hosts-find"])){hosts_WhiteList_list();exit;}
if(isset($_GET["white-list-host"])){hosts_WhiteList_add();exit;}