mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
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:
commit
8f2290019e
4 changed files with 24 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue