Exemplo n.º 1
0
if (!PostFixMultiVerifyRights()) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["antispam"])) {
    config_antispam();
    exit;
}
if (isset($_GET["notification"])) {
    config_notification();
    exit;
}
if (isset($_GET["sa_tag2_level_deflt"])) {
    saveconf();
    exit;
}
if (isset($_GET["mailfrom_notify_admin"])) {
    saveconf();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.maincf.multi.inc');
	if(isset($_GET["org"])){$_GET["ou"]=$_GET["org"];}
	
	if(!PostFixMultiVerifyRights()){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["antispam"])){config_antispam();exit;}
	if(isset($_GET["notification"])){config_notification();exit;}
	if(isset($_GET["sa_tag2_level_deflt"])){saveconf();exit;}
	if(isset($_GET["mailfrom_notify_admin"])){saveconf();exit;}
	
	
	js();

	
function js(){
	
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{APP_AMAVISD_NEW}");
	$hostname=$_GET["hostname"];
	$ou=$_GET["ou"];
	$html="