|
@@ -19,7 +19,8 @@ class DnsHelper
|
|
|
{
|
|
{
|
|
|
$this->params = $this->getWhmcsParamsByKeys(['domain', 'userid', 'serverhostname', 'domainid', 'serverid', 'pid']);
|
|
$this->params = $this->getWhmcsParamsByKeys(['domain', 'userid', 'serverhostname', 'domainid', 'serverid', 'pid']);
|
|
|
$this->server = Server::select('id', 'nameserver1ip', 'nameserver2ip')->findOrFail($this->params['serverid']);
|
|
$this->server = Server::select('id', 'nameserver1ip', 'nameserver2ip')->findOrFail($this->params['serverid']);
|
|
|
- $this->nameserver = array(trim($this->server->nameserver1ip), trim($this->server->nameserver2ip));
|
|
|
|
|
|
|
+// $this->nameserver = array(trim($this->server->nameserver1ip), trim($this->server->nameserver2ip));
|
|
|
|
|
+ $this->nameserver = array('127.0.0.1', '127.0.0.2'); //test
|
|
|
$this->clientDomains = localAPI('GetClientsDomains', array('clientid' => $this->params['userid']));
|
|
$this->clientDomains = localAPI('GetClientsDomains', array('clientid' => $this->params['userid']));
|
|
|
$this->productManager = new ProductManager();
|
|
$this->productManager = new ProductManager();
|
|
|
$this->productManager->loadById($this->params['pid']);
|
|
$this->productManager->loadById($this->params['pid']);
|