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
|
||||
$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 */
|
||||
|
||||
if ($apivers == 0) {
|
||||
|
@ -62,6 +67,12 @@ if (class_exists('SQLite3') === FALSE) {
|
|||
$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']));
|
||||
|
||||
if (isset($authdb) && !file_exists($authdb) && class_exists('SQLite3')) {
|
||||
|
|
|
@ -48,7 +48,7 @@ if (!is_logged_in()) {
|
|||
<body onload="document.getElementById('username').focus()">
|
||||
<div class="loginblock">
|
||||
<div class="logo">
|
||||
<img src="https://www.tuxis.nl/uploads/images/nsedit.png" alt="Logo"/>
|
||||
<img src="<?php echo $logo ?>" alt="Logo"/>
|
||||
</div>
|
||||
<div class="login">
|
||||
<?php if (isset($errormsg)) {
|
||||
|
@ -548,17 +548,22 @@ $(document).ready(function () {
|
|||
'SOA': 'SOA',
|
||||
'A': 'A',
|
||||
'AAAA': 'AAAA',
|
||||
'CERT': 'CERT',
|
||||
'CNAME': 'CNAME',
|
||||
'LOC': 'LOC',
|
||||
'NAPTR': 'NAPTR',
|
||||
'SPF': 'SPF',
|
||||
'SRV': 'SRV',
|
||||
'SSHFP': 'SSHFP',
|
||||
'TLSA': 'TLSA',
|
||||
};
|
||||
}
|
||||
return {
|
||||
'A': 'A',
|
||||
'AAAA': 'AAAA',
|
||||
'CERT': 'CERT',
|
||||
'CNAME': 'CNAME',
|
||||
'LOC': 'LOC',
|
||||
'MX': 'MX',
|
||||
'NAPTR': 'NAPTR',
|
||||
'NS': 'NS',
|
||||
|
@ -566,6 +571,7 @@ $(document).ready(function () {
|
|||
'SOA': 'SOA',
|
||||
'SPF': 'SPF',
|
||||
'SRV': 'SRV',
|
||||
'SSHFP': 'SSHFP',
|
||||
'TLSA': 'TLSA',
|
||||
'TXT': 'TXT',
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue