|
@@ -4,7 +4,7 @@ namespace ThurData\Servers\KerioEmail\Core\Helper;
|
|
|
|
|
|
|
|
require_once '/usr/share/php/Net/DNS2.php';
|
|
require_once '/usr/share/php/Net/DNS2.php';
|
|
|
use \Net\DNS2\Net_DNS2_Resolver as Net_DNS2_Resolver;
|
|
use \Net\DNS2\Net_DNS2_Resolver as Net_DNS2_Resolver;
|
|
|
-use WHMCS\Database\Capsule;
|
|
|
|
|
|
|
+use \WHMCS\Database\Capsule as Capsule;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Wrapper for WHMCS params passed to controler functions
|
|
* Wrapper for WHMCS params passed to controler functions
|
|
@@ -19,7 +19,7 @@ class DnsHelper
|
|
|
const DMARC = 'v=DMARC1; p=reject; rua=mailto:technik@thurdata.ch; ruf=mailto:technik@thurdata.ch';
|
|
const DMARC = 'v=DMARC1; p=reject; rua=mailto:technik@thurdata.ch; ruf=mailto:technik@thurdata.ch';
|
|
|
public static function KerioEmailCheckDNS($params)
|
|
public static function KerioEmailCheckDNS($params)
|
|
|
{
|
|
{
|
|
|
- $testselect = Capsule::table('tblhosting')
|
|
|
|
|
|
|
+ $testselect = \Capsule::table('tblhosting')
|
|
|
->select('nameserver1ip')
|
|
->select('nameserver1ip')
|
|
|
->where('id', '=', $params['serverid'])
|
|
->where('id', '=', $params['serverid'])
|
|
|
->get();
|
|
->get();
|