From b5a23a1be34827ba18ca537740edb121e616cd7a Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 06 Jan 2008 12:58:26 -0500
Subject: [PATCH] Added reseller capabilities to all modules. Added a server module for clients and a mail plugin.

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

diff --git a/interface/web/client/lib/module.conf.php b/interface/web/client/lib/module.conf.php
index c544555..23c4a18 100644
--- a/interface/web/client/lib/module.conf.php
+++ b/interface/web/client/lib/module.conf.php
@@ -1,57 +1,26 @@
 <?php
-$module = array (
-  'name' => 'client',
-  'title' => 'Client',
-  'template' => 'module.tpl.htm',
-  'navframe_page' => '',
-  'startpage' => 'client/client_list.php',
-  'tab_width' => '',
-  'nav' => 
-  array (
-    0 => 
-    array (
-      'title' => 'Clients',
-      'open' => 1,
-      'items' => 
-      array (
-        0 => 
-        array (
-          'title' => 'Add Client',
-          'target' => 'content',
-          'link' => 'client/client_edit.php',
-        ),
-        1 => 
-        array (
-          'title' => 'Edit Client',
-          'target' => 'content',
-          'link' => 'client/client_list.php',
-        ),
-      ),
-    ),
-    1 => 
-    array (
-      'title' => 'Statistics',
-      'open' => 1,
-      'items' => 
-      array (
-      ),
-    ),
-    2 => 
-    array (
-      'title' => 'Invoices',
-      'open' => 1,
-      'items' => 
-      array (
-      ),
-    ),
-    3 => 
-    array (
-      'title' => 'Mailings',
-      'open' => 1,
-      'items' => 
-      array (
-      ),
-    ),
-  ),
-)
+
+$module["name"] 		= "client";
+$module["title"] 		= "Client";
+$module["template"] 	= "module.tpl.htm";
+$module["startpage"] 	= "client/client_list.php";
+$module["tab_width"]    = '';
+
+/*
+	Email accounts menu
+*/
+
+
+$items[] = array( 'title' 	=> "Add Client",
+				  'target' 	=> 'content',
+				  'link'	=> 'client/client_edit.php');
+
+$items[] = array( 'title' 	=> "Edit Client",
+				  'target' 	=> 'content',
+				  'link'	=> 'client/client_list.php');
+
+
+$module["nav"][] = array(	'title'	=> 'Clients',
+							'open' 	=> 1,
+							'items'	=> $items);
 ?>
\ No newline at end of file

--
Gitblit v1.9.1