|
|
@@ -32,7 +32,7 @@ require_once(__DIR__ . '/api/Zm/Server.php');
|
|
|
* @param string $needle key to search for values
|
|
|
* @return array of values
|
|
|
*/
|
|
|
-function recursiveFindAll($haystack, $needle)
|
|
|
+function zimbraSingleFindAll($haystack, $needle)
|
|
|
{
|
|
|
$values = array();
|
|
|
$iterator = new RecursiveArrayIterator((array)$haystack);
|
|
|
@@ -165,7 +165,7 @@ function zimbraSingle_ClientArea($params) {
|
|
|
);
|
|
|
return false;
|
|
|
}
|
|
|
- $webmailUrl = recursiveFindAll($accountInfo, 'PUBLICMAILURL');
|
|
|
+ $webmailUrl = zimbraSingleFindAll($accountInfo, 'PUBLICMAILURL');
|
|
|
$clientInfo['webmailurl'] = $webmailUrl[0]['DATA'];
|
|
|
return array(
|
|
|
'templatefile' => 'clientarea',
|
|
|
@@ -623,7 +623,7 @@ function zimbraSingle_ConfigOptions($params) {
|
|
|
->select('serverid')
|
|
|
->where('groupid', '=', $serverGroupID)
|
|
|
->get();
|
|
|
- $serverIDArray = recursiveFindAll($serverIDObj,'serverid');
|
|
|
+ $serverIDArray = zimbraSingleFindAll($serverIDObj,'serverid');
|
|
|
$server = Capsule::table('tblservers')
|
|
|
->select('ipaddress', 'username', 'password')
|
|
|
->where('id', $serverIDArray)
|
|
|
@@ -669,7 +669,7 @@ function zimbraSingle_ConfigOptions($params) {
|
|
|
);
|
|
|
return false;
|
|
|
}
|
|
|
- $cosNames = recursiveFindAll($cosIDs, 'NAME');
|
|
|
+ $cosNames = zimbraSingleFindAll($cosIDs, 'NAME');
|
|
|
$configOptions = array();
|
|
|
$configOptions['cos'] = array(
|
|
|
'FriendlyName' => 'Class of Service',
|