mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Fix bugs
This commit is contained in:
parent
6dcd923cff
commit
25fb62fd4f
2 changed files with 3 additions and 3 deletions
|
@ -4,12 +4,12 @@ include('config.inc.php');
|
|||
|
||||
$blocklogin = FALSE;
|
||||
|
||||
if (empty($apipass) or empty($apiip) or empty($apiport)) {
|
||||
if ((!isset($apipass) or empty($apipass)) or (!isset($apiip) or empty($apiip)) or (!isset($apiport) or empty($apiport))) {
|
||||
$errormsg = "You need to configure your the setting for using the PowerDNS API";
|
||||
$blocklogin = TRUE;
|
||||
}
|
||||
|
||||
if (!preg_match('/^(xapikey|userpass|auto)$/', $authmethod)) {
|
||||
if (!isset($authmethod) or !preg_match('/^(xapikey|userpass|auto)$/', $authmethod)) {
|
||||
$errormsg = "The value for \$authmethod is incorrect in your config";
|
||||
$blocklogin = TRUE;
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ if (!is_logged_in()) {
|
|||
?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" name="submit" value="Log me in!" <?php if ($blocklogin === TRUE)) { echo "disabled"; }; ?>></td>
|
||||
<td><input type="submit" name="submit" value="Log me in!" <?php if ($blocklogin === TRUE) { echo "disabled"; }; ?>></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="formname" value="loginform">
|
||||
|
|
Loading…
Add table
Reference in a new issue