|
@@ -353,14 +353,12 @@ function zimbraSingleClientArea($userData)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function zimbraSingleConfigOptions($test) {
|
|
|
|
|
- logModuleCall(
|
|
|
|
|
- 'zimbrasingle',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $params,
|
|
|
|
|
- "All COS Array",
|
|
|
|
|
- $test
|
|
|
|
|
- );
|
|
|
|
|
|
|
+function zimbraSingleConfigOptions() {
|
|
|
|
|
+ ob_flush();
|
|
|
|
|
+ ob_start();
|
|
|
|
|
+ var_dump(get_defined_vars());
|
|
|
|
|
+ file_put_contents("debug_var_dump.txt", ob_get_flush());
|
|
|
|
|
+
|
|
|
$accessData = zimbraSingleGetAccess();
|
|
$accessData = zimbraSingleGetAccess();
|
|
|
|
|
|
|
|
$api = new Zm_Auth($accessData['zimbraServer'], $accessData['adminUser'], $accessData['adminPass'], "admin");
|
|
$api = new Zm_Auth($accessData['zimbraServer'], $accessData['adminUser'], $accessData['adminPass'], "admin");
|
|
@@ -382,14 +380,14 @@ function zimbraSingleConfigOptions($test) {
|
|
|
'zimbrasingle',
|
|
'zimbrasingle',
|
|
|
__FUNCTION__,
|
|
__FUNCTION__,
|
|
|
$params,
|
|
$params,
|
|
|
- "Error : class of service for $account_name could not be set",
|
|
|
|
|
|
|
+ "Error : could not fetch classes of service",
|
|
|
""
|
|
""
|
|
|
);
|
|
);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
$cosNames = recursiveFindAll($response, 'NAME');
|
|
$cosNames = recursiveFindAll($response, 'NAME');
|
|
|
$configOptions = array();
|
|
$configOptions = array();
|
|
|
- $configOptions['cos'] = array (
|
|
|
|
|
|
|
+ $configOptions['cos'] = array(
|
|
|
"FriendlyName" => "Class of Service",
|
|
"FriendlyName" => "Class of Service",
|
|
|
"Type" => "radio",
|
|
"Type" => "radio",
|
|
|
"Options" => implode(',', $cosNames),
|
|
"Options" => implode(',', $cosNames),
|
|
@@ -397,6 +395,16 @@ function zimbraSingleConfigOptions($test) {
|
|
|
);
|
|
);
|
|
|
$apiDomainManager = new Zm_Domain($api);
|
|
$apiDomainManager = new Zm_Domain($api);
|
|
|
$response = $apiDomainManager->getAllDomains();
|
|
$response = $apiDomainManager->getAllDomains();
|
|
|
|
|
+ if(is_a($response, "Exception")) {
|
|
|
|
|
+ logModuleCall(
|
|
|
|
|
+ 'zimbrasingle',
|
|
|
|
|
+ __FUNCTION__,
|
|
|
|
|
+ $params,
|
|
|
|
|
+ "Error : could fetch available maildomains",
|
|
|
|
|
+ ""
|
|
|
|
|
+ );
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
$domainNames = recursiveFindAll($response, 'NAME');
|
|
$domainNames = recursiveFindAll($response, 'NAME');
|
|
|
foreach($domainNames as $domainName) {
|
|
foreach($domainNames as $domainName) {
|
|
|
$configOptions[$domainName] = array(
|
|
$configOptions[$domainName] = array(
|
|
@@ -405,13 +413,6 @@ function zimbraSingleConfigOptions($test) {
|
|
|
"Description" => "use this domain in customer selection?",
|
|
"Description" => "use this domain in customer selection?",
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
- logModuleCall(
|
|
|
|
|
- 'zimbrasingle',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $params,
|
|
|
|
|
- "All COS Array",
|
|
|
|
|
- $test
|
|
|
|
|
- );
|
|
|
|
|
return $configOptions;
|
|
return $configOptions;
|
|
|
}
|
|
}
|
|
|
|
|
|