|
|
@@ -350,30 +350,30 @@ function zimbraSingleClientArea($userData)
|
|
|
""
|
|
|
);
|
|
|
return false;
|
|
|
- } else {
|
|
|
- $apiAccountManager = new Zm_Account($api);
|
|
|
- $response = $apiAccountManager->getAccountInfo($account_name);
|
|
|
- if(is_a($response, "Exception")) {
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- "Error : could not gather informations for $account_name",
|
|
|
- ""
|
|
|
- );
|
|
|
- return false;
|
|
|
- } else {
|
|
|
- $webMailURL = recursiveFindAll( $response, 'PUBLICMAILURL');
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- "debug",
|
|
|
- $webMailURL
|
|
|
- );
|
|
|
- return $webMailURL;
|
|
|
- }
|
|
|
}
|
|
|
+ $apiAccountManager = new Zm_Account($api);
|
|
|
+ $response = $apiAccountManager->getAccountInfo($account_name);
|
|
|
+ if(is_a($response, "Exception")) {
|
|
|
+ logModuleCall(
|
|
|
+ 'zimbrasingle',
|
|
|
+ __FUNCTION__,
|
|
|
+ $params,
|
|
|
+ "Error : could not gather informations for $account_name",
|
|
|
+ ""
|
|
|
+ );
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'zimbrasingle',
|
|
|
+ __FUNCTION__,
|
|
|
+ $params,
|
|
|
+ "devug: clientarea",
|
|
|
+ $response
|
|
|
+ );
|
|
|
+
|
|
|
+ $webMailURL = recursiveFindAll( $response, 'PUBLICMAILURL');
|
|
|
+ return $webMailURL;
|
|
|
}
|
|
|
|
|
|
function zimbraSingleConfigOptions($params) {
|
|
|
@@ -516,35 +516,6 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
);
|
|
|
}
|
|
|
|
|
|
-function zimbraSingleUsageUpdate($params) {
|
|
|
- $accessData = zimbraSingleGetAccess();
|
|
|
- $api = new Zm_Auth($accessData['zimbraServer'], $accessData['adminUser'], $accessData['adminPass'], "admin");
|
|
|
- $login = $api->login();
|
|
|
- if(is_a($login, "Exception")) {
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- "Error : cannot login to " . $accessData['zimbraServer'],
|
|
|
- ""
|
|
|
- );
|
|
|
- return false;
|
|
|
- }
|
|
|
- $apiAccountManager = new Zm_Account($api);
|
|
|
- $response = $apiAccountManager->getAllCos();
|
|
|
- if(is_a($response, "Exception")) {
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- "Error : could not fetch classes of service",
|
|
|
- ""
|
|
|
- );
|
|
|
- return false;
|
|
|
- }
|
|
|
- return 'blubb';
|
|
|
-}
|
|
|
-
|
|
|
function recursiveFindAll($haystack, $needle)
|
|
|
{
|
|
|
$values = array();
|