From 904d8aa7db736fbf89f94053c9ebd5c1376e7190 Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Thu, 12 Nov 2015 05:42:49 -0500
Subject: [PATCH] custom text / link for login-page

---
 interface/web/login/index.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/interface/web/login/index.php b/interface/web/login/index.php
index f2d0e60..4df3703 100644
--- a/interface/web/login/index.php
+++ b/interface/web/login/index.php
@@ -351,6 +351,12 @@
 // Title
 $app->tpl->setVar('company_name', $sys_config['company_name']. ' :: ');
 
+// Custom Login
+if ($sys_config['custom_login_text'] != '') {
+	 $custom_login = @($sys_config['custom_login_link'] != '')?'<a href="'.$sys_config['custom_login_link'].'" target="_blank">'.$sys_config['custom_login_text'].'</a>':$sys_config['custom_login_text'];
+}
+$app->tpl->setVar('custom_login', $custom_login);
+
 $app->tpl_defaults();
 
 $app->tpl->pparse();

--
Gitblit v1.9.1