Skip to content

Commit 07eb2f5

Browse files
committed
multiple nameservers
1 parent 04b0e0c commit 07eb2f5

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

RestRequest.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
//v2.2.4
3+
//v2.2.5
44

55
class RestRequest {
66

ptisp.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
//v2.2.4
3+
//v2.2.5
44

55
require_once("RestRequest.inc.php");
66

@@ -12,6 +12,7 @@ function ptisp_getConfigArray() {
1212
"DisableFallback" => array("Type" => "yesno", "Description" => "If customer data is invalid, domain registration will fail with fallback disabled. Fallback uses your info to register a domain when your customer's info is invalid",),
1313
"Nichandle" => array("Type" => "text", "Description" => "Specify your nichandle, it will be used as Tech Contact after a domain registration.",),
1414
"Nameserver" => array("Type" => "text", "Description" => "Default nameserver to use in registration.",),
15+
"Nameserver2" => array("Type" => "text", "Description" => "Default nameserver to use in registration.",),
1516
);
1617
return $configarray;
1718
}
@@ -305,6 +306,10 @@ function ptisp_RegisterDomain($params) {
305306
if (empty($params["ns1"]) && !empty($params["Nameserver"])) {
306307
$par["ns"] = $params["Nameserver"];
307308
}
309+
if (empty($params["ns2"]) && !empty($params["Nameserver2"])) {
310+
$par["ns2"] = $params["Nameserver2"];
311+
}
312+
308313

309314
if (!empty($contact)) {
310315
$par["contact"] = $contact;

0 commit comments

Comments
 (0)