Pārlūkot izejas kodu

test use sections

andre 3 mēneši atpakaļ
vecāks
revīzija
eeed6c58cb

+ 5 - 1
app/UI/Client/Setting/Sections/EditGeneralSection.php

@@ -10,6 +10,7 @@ use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\InputGroup;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\InputGroupElements;
+use ThurData\Servers\KerioEmail\Core\Helper\DnsHelper;
 
 /**
  *
@@ -29,13 +30,16 @@ class EditGeneralSection extends FreeFieldsSection
     public function initContent()
     {
         $maildomain = $this->getWhmcsParamByKey('domain');
+        $dns = new DnsHelper();
+        $selfdns = $dns->selfDns($this->getRequestValue('actionElementId'));
+
 
             logModuleCall(
                 'kerioEmail',
                 __FUNCTION__,
                 $this->getRequestValue('actionElementId'),
                 'Debug Error',
-                $maildomain
+                $selfdns
             );
 
         

+ 1 - 1
core/Helper/DnsHelper.php

@@ -38,7 +38,7 @@ class DnsHelper
         return $this->getResolverRecords($domain);
     }
     
-    private function selfDns($domain){
+    public function selfDns($domain){
         $zoneIDcollection = Capsule::table('dns_manager2_zone')
             ->select('id')
             ->where('name', '=', $domain)