Explorar el Código

desing configOptions

andre hace 5 años
padre
commit
ca7c55851b
Se han modificado 1 ficheros con 2 adiciones y 12 borrados
  1. 2 12
      zimbraSingle.inc

+ 2 - 12
zimbraSingle.inc

@@ -25,21 +25,10 @@ function zimbraSingleGetAccess()
     $accessData = array('zimbraServer' => '', 'adminUser' => '', 'adminPass' => '');
     $whmcs = App::self();
     $serverGroupID = $whmcs->get_req_var('servergroup');
-    
-//    select * from tblservers where id = (select serverid from tblservergroupsrel where groupid = 11) and active = 1\G
     $serverID = Capsule::table('tblservergroupsrel')
         ->select('serverid')
         ->where('groupid', '=', $serverGroupID)
         ->get();
-
-        logModuleCall(
-            'zimbrasingle',
-            __FUNCTION__,
-            $params,
-            "debug: serverID",
-            $serverID[0]->serverid
-        );
-    
     $servers = Capsule::table('tblservers')
         ->select('ipaddress', 'username', 'password')
         ->where('id', '=', $serverID[0]->serverid)
@@ -419,12 +408,13 @@ function zimbraSingleConfigOptions() {
     }
     $domainNames = recursiveFindAll($response, 'NAME');
     foreach($domainNames as $domainName) {
-        $configOptions[$domainName] = array(
+        $domainOptions[$domainName] = array(
             "FriendlyName" => $domainName,
             "Type" => "yesno",
             "Description" => "use this domain in customer selection?",
         );
     }
+    $configOptions['maildomains'] = $domainOptions;
     return $configOptions;
 }