commit | author | age
|
b74ef5
|
1 |
<?php |
T |
2 |
|
b1a6a5
|
3 |
$module['name'] = 'vm'; |
MC |
4 |
$module['title'] = 'top_menu_vm'; |
|
5 |
$module['template'] = 'module.tpl.htm'; |
|
6 |
$module['startpage'] = 'vm/openvz_vm_list.php'; |
b74ef5
|
7 |
$module['tab_width'] = ''; |
0e14d7
|
8 |
$module['order'] = '50'; |
b74ef5
|
9 |
|
T |
10 |
//**** Templates menu |
|
11 |
$items = array(); |
|
12 |
|
b1a6a5
|
13 |
$items[] = array( 'title' => 'Virtual Servers', |
MC |
14 |
'target' => 'content', |
|
15 |
'link' => 'vm/openvz_vm_list.php', |
|
16 |
'html_id' => 'openvz_vm_list'); |
b74ef5
|
17 |
|
f5ea1b
|
18 |
if($_SESSION["s"]["user"]["typ"] == 'admin') { |
b1a6a5
|
19 |
$items[] = array( 'title' => 'OS Templates', |
MC |
20 |
'target' => 'content', |
|
21 |
'link' => 'vm/openvz_ostemplate_list.php', |
|
22 |
'html_id' => 'openvz_ostemplate_list'); |
b74ef5
|
23 |
|
b1a6a5
|
24 |
$items[] = array( 'title' => 'VM Templates', |
MC |
25 |
'target' => 'content', |
|
26 |
'link' => 'vm/openvz_template_list.php', |
|
27 |
'html_id' => 'openvz_template_list'); |
|
28 |
|
|
29 |
$items[] = array( 'title' => 'IP addresses', |
|
30 |
'target' => 'content', |
|
31 |
'link' => 'vm/openvz_ip_list.php', |
|
32 |
'html_id' => 'openvz_ip_list'); |
f5ea1b
|
33 |
} |
b74ef5
|
34 |
if(count($items)) |
T |
35 |
{ |
b1a6a5
|
36 |
$module['nav'][] = array( 'title' => 'OpenVZ', |
MC |
37 |
'open' => 1, |
|
38 |
'items' => $items); |
b74ef5
|
39 |
} |
T |
40 |
|
|
41 |
|
|
42 |
//**** Statistics menu |
|
43 |
/* |
|
44 |
$items = array(); |
|
45 |
|
|
46 |
$items[] = array( 'title' => 'Traffic', |
|
47 |
'target' => 'content', |
|
48 |
'link' => 'vm/traffic_stats.php', |
|
49 |
'html_id' => 'vm_traffic_stats'); |
|
50 |
|
|
51 |
$items[] = array( 'title' => 'Vserver monitor', |
|
52 |
'target' => 'content', |
|
53 |
'link' => 'vm/traffic_stats.php', |
|
54 |
'html_id' => 'vm_traffic_stats'); |
b1a6a5
|
55 |
|
b74ef5
|
56 |
if(count($items)) |
T |
57 |
{ |
|
58 |
$module['nav'][] = array( 'title' => 'Statistics', |
|
59 |
'open' => 1, |
|
60 |
'items' => $items); |
|
61 |
} |
|
62 |
*/ |
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
b1a6a5
|
69 |
?> |