|
|
@@ -62,7 +62,7 @@ $customfieldIDsObj = Capsule::table('tblcustomfields')
|
|
|
foreach ($customfieldIDsObj as $customfieldID) {
|
|
|
array_push($customfieldIDs, $customfieldID->id);
|
|
|
}
|
|
|
-$customfieldsvalues = array();
|
|
|
+$reservedAddresses = array();
|
|
|
$customfieldsvaluesObj = Capsule::table('tblcustomfieldsvalues')
|
|
|
->select('value')
|
|
|
->whereIn('relid', $hostingIDs)
|
|
|
@@ -76,17 +76,12 @@ while ($i < count($customfieldsvaluesObj)) {
|
|
|
$maildomain = $customfieldsvaluesObj[$i]->value;
|
|
|
$i++;
|
|
|
$reservedAddress = $mailname . '@' . $maildomain;
|
|
|
- array_push($customfieldsvalues, $reservedAddress);
|
|
|
+ array_push($reservedAddresses, $reservedAddress);
|
|
|
+}
|
|
|
+if(in_array($accountName, $reservedAddresses)) {
|
|
|
+ echo 'no';
|
|
|
+ exit();
|
|
|
}
|
|
|
-
|
|
|
-logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $customfieldsvalues,
|
|
|
- 'debug',
|
|
|
- $customfieldsvaluesObj
|
|
|
-);
|
|
|
-
|
|
|
|
|
|
// check active Zimbra Accounts
|
|
|
$accessData = array('zimbraServer' => '', 'adminUser' => '', 'adminPass' => '');
|