Merge pull request #1 from tuxis-ie/master

update from nsedit
This commit is contained in:
Kristof Hardy 2016-03-02 11:46:50 +01:00
commit 2bf91bac29
3 changed files with 19 additions and 1 deletions

View file

@ -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';

View file

@ -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) {
@ -61,6 +66,12 @@ if (class_exists('SQLite3') === FALSE) {
$errormsg = "You need PHP SQLite3 to run nsedit";
$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']));

View file

@ -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',
};