mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-05-07 22:42:21 +03:00
Assume that we have Pdns > 4.x
This commit is contained in:
parent
880508f585
commit
bf513b9ffd
1 changed files with 1 additions and 7 deletions
|
@ -32,13 +32,7 @@ class ApiHandler {
|
||||||
$tmp->url = '/api/v1/servers/localhost';
|
$tmp->url = '/api/v1/servers/localhost';
|
||||||
$tmp->go();
|
$tmp->go();
|
||||||
|
|
||||||
$v = intval(substr($tmp->json["version"],0,1));
|
|
||||||
if ($v == 4) {
|
|
||||||
$this->apiurl = $tmp->json["url"];
|
$this->apiurl = $tmp->json["url"];
|
||||||
} else {
|
|
||||||
throw new Exception("Unsupported API version");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function curlopts() {
|
private function curlopts() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue