From 927aa38d16ff2e17305e75b9a9b29a3c24ddb655 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 07 Jul 2010 06:54:57 -0400
Subject: [PATCH] Updated the limits dashlet to show the limits for the admin user too.
---
interface/web/dns/lib/module.conf.php | 39 ++++++++++++++++++++++++++++++++++++---
1 files changed, 36 insertions(+), 3 deletions(-)
diff --git a/interface/web/dns/lib/module.conf.php b/interface/web/dns/lib/module.conf.php
index 41e6d05..125eac4 100644
--- a/interface/web/dns/lib/module.conf.php
+++ b/interface/web/dns/lib/module.conf.php
@@ -1,10 +1,31 @@
<?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');
+
+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,15 +34,27 @@
$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');
*/
$module["nav"][] = array( 'title' => 'DNS',
'open' => 1,
'items' => $items);
+
+unset($items);
+
+
+
+
+
+
+
+
?>
\ No newline at end of file
--
Gitblit v1.9.1