|
|
@@ -344,6 +344,52 @@ function zimbraSingleClientArea($userData)
|
|
|
return $webMailURL[0]['DATA'];
|
|
|
}
|
|
|
|
|
|
+function zimbraSingleConfigOptions() {
|
|
|
+ $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 : class of service for $account_name could not be set",
|
|
|
+ ""
|
|
|
+ );
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ logModuleCall(
|
|
|
+ 'zimbrasingle',
|
|
|
+ __FUNCTION__,
|
|
|
+ $params,
|
|
|
+ "All COS Array",
|
|
|
+ $response
|
|
|
+ );
|
|
|
+ $configOptions = array (
|
|
|
+ "test" => [
|
|
|
+ "FriendlyName" => "Test",
|
|
|
+ "Type" => "text", # Text Box
|
|
|
+ "Size" => "25", # Defines the Field Width
|
|
|
+ "Description" => "Textbox",
|
|
|
+ "Default" => "Example",
|
|
|
+ ],
|
|
|
+ );
|
|
|
+ return $configOptions;
|
|
|
+}
|
|
|
+
|
|
|
function zimbraSingleCheckPassword($pwd)
|
|
|
{
|
|
|
$message = '';
|