mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-05-08 22:43:58 +03:00
Merge pull request #69 from ruben-herold/master
Fix check for config values
This commit is contained in:
commit
e6db412fbc
2 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,7 @@ Requirements
|
||||||
* A webserver running php
|
* A webserver running php
|
||||||
* php sqlite3
|
* php sqlite3
|
||||||
* php curl
|
* php curl
|
||||||
|
* php with openssl support
|
||||||
* PowerDNS with the experimental JSON-api enabled (3.4.0 should do)
|
* PowerDNS with the experimental JSON-api enabled (3.4.0 should do)
|
||||||
|
|
||||||
Installing
|
Installing
|
||||||
|
|
|
@ -4,7 +4,7 @@ include('config.inc.php');
|
||||||
|
|
||||||
$blocklogin = FALSE;
|
$blocklogin = FALSE;
|
||||||
|
|
||||||
if ((!isset($apipass) or empty($apipass)) or (!isset($apiip) or empty($apiip)) or (!isset($apiport) or empty($apiport)) or (!isset($apivers) or empty($apivers)) {
|
if ((!isset($apipass) or empty($apipass)) or (!isset($apiip) or empty($apiip)) or (!isset($apiport) or empty($apiport)) or (!isset($apivers) or is_null($apivers))) {
|
||||||
$errormsg = 'You need to configure your settings for the PowerDNS API. See <a href="doc/apiconf.txt">doc/apiconf.txt</a>';
|
$errormsg = 'You need to configure your settings for the PowerDNS API. See <a href="doc/apiconf.txt">doc/apiconf.txt</a>';
|
||||||
$blocklogin = TRUE;
|
$blocklogin = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue