commit | author | age
|
4e44dd
|
1 |
<?php |
T |
2 |
|
a44efa
|
3 |
global $conf; |
P |
4 |
|
b1a6a5
|
5 |
$module['name'] = 'admin'; |
MC |
6 |
$module['title'] = 'top_menu_system'; |
|
7 |
$module['template'] = 'module.tpl.htm'; |
|
8 |
$module['startpage'] = 'admin/server_list.php'; |
a44efa
|
9 |
$module['tab_width'] = '60'; |
a563d5
|
10 |
$module['order'] = '90'; |
4e44dd
|
11 |
|
T |
12 |
|
472606
|
13 |
$items[] = array( 'title' => 'CP Users', |
b1a6a5
|
14 |
'target' => 'content', |
MC |
15 |
'link' => 'admin/users_list.php', |
|
16 |
'html_id' => 'user_list'); |
4e44dd
|
17 |
|
b1a6a5
|
18 |
$items[] = array( 'title' => 'Remote Users', |
MC |
19 |
'target' => 'content', |
|
20 |
'link' => 'admin/remote_user_list.php', |
|
21 |
'html_id' => 'remote_user_list'); |
4e44dd
|
22 |
|
b1a6a5
|
23 |
$module['nav'][] = array( 'title' => 'User Management', |
MC |
24 |
'open' => 1, |
|
25 |
'items' => $items); |
4e44dd
|
26 |
|
a6efc7
|
27 |
// cleanup |
4e44dd
|
28 |
unset($items); |
T |
29 |
|
b1a6a5
|
30 |
$items[] = array( 'title' => 'Server Services', |
MC |
31 |
'target' => 'content', |
|
32 |
'link' => 'admin/server_list.php', |
|
33 |
'html_id' => 'server_list'); |
472606
|
34 |
|
b1a6a5
|
35 |
$items[] = array( 'title' => 'Server Config', |
MC |
36 |
'target' => 'content', |
|
37 |
'link' => 'admin/server_config_list.php', |
|
38 |
'html_id' => 'server_config_list'); |
472606
|
39 |
|
b1a6a5
|
40 |
$items[] = array( 'title' => 'Server IP addresses', |
MC |
41 |
'target' => 'content', |
|
42 |
'link' => 'admin/server_ip_list.php', |
|
43 |
'html_id' => 'server_ip_list'); |
4e44dd
|
44 |
|
bb2930
|
45 |
$items[] = array( 'title' => 'Server IPv4 mapping', |
6c424f
|
46 |
'target' => 'content', |
FS |
47 |
'link' => 'admin/server_ip_map_list.php', |
|
48 |
'html_id' => 'server_ip_map_list'); |
4e44dd
|
49 |
|
b1a6a5
|
50 |
$items[] = array( 'title' => 'Additional PHP Versions', |
MC |
51 |
'target' => 'content', |
|
52 |
'link' => 'admin/server_php_list.php', |
|
53 |
'html_id' => 'server_php_list'); |
4e44dd
|
54 |
|
b1a6a5
|
55 |
$items[] = array( 'title' => 'Directive Snippets', |
MC |
56 |
'target' => 'content', |
|
57 |
'link' => 'admin/directive_snippets_list.php', |
|
58 |
'html_id' => 'directive_snippets_list'); |
|
59 |
|
|
60 |
$items[] = array( 'title' => 'Firewall', |
|
61 |
'target' => 'content', |
|
62 |
'link' => 'admin/firewall_list.php', |
|
63 |
'html_id' => 'firewall_list'); |
7848ce
|
64 |
|
80e3c9
|
65 |
/* |
52bfee
|
66 |
$items[] = array( 'title' => 'Firewall IPTables', |
d78707
|
67 |
'target' => 'content', |
L |
68 |
'link' => 'admin/iptables_list.php'); |
|
69 |
|
80e3c9
|
70 |
$items[] = array( 'title' => 'Packet Filter', |
T |
71 |
'target' => 'content', |
b1a6a5
|
72 |
'link' => 'admin/firewall_filter_list.php'); |
80e3c9
|
73 |
|
T |
74 |
$items[] = array( 'title' => 'Port Forward', |
|
75 |
'target' => 'content', |
b1a6a5
|
76 |
'link' => 'admin/firewall_forward_list.php'); |
8458c0
|
77 |
*/ |
472606
|
78 |
|
C |
79 |
$module['nav'][] = array( 'title' => 'System', |
b1a6a5
|
80 |
'open' => 1, |
MC |
81 |
'items' => $items); |
472606
|
82 |
// cleanup |
C |
83 |
unset($items); |
|
84 |
|
b1a6a5
|
85 |
$items[] = array( 'title' => 'Interface Config', |
MC |
86 |
'target' => 'content', |
|
87 |
'link' => 'admin/system_config_edit.php?id=1', |
|
88 |
'html_id' => 'interface_config'); |
472606
|
89 |
|
C |
90 |
$module['nav'][] = array( 'title' => 'Interface', |
b1a6a5
|
91 |
'open' => "1", |
MC |
92 |
'items' => $items); |
4e44dd
|
93 |
|
T |
94 |
|
a6efc7
|
95 |
// cleanup |
4e44dd
|
96 |
unset($items); |
T |
97 |
|
871b33
|
98 |
|
b1a6a5
|
99 |
$items[] = array( 'title' => 'Repositories', |
MC |
100 |
'target' => 'content', |
|
101 |
'link' => 'admin/software_repo_list.php', |
|
102 |
'html_id' => 'software_repo_list'); |
871b33
|
103 |
|
b1a6a5
|
104 |
$items[] = array( 'title' => 'Packages', |
MC |
105 |
'target' => 'content', |
|
106 |
'link' => 'admin/software_package_list.php', |
|
107 |
'html_id' => 'software_package_list'); |
871b33
|
108 |
|
b1a6a5
|
109 |
$items[] = array( 'title' => 'Updates', |
MC |
110 |
'target' => 'content', |
|
111 |
'link' => 'admin/software_update_list.php', |
|
112 |
'html_id' => 'software_update_list'); |
871b33
|
113 |
|
472606
|
114 |
$module['nav'][] = array( 'title' => 'Software', |
b1a6a5
|
115 |
'open' => 1, |
MC |
116 |
'items' => $items); |
871b33
|
117 |
|
T |
118 |
|
|
119 |
// cleanup |
|
120 |
unset($items); |
|
121 |
|
b1a6a5
|
122 |
$items[] = array( 'title' => 'Languages', |
MC |
123 |
'target' => 'content', |
|
124 |
'link' => 'admin/language_list.php', |
|
125 |
'html_id' => 'language_list'); |
a6efc7
|
126 |
|
b1a6a5
|
127 |
$items[] = array( 'title' => 'New Language', |
MC |
128 |
'target' => 'content', |
|
129 |
'link' => 'admin/language_add.php', |
|
130 |
'html_id' => 'language_add'); |
02ab70
|
131 |
|
b1a6a5
|
132 |
$items[] = array( 'title' => 'Merge', |
MC |
133 |
'target' => 'content', |
|
134 |
'link' => 'admin/language_complete.php', |
|
135 |
'html_id' => 'language_complete'); |
8dd29e
|
136 |
|
b1a6a5
|
137 |
$items[] = array( 'title' => 'Export', |
MC |
138 |
'target' => 'content', |
|
139 |
'link' => 'admin/language_export.php', |
|
140 |
'html_id' => 'language_export'); |
a6efc7
|
141 |
|
b1a6a5
|
142 |
$items[] = array( 'title' => 'Import', |
MC |
143 |
'target' => 'content', |
|
144 |
'link' => 'admin/language_import.php', |
|
145 |
'html_id' => 'language_import'); |
a6efc7
|
146 |
|
472606
|
147 |
$module['nav'][] = array( 'title' => 'Language Editor', |
b1a6a5
|
148 |
'open' => 1, |
MC |
149 |
'items' => $items); |
a6efc7
|
150 |
|
T |
151 |
|
8651ee
|
152 |
// cleanup |
4e44dd
|
153 |
unset($items); |
T |
154 |
|
fe670c
|
155 |
|
b1a6a5
|
156 |
$items[] = array( 'title' => 'Do OS-Update', |
MC |
157 |
'target' => 'content', |
|
158 |
'link' => 'admin/remote_action_osupdate.php', |
|
159 |
'html_id' => 'osupdate'); |
8cf78b
|
160 |
|
6882ab
|
161 |
// ISPConfig interface update has been removed. Please use ispconfig_update.sh on the shell instead. |
b1a6a5
|
162 |
$items[] = array( 'title' => 'Do ISPConfig-Update', |
MC |
163 |
'target' => 'content', |
|
164 |
'link' => 'admin/remote_action_ispcupdate.php', |
|
165 |
'html_id' => 'ispcupdate'); |
8cf78b
|
166 |
|
b1a6a5
|
167 |
$module['nav'][] = array( 'title' => 'Remote Actions', |
MC |
168 |
'open' => 1, |
|
169 |
'items' => $items); |
cdaae6
|
170 |
|
V |
171 |
|
4e44dd
|
172 |
// Getting the admin options from other modules |
99bf8f
|
173 |
$modules = explode(',', $_SESSION['s']['user']['modules']); |
4e44dd
|
174 |
if(is_array($modules)) { |
T |
175 |
foreach($modules as $mt) { |
a44efa
|
176 |
if(is_file($mt.'/lib/admin.conf.php')) { |
4e44dd
|
177 |
$options = array(); |
b1a6a5
|
178 |
include_once ISPC_WEB_PATH."/$mt/lib/admin.conf.php"; |
4e44dd
|
179 |
if(is_array($options)) { |
T |
180 |
foreach($options as $opt) { |
a44efa
|
181 |
$module['nav'][] = $opt; |
4e44dd
|
182 |
} |
T |
183 |
} |
|
184 |
} |
|
185 |
} |
|
186 |
} |
|
187 |
|
b1a6a5
|
188 |
?> |