From b17cc67ee9cf6f83c2360da16fb53231203ada8a Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 23 May 2012 12:41:54 -0400
Subject: [PATCH] - Added group (we call groups "circles" so that users don't mix them up with user groups) feature to client messaging section so that messages can be sent to either all clients/resellers or to groups of clients/resellers. TODO: add circle access control so that 1) a reseller can create circles that contain only his clients, not all clients, and 2) a reseller can send messages only to his own circles instead of all circles.

---
 interface/web/dns/lib/module.conf.php |   55 ++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 36 insertions(+), 19 deletions(-)

diff --git a/interface/web/dns/lib/module.conf.php b/interface/web/dns/lib/module.conf.php
index d233ba2..1af3a89 100644
--- a/interface/web/dns/lib/module.conf.php
+++ b/interface/web/dns/lib/module.conf.php
@@ -1,10 +1,36 @@
 <?php
 
 $module["name"] 		= "dns";
-$module["title"] 		= "DNS";
+$module["title"] 		= "top_menu_dns";
 $module["template"] 	= "module.tpl.htm";
 $module["startpage"] 	= "dns/dns_soa_list.php";
 $module["tab_width"]    = '';
+
+
+$items[] = array( 'title' 	=> "Add DNS Zone",
+				  'target' 	=> 'content',
+				  'link'	=> 'dns/dns_wizard.php',
+				  'html_id' => 'dns_wizard');
+
+$items[] = array( 'title' 	=> "Import Zone File",
+				  'target' 	=> 'content',
+				  'link'	=> 'dns/dns_import.php',
+				  'html_id' => 'dns_import');
+
+if($_SESSION["s"]["user"]["typ"] == 'admin') {
+  $items[] = array( 	'title' 	=> "Templates",
+				  'target' 	=> 'content',
+				  'link'		=> 'dns/dns_template_list.php',
+				  'html_id' => 'dns_template_list');
+}
+
+
+$module["nav"][] = array(	'title'	=> 'DNS Wizard',
+							'open' 	=> 1,
+							'items'	=> $items);
+
+
+unset($items);
 
 /*
 	Email accounts menu
@@ -13,11 +39,13 @@
 
 $items[] = array( 'title' 	=> "Zones",
 				  'target' 	=> 'content',
-				  'link'	=> 'dns/dns_soa_list.php');
+				  'link'	=> 'dns/dns_soa_list.php',
+				  'html_id' => 'dns_soa_list');
 /*
 $items[] = array( 'title' 	=> "A-Records",
 				  'target' 	=> 'content',
-				  'link'	=> 'dns/dns_a_list.php');
+				  'link'	=> 'dns/dns_a_list.php',
+				  'html_id' => 'dns_a_list');
 */
 
 
@@ -27,27 +55,16 @@
 
 unset($items);
 
-
-$items[] = array( 'title' 	=> "Add DNS Zone",
+$items[] = array( 'title' 	=> "Secondary Zones",
 				  'target' 	=> 'content',
-				  'link'	=> 'dns/dns_wizard.php');
+				  'link'	=> 'dns/dns_slave_list.php',
+				  'html_id' => 'dns_slave_list');
 
-
-$items[] = array( 'title' 	=> "Templates",
-				  'target' 	=> 'content',
-				  'link'	=> 'dns/dns_template_list.php');
-
-
-
-$module["nav"][] = array(	'title'	=> 'DNS Wizard',
+$module["nav"][] = array(	'title'	=> 'Secondary DNS',
 							'open' 	=> 1,
 							'items'	=> $items);
 
-
-
-
-
-
+unset($items);
 
 
 

--
Gitblit v1.9.1