Example #1
0
<?php
session_start();
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.user.inc');
	include_once('ressources/class.mysql.inc');
	
	
	if(isset($_GET["amavis-front"])){user_amavis_front();exit;}
	if(isset($_GET["show"])){user_amavis_tabs();exit;}
	if(isset($_GET["amavisSpamLover"])){SaveAmavisConfig();exit;}
	if(isset($_GET["GoBackDefaultAmavis"])){GoBackDefaultAmavis();exit;}
	if(isset($_GET["milter-greylist"])){miltergrelist();exit;}
	if(isset($_POST["greylistDisable"])){miltergrelist_save();exit;}
js();



function js(){
	
	$tpl=new templates();
	
	if(!isset($_GET["userid"])){
		if(!isset($_SESSION["uid"])){echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}')");exit;}
		$uid=$_SESSION["uid"];
	}
	
	if(isset($_GET["userid"])){
		$users=new usersMenus();
		if(!$users->AllowChangeAntiSpamSettings){echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}')");exit;}
Example #2
0
<?php

session_start();
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.user.inc';
if (isset($_GET["show"])) {
    domain_amavis_front();
    exit;
}
if (isset($_GET["amavisSpamLover"])) {
    SaveAmavisConfig();
    exit;
}
if (isset($_GET["GoBackDefaultAmavis"])) {
    GoBackDefaultAmavis();
    exit;
}
if (isset($_GET["amavis_bypass_rcpt"])) {
    amavis_bypass_rcpt();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $sock = new sockets();
    $EnableLDAPAmavis = $sock->GET_INFO("EnableLDAPAmavis");
    if (!is_numeric($EnableLDAPAmavis)) {
        $EnableLDAPAmavis = 0;