コード例 #1
0
ファイル: zarafa.webmail.php プロジェクト: brucewu16899/1.6.x
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.mysql.inc');	
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.cyrus.inc');
	include_once('ressources/class.cron.inc');
	
	$users=new usersMenus();
	if(!$users->AsMailBoxAdministrator){
		$tpl=new templates();
		$error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
		echo "alert('$error')";
		die();
	}	
	
	if(isset($_GET["webmail"])){zarafa_settings_webmail();exit;}
	if(isset($_GET["perfs"])){zarafa_settings_performances();exit;}
	if(isset($_POST["ZarafaApacheEnable"])){zarafa_settings_webmail_save();exit;}
	if(isset($_POST["apacheMasterconfig"])){zarafa_settings_performances_save();exit;}
	if(isset($_GET["status"])){status();exit;}
popup();	
	
	function popup(){
		$q=new mysql();
		$page=CurrentPageName();
		$tpl=new templates();
		$sock=new sockets();
		$EnableZarafaMulti=$sock->GET_INFO("EnableZarafaMulti");
		$ZarafaDedicateMySQLServer=$sock->GET_INFO("ZarafaDedicateMySQLServer");
		if(!is_numeric($ZarafaDedicateMySQLServer)){$ZarafaDedicateMySQLServer=0;}
		$users=new usersMenus();
		if(!is_numeric($EnableZarafaMulti)){$EnableZarafaMulti=0;}
コード例 #2
0
ファイル: zarafa.webmail.php プロジェクト: BillTheBest/1.6.x
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.cyrus.inc';
include_once 'ressources/class.cron.inc';
$users = new usersMenus();
if (!$users->AsMailBoxAdministrator) {
    $tpl = new templates();
    $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
    echo "alert('{$error}')";
    die;
}
if (isset($_GET["webmail"])) {
    zarafa_settings_webmail();
    exit;
}
if (isset($_GET["perfs"])) {
    zarafa_settings_performances();
    exit;
}
if (isset($_POST["ZarafaApacheEnable"])) {
    zarafa_settings_webmail_save();
    exit;
}
if (isset($_POST["apacheMasterconfig"])) {
    zarafa_settings_performances_save();
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
popup();