Esempio n. 1
0
include_once 'ressources/class.status.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["form-database"])) {
    database_form();
    exit;
}
if (isset($_GET["howto"])) {
    howto();
    exit;
}
if (isset($_GET["dbindex"])) {
    database_save();
    exit;
}
if (isset($_GET["dbindexDelete"])) {
    database_delete();
    exit;
}
if (isset($_GET["postfix-ldap-databases"])) {
Esempio n. 2
0
<?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');
	include_once('ressources/class.status.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["form-database"])){database_form();exit;}
	if(isset($_GET["howto"])){howto();exit;}
	if(isset($_GET["dbindex"])){database_save();exit;}
	if(isset($_GET["dbindexDelete"])){database_delete();exit;}
	if(isset($_GET["postfix-ldap-databases"])){database_list();exit;}
	
js();


function js(){
$page=CurrentPageName();
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body("{remote_users_databases}");
if(is_base64_encoded($_GET["ou"])){$ou=base64_decode($_GET["ou"]);}else{$ou=$_GET["ou"];}
$hostname=$_GET["hostname"];
$add=$tpl->_ENGINE_parse_body("{add}");