Allow pdns 4.0 users to use nsedit as well, by allowing to set the API version

This commit is contained in:
Mark Schouten 2015-12-17 10:04:54 +01:00
parent 319828033d
commit 59f4f1e70f
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();