From 9e0cbf03c0d0130f706ad30785d209f308eebf91 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 28 Oct 2009 15:03:02 -0400
Subject: [PATCH] Fixed: FS#795 - Do not show the version number if the user is not logged in.
---
interface/web/help/lib/module.conf.php | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/interface/web/help/lib/module.conf.php b/interface/web/help/lib/module.conf.php
index 36696ff..4af598d 100644
--- a/interface/web/help/lib/module.conf.php
+++ b/interface/web/help/lib/module.conf.php
@@ -37,4 +37,24 @@
'open' => 1,
'items' => $items);
+
+if($_SESSION['s']['user']['typ'] == 'admin') {
+//* make sure that the items array is empty
+$items = array();
+
+//* Add a menu item with the label 'View messages'
+$items[] = array( 'title' => 'Version',
+ 'target' => 'content',
+ 'link' => 'help/version.php');
+
+
+//* Add the menu items defined above to a menu section labeled 'Support'
+$module['nav'][] = array( 'title' => 'About ISPConfig',
+ 'open' => 1,
+ 'items' => $items);
+
+}
+
+
+
?>
\ No newline at end of file
--
Gitblit v1.9.1