diff --git a/includes/config.inc.php-dist b/includes/config.inc.php-dist index d09b843..f85f46d 100644 --- a/includes/config.inc.php-dist +++ b/includes/config.inc.php-dist @@ -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'; diff --git a/includes/misc.inc.php b/includes/misc.inc.php index 58d2703..c32c5f4 100644 --- a/includes/misc.inc.php +++ b/includes/misc.inc.php @@ -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'])); diff --git a/index.php b/index.php index db0d933..de19581 100644 --- a/index.php +++ b/index.php @@ -48,7 +48,7 @@ if (!is_logged_in()) {