예제 #1
0
파일: cmd.php 프로젝트: brucewu16899/artica
    exit;
}
if (isset($_GET["zarafa-migrate"])) {
    zarafa_migrate();
    exit;
}
if (isset($_GET["zarafa-restart-web"])) {
    zarafa_restart_web();
    exit;
}
if (isset($_GET["zarafa-user-details"])) {
    zarafa_user_details();
    exit;
}
if (isset($_GET["zarafa-user-create-store"])) {
    zarafa_user_create_store();
    exit;
}
//Install/Uninstall
if (isset($_GET["organization-delete"])) {
    organization_delete();
    exit;
}
if (isset($_GET["uninstall-app"])) {
    application_uninstall();
    exit;
}
if (isset($_GET["AppliCenterGetDebugInfos"])) {
    application_debug_infos();
    exit;
}
예제 #2
0
파일: zarafa.php 프로젝트: rsd/artica-1.5
<?php
include_once(dirname(__FILE__)."/frame.class.inc");
include_once(dirname(__FILE__)."/class.unix.inc");
include_once(dirname(__FILE__)."/class.postfix.inc");



if(isset($_GET["locales"])){locales();exit;}
if(isset($_GET["foldersnames"])){foldersnames();exit;}
if(isset($_GET["zarafa-user-create-store"])){zarafa_user_create_store();exit;}
if(isset($_GET["DbAttachConverter"])){DbAttachConverter();exit;}
if(isset($_GET["mbx-infos"])){mbx_infos();exit;}
if(isset($_GET["csv-export"])){csv_export();exit;}



while (list ($num, $ligne) = each ($_GET) ){$a[]="$num=$ligne";}
writelogs_framework("unable to unserstand ".@implode("&",$a),__FUNCTION__,__FILE__,__LINE__);


function locales(){
	$unix=new unix();
	$locale=$unix->find_program("locale");
	exec("$locale -a 2>&1",$results);
	echo "<articadatascgi>". base64_encode(serialize($results))."</articadatascgi>";
}

function foldersnames(){
	$unix=new unix();
	$php5=$unix->LOCATE_PHP5_BIN();
	$zarafa=$unix->find_program("zarafa-server");