From 4d3d381956cda9981c80f369fc8b6f7e6ff4d3c6 Mon Sep 17 00:00:00 2001
From: harkx <kristof@harkx.com>
Date: Fri, 1 Jan 2016 09:42:14 +0100
Subject: [PATCH 1/2] Create parameter for logo

---
 includes/config.inc.php-dist | 1 +
 index.php                    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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/index.php b/index.php
index db0d933..d5ef462 100644
--- a/index.php
+++ b/index.php
@@ -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)) {

From 546d77c85f65019328355c677dcba91a497b8077 Mon Sep 17 00:00:00 2001
From: harkx <kristof@harkx.com>
Date: Sat, 2 Jan 2016 11:29:23 +0100
Subject: [PATCH 2/2] [MOD] set the default in misc.inc.php in case $logo isn't
 set

---
 includes/misc.inc.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/includes/misc.inc.php b/includes/misc.inc.php
index 58d2703..839d1be 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) {