From c86e03ea5f3e9b631485d69a5528474a9f0c8fc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 18 Sep 2008 20:58:25 +0000 Subject: [PATCH] Loggen admin with user will now be displayed --- inc/databases.php | 2 +- inc/language/de.php | 1 + modules.php | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 2910c4da5c..cac80273e8 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "359"); +define('CURR_SVN_REVISION', "360"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/language/de.php b/inc/language/de.php index 9a8bb2df22..3553741169 100644 --- a/inc/language/de.php +++ b/inc/language/de.php @@ -338,6 +338,7 @@ define('MEMBER_404_ACTION_2', " ist nicht auffindbar!"); define('_GUEST', "Gast"); define('_UNKNOWN', "Name ist nicht ladbar"); define('_ADMIN', "Administrator"); +define('_ADMIN_SHORT', "Admin"); define('LAST_ONLINE', "Sie waren als letztes Online am"); define('LAST_MODULE', "Ihr zuletzt ausgewähltes Modul"); define('MEMBER_EDIT_PROFILE', "Profildaten ändern"); diff --git a/modules.php b/modules.php index 9c13ae6437..b24aee4126 100644 --- a/modules.php +++ b/modules.php @@ -69,8 +69,13 @@ if (IS_MEMBER()) { // Update only cookies and no login data! UPDATE_LOGIN_DATA(false); - } else { + // Additionally admin? + if (IS_ADMIN()) { + // Add it + $username .= " ("._ADMIN_SHORT.")"; + } // END - if + } else { // Hmmm, logged in and no valid cookies??? $username = ""._UNKNOWN.""; } -- 2.39.5