From 05d4825e5850d2a67a3d4e2eefc971d257d5112d Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Mon, 10 May 2010 14:37:53 -0400
Subject: [PATCH] The new version is only displayed for the admin (aargh)

---
 interface/web/client/lib/module.conf.php |   39 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 38 insertions(+), 1 deletions(-)

diff --git a/interface/web/client/lib/module.conf.php b/interface/web/client/lib/module.conf.php
index 23c4a18..78b825b 100644
--- a/interface/web/client/lib/module.conf.php
+++ b/interface/web/client/lib/module.conf.php
@@ -1,7 +1,7 @@
 <?php
 
 $module["name"] 		= "client";
-$module["title"] 		= "Client";
+$module["title"] 		= "top_menu_client";
 $module["template"] 	= "module.tpl.htm";
 $module["startpage"] 	= "client/client_list.php";
 $module["tab_width"]    = '';
@@ -19,8 +19,45 @@
 				  'target' 	=> 'content',
 				  'link'	=> 'client/client_list.php');
 
+if($_SESSION["s"]["user"]["typ"] == 'admin'){
+	$items[] = array( 'title' 	=> "Edit Client-Templates",
+					  'target' 	=> 'content',
+					  'link'	=> 'client/client_template_list.php');
+}
 
 $module["nav"][] = array(	'title'	=> 'Clients',
 							'open' 	=> 1,
 							'items'	=> $items);
+
+unset($items);
+
+
+if($_SESSION["s"]["user"]["typ"] == 'admin'){
+
+$items[] = array( 'title' 	=> "Add Reseller",
+				  'target' 	=> 'content',
+				  'link'	=> 'client/reseller_edit.php');
+
+$items[] = array( 'title' 	=> "Edit Reseller",
+				  'target' 	=> 'content',
+				  'link'	=> 'client/reseller_list.php');
+
+$module["nav"][] = array(	'title'	=> 'Resellers',
+							'open' 	=> 1,
+							'items'	=> $items);
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 ?>
\ No newline at end of file

--
Gitblit v1.9.1