Merge pull request #63 from tuxis-ie/allow-pdns-v4

Allow pdns 4.0 users to use nsedit as well, by allowing to set the AP…
This commit is contained in:
Tuxis Internet Engineering V.O.F 2015-12-17 10:07:18 +01:00
commit 8f2290019e
4 changed files with 24 additions and 4 deletions

View file

@ -11,9 +11,9 @@ if (!is_csrf_safe()) {
}
function api_request($path, $opts = null, $type = null) {
global $apiproto, $apisslverify, $apisid, $apiuser, $apipass, $apiip, $apiport, $authmethod;
global $apiproto, $apisslverify, $apisid, $apiuser, $apipass, $apiip, $apiport, $authmethod, $apipath;
$url = "$apiproto://$apiip:$apiport${path}";
$url = "$apiproto://$apiip:$apiport${apipath}${path}";
if ($authmethod == "auto") {
$ad = curl_init();