Пример #1
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.status.inc';
include_once 'ressources/class.rtmm.tools.inc';
session_start();
if (isset($_GET["loadhelp"])) {
    loadhelp();
    exit;
}
if (!isset($_SESSION["uid"])) {
    writelogs("uid=" . $_SESSION["uid"] . " come back to logon", __FUNCTION__, __FILE__);
    header('location:logon.php');
    exit;
}
if (isset($_GET["GeoipCity"])) {
    GeoipCity();
    exit;
}
if (isset($_GET["PostfixStatus"])) {
    echo Artica_infos();
    exit;
}
if (isset($_GET["today"])) {
    echo GetToday();
    exit;
}
if (isset($_GET["lastinfos"])) {
    echo GetLastInfos();
    exit;
Пример #2
0
<?php
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;}