mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +03:00
commit
2bf91bac29
3 changed files with 19 additions and 1 deletions
|
@ -57,3 +57,4 @@ $defaults['ttl'] = 3600; # Default TTL for record
|
||||||
|
|
||||||
## UI Options
|
## UI Options
|
||||||
$menutype = 'horizontal'; # horizontal|vertical - use a horizontal or vertical menu
|
$menutype = 'horizontal'; # horizontal|vertical - use a horizontal or vertical menu
|
||||||
|
$logo = 'https://www.tuxis.nl/uploads/images/nsedit.png';
|
||||||
|
|
|
@ -44,6 +44,11 @@ if (isset($defaults['primaryns'])) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($logo) or empty($logo)) {
|
||||||
|
$logo = 'http://www.tuxis.nl/uploads/images/nsedit.png';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* No need to change stuf below */
|
/* No need to change stuf below */
|
||||||
|
|
||||||
if ($apivers == 0) {
|
if ($apivers == 0) {
|
||||||
|
@ -62,6 +67,12 @@ if (class_exists('SQLite3') === FALSE) {
|
||||||
$blocklogin = TRUE;
|
$blocklogin = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (function_exists('openssl_random_pseudo_bytes') === FALSE) {
|
||||||
|
$errormsg = "You need PHP compiled with openssl to run nsedit";
|
||||||
|
$blocklogin = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$defaults['defaulttype'] = ucfirst(strtolower($defaults['defaulttype']));
|
$defaults['defaulttype'] = ucfirst(strtolower($defaults['defaulttype']));
|
||||||
|
|
||||||
if (isset($authdb) && !file_exists($authdb) && class_exists('SQLite3')) {
|
if (isset($authdb) && !file_exists($authdb) && class_exists('SQLite3')) {
|
||||||
|
|
|
@ -48,7 +48,7 @@ if (!is_logged_in()) {
|
||||||
<body onload="document.getElementById('username').focus()">
|
<body onload="document.getElementById('username').focus()">
|
||||||
<div class="loginblock">
|
<div class="loginblock">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img src="https://www.tuxis.nl/uploads/images/nsedit.png" alt="Logo"/>
|
<img src="<?php echo $logo ?>" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<?php if (isset($errormsg)) {
|
<?php if (isset($errormsg)) {
|
||||||
|
@ -548,17 +548,22 @@ $(document).ready(function () {
|
||||||
'SOA': 'SOA',
|
'SOA': 'SOA',
|
||||||
'A': 'A',
|
'A': 'A',
|
||||||
'AAAA': 'AAAA',
|
'AAAA': 'AAAA',
|
||||||
|
'CERT': 'CERT',
|
||||||
'CNAME': 'CNAME',
|
'CNAME': 'CNAME',
|
||||||
|
'LOC': 'LOC',
|
||||||
'NAPTR': 'NAPTR',
|
'NAPTR': 'NAPTR',
|
||||||
'SPF': 'SPF',
|
'SPF': 'SPF',
|
||||||
'SRV': 'SRV',
|
'SRV': 'SRV',
|
||||||
|
'SSHFP': 'SSHFP',
|
||||||
'TLSA': 'TLSA',
|
'TLSA': 'TLSA',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
'A': 'A',
|
'A': 'A',
|
||||||
'AAAA': 'AAAA',
|
'AAAA': 'AAAA',
|
||||||
|
'CERT': 'CERT',
|
||||||
'CNAME': 'CNAME',
|
'CNAME': 'CNAME',
|
||||||
|
'LOC': 'LOC',
|
||||||
'MX': 'MX',
|
'MX': 'MX',
|
||||||
'NAPTR': 'NAPTR',
|
'NAPTR': 'NAPTR',
|
||||||
'NS': 'NS',
|
'NS': 'NS',
|
||||||
|
@ -566,6 +571,7 @@ $(document).ready(function () {
|
||||||
'SOA': 'SOA',
|
'SOA': 'SOA',
|
||||||
'SPF': 'SPF',
|
'SPF': 'SPF',
|
||||||
'SRV': 'SRV',
|
'SRV': 'SRV',
|
||||||
|
'SSHFP': 'SSHFP',
|
||||||
'TLSA': 'TLSA',
|
'TLSA': 'TLSA',
|
||||||
'TXT': 'TXT',
|
'TXT': 'TXT',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue