From 39dd4ecc8b4a2b3b98a7ffe7056ae64240b22d56 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Sun, 11 May 2014 17:39:37 -0400
Subject: [PATCH] - Added functions client_get_emailcontact and client_login_get to remote api. - Add option to _get functions of the remote-api to return all records when primaryID = -1 - Fixed permission problem in _get functions of remote api. - Fixed typo in german dashboard language file.
---
interface/web/vm/lib/module.conf.php | 53 +++++++++++++++++++++++++++--------------------------
1 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/interface/web/vm/lib/module.conf.php b/interface/web/vm/lib/module.conf.php
index 5d0e2c8..a7e31bb 100644
--- a/interface/web/vm/lib/module.conf.php
+++ b/interface/web/vm/lib/module.conf.php
@@ -1,39 +1,40 @@
<?php
-$module['name'] = 'vm';
-$module['title'] = 'top_menu_vm';
-$module['template'] = 'module.tpl.htm';
-$module['startpage'] = 'vm/openvz_vm_list.php';
+$module['name'] = 'vm';
+$module['title'] = 'top_menu_vm';
+$module['template'] = 'module.tpl.htm';
+$module['startpage'] = 'vm/openvz_vm_list.php';
$module['tab_width'] = '';
//**** Templates menu
$items = array();
-$items[] = array( 'title' => 'Virtual Servers',
- 'target' => 'content',
- 'link' => 'vm/openvz_vm_list.php',
- 'html_id' => 'openvz_vm_list');
+$items[] = array( 'title' => 'Virtual Servers',
+ 'target' => 'content',
+ 'link' => 'vm/openvz_vm_list.php',
+ 'html_id' => 'openvz_vm_list');
-$items[] = array( 'title' => 'OS Templates',
- 'target' => 'content',
- 'link' => 'vm/openvz_ostemplate_list.php',
- 'html_id' => 'openvz_ostemplate_list');
+if($_SESSION["s"]["user"]["typ"] == 'admin') {
+ $items[] = array( 'title' => 'OS Templates',
+ 'target' => 'content',
+ 'link' => 'vm/openvz_ostemplate_list.php',
+ 'html_id' => 'openvz_ostemplate_list');
-$items[] = array( 'title' => 'VM Templates',
- 'target' => 'content',
- 'link' => 'vm/openvz_template_list.php',
- 'html_id' => 'openvz_template_list');
-
-$items[] = array( 'title' => 'IP addresses',
- 'target' => 'content',
- 'link' => 'vm/openvz_ip_list.php',
- 'html_id' => 'openvz_ip_list');
+ $items[] = array( 'title' => 'VM Templates',
+ 'target' => 'content',
+ 'link' => 'vm/openvz_template_list.php',
+ 'html_id' => 'openvz_template_list');
+ $items[] = array( 'title' => 'IP addresses',
+ 'target' => 'content',
+ 'link' => 'vm/openvz_ip_list.php',
+ 'html_id' => 'openvz_ip_list');
+}
if(count($items))
{
- $module['nav'][] = array( 'title' => 'OpenVZ',
- 'open' => 1,
- 'items' => $items);
+ $module['nav'][] = array( 'title' => 'OpenVZ',
+ 'open' => 1,
+ 'items' => $items);
}
@@ -50,7 +51,7 @@
'target' => 'content',
'link' => 'vm/traffic_stats.php',
'html_id' => 'vm_traffic_stats');
-
+
if(count($items))
{
$module['nav'][] = array( 'title' => 'Statistics',
@@ -64,4 +65,4 @@
-?>
\ No newline at end of file
+?>
--
Gitblit v1.9.1