Example #1
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.milter.greylist.inc');
	include_once('ressources/class.kas-filter.inc');
	include_once('ressources/class.spamassassin.inc');
	include_once('ressources/class.amavis.inc');
	
	$user=new usersMenus();
	if($user->AsPostfixAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["security"])){security_section();exit();}
	if(isset($_GET["postfix-security"])){security_postfix();exit();}
	
	
	
tabs();


function tabs(){
	$hostname=$_GET["hostname"];
	$tpl=new templates();
	if($hostname==null){$hostname="master";}
	$page=CurrentPageName();
	$array["security"]='{security}';
	
	
	while (list ($num, $ligne) = each ($array) ){
Example #2
0
include_once 'ressources/class.kas-filter.inc';
include_once 'ressources/class.spamassassin.inc';
include_once 'ressources/class.amavis.inc';
$user = new usersMenus();
if ($user->AsPostfixAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["security"])) {
    security_section();
    exit;
}
if (isset($_GET["postfix-security"])) {
    security_postfix();
    exit;
}
tabs();
function tabs()
{
    $hostname = $_GET["hostname"];
    $tpl = new templates();
    if ($hostname == null) {
        $hostname = "master";
    }
    $page = CurrentPageName();
    $array["security"] = '{security}';
    $array["status-pattern"] = "{patterns_versions}";
    while (list($num, $ligne) = each($array)) {
        if ($num == "status-pattern") {