d06dfc3ba15f8ad3c1378f98726c9c86e84d3a0f
[racktables] / inc / navigation.php
1 <?php
2 /*
3 *
4 * This file implements generic navigation for RackTables.
5 *
6 */
7
8 $page = array();
9 $tab = array();
10 $trigger = array();
11 $ophandler = array();
12 $tabhandler = array();
13 $delayauth = array();
14
15 $page['index']['title'] = 'Main page';
16 $page['index']['handler'] = 'renderIndex';
17
18 $page['rackspace']['title'] = 'Rackspace';
19 $page['rackspace']['parent'] = 'index';
20 $tab['rackspace']['default'] = 'Browse';
21 $tab['rackspace']['edit'] = 'Manage rows';
22 $tab['rackspace']['history'] = 'History';
23 $tabhandler['rackspace']['default'] = 'renderRackspace';
24 $tabhandler['rackspace']['edit'] = 'renderRackspaceRowEditor';
25 $tabhandler['rackspace']['history'] = 'renderRackspaceHistory';
26 $ophandler['rackspace']['edit']['addRow'] = 'addRow';
27 $ophandler['rackspace']['edit']['updateRow'] = 'updateRow';
28 $ophandler['rackspace']['edit']['delete'] = 'deleteRow';
29
30 $page['depot']['parent'] = 'index';
31 $page['depot']['title'] = 'Objects';
32 $tab['depot']['default'] = 'Browse';
33 $tab['depot']['addmore'] = 'Add more';
34 $tabhandler['depot']['default'] = 'renderDepot';
35 $tabhandler['depot']['addmore'] = 'renderAddMultipleObjectsForm';
36 $ophandler['depot']['addmore']['addObjects'] = 'addMultipleObjects';
37 $ophandler['depot']['addmore']['addLotOfObjects'] = 'addLotOfObjects';
38 $ophandler['depot']['addmore']['deleteObject'] = 'deleteObject';
39
40 $page['row']['bypass'] = 'row_id';
41 $page['row']['bypass_type'] = 'uint';
42 $page['row']['parent'] = 'rackspace';
43 $tab['row']['default'] = 'View';
44 $tab['row']['newrack'] = 'Add new rack';
45 $tab['row']['tagroller'] = 'Tag roller';
46 $tabhandler['row']['default'] = 'renderRow';
47 $tabhandler['row']['newrack'] = 'renderNewRackForm';
48 $tabhandler['row']['tagroller'] = 'renderTagRollerForRow';
49 $ophandler['row']['tagroller']['rollTags'] = 'rollTags';
50 $ophandler['row']['newrack']['addRack'] = 'addRack';
51
52 $page['rack']['bypass'] = 'rack_id';
53 $page['rack']['bypass_type'] = 'uint';
54 $page['rack']['parent'] = 'row';
55 $tab['rack']['default'] = 'View';
56 $tab['rack']['edit'] = 'Properties';
57 $tab['rack']['design'] = 'Design';
58 $tab['rack']['problems'] = 'Problems';
59 $tab['rack']['tags'] = 'Tags';
60 $tab['rack']['files'] = 'Files';
61 $tabhandler['rack']['default'] = 'renderRackPage';
62 $tabhandler['rack']['edit'] = 'renderEditRackForm';
63 $tabhandler['rack']['design'] = 'renderRackDesign';
64 $tabhandler['rack']['problems'] = 'renderRackProblems';
65 $tabhandler['rack']['tags'] = 'renderEntityTags';
66 $tabhandler['rack']['files'] = 'renderFilesForEntity';
67 $trigger['rack']['tags'] = 'trigger_tags';
68 $ophandler['rack']['design']['updateRack'] = 'updateRackDesign';
69 $ophandler['rack']['problems']['updateRack'] = 'updateRackProblems';
70 $ophandler['rack']['edit']['updateRack'] = 'updateRack';
71 $ophandler['rack']['edit']['deleteRack'] = 'deleteRack';
72 $ophandler['rack']['tags']['saveTags'] = 'saveEntityTags';
73 $ophandler['rack']['files']['addFile'] = 'addFileToEntity';
74 $ophandler['rack']['files']['linkFile'] = 'linkFileToEntity';
75 $ophandler['rack']['files']['unlinkFile'] = 'unlinkFile';
76
77 $page['object']['bypass'] = 'object_id';
78 $page['object']['bypass_type'] = 'uint';
79 $page['object']['parent'] = 'depot';
80 $tab['object']['default'] = 'View';
81 $tab['object']['edit'] = 'Properties';
82 $tab['object']['rackspace'] = 'Rackspace';
83 $tab['object']['ports'] = 'Ports';
84 $tab['object']['ipv4'] = 'IPv4';
85 $tab['object']['nat4'] = 'NATv4';
86 $tab['object']['livevlans'] = 'Live VLANs';
87 $tab['object']['snmpportfinder'] = 'SNMP sync';
88 $tab['object']['editrspvs'] = 'RS pools';
89 $tab['object']['lvsconfig'] = 'keepalived.conf';
90 $tab['object']['autoports'] = 'AutoPorts';
91 $tab['object']['tags'] = 'Tags';
92 $tab['object']['files'] = 'Files';
93 $tab['object']['vlanconfig'] = 'VLAN config';
94 $tab['object']['vlanports'] = '[802.1Q]';
95 $tabhandler['object']['default'] = 'renderRackObject';
96 $tabhandler['object']['edit'] = 'renderEditObjectForm';
97 $tabhandler['object']['rackspace'] = 'renderRackSpaceForObject';
98 $tabhandler['object']['ports'] = 'renderPortsForObject';
99 $tabhandler['object']['ipv4'] = 'renderIPv4ForObject';
100 $tabhandler['object']['nat4'] = 'renderNATv4ForObject';
101 $tabhandler['object']['livevlans'] = 'renderVLANMembership';
102 $tabhandler['object']['snmpportfinder'] = 'renderSNMPPortFinder';
103 $tabhandler['object']['lvsconfig'] = 'renderLVSConfig';
104 $tabhandler['object']['autoports'] = 'renderAutoPortsForm';
105 $tabhandler['object']['tags'] = 'renderEntityTags';
106 $tabhandler['object']['files'] = 'renderFilesForEntity';
107 $tabhandler['object']['editrspvs'] = 'renderObjectSLB';
108 $tabhandler['object']['vlanconfig'] = 'renderObjectVLANConfig';
109 $tabhandler['object']['vlanports'] = 'renderObjectVLANPorts';
110 $trigger['object']['rackspace'] = 'trigger_rackspace';
111 $trigger['object']['ipv4'] = 'trigger_ipv4';
112 $trigger['object']['nat4'] = 'trigger_natv4';
113 $trigger['object']['livevlans'] = 'trigger_livevlans';
114 $trigger['object']['snmpportfinder'] = 'trigger_snmpportfinder';
115 $trigger['object']['editrspvs'] = 'trigger_isloadbalancer';
116 $trigger['object']['lvsconfig'] = 'trigger_isloadbalancer';
117 $trigger['object']['autoports'] = 'trigger_autoports';
118 $trigger['object']['tags'] = 'trigger_tags';
119 $trigger['object']['vlanconfig'] = 'trigger_vlanconfig';
120 $trigger['object']['vlanports'] = 'trigger_vlanports';
121 $ophandler['object']['rackspace']['updateObjectAllocation'] = 'updateObjectAllocation';
122 $ophandler['object']['ports']['addPort'] = 'addPortForObject';
123 $ophandler['object']['ports']['delPort'] = 'delPortFromObject';
124 $ophandler['object']['ports']['editPort'] = 'editPortForObject';
125 $ophandler['object']['ports']['linkPort'] = 'linkPortForObject';
126 $ophandler['object']['ports']['unlinkPort'] = 'unlinkPortForObject';
127 $ophandler['object']['ports']['addMultiPorts'] = 'addMultiPorts';
128 $ophandler['object']['ports']['useup'] = 'useupPort';
129 $ophandler['object']['ipv4']['updIPv4Allocation'] = 'updIPv4Allocation';
130 $ophandler['object']['ipv4']['addIPv4Allocation'] = 'addIPv4Allocation';
131 $ophandler['object']['ipv4']['delIPv4Allocation'] = 'delIPv4Allocation';
132 $ophandler['object']['edit']['clearSticker'] = 'clearSticker';
133 $ophandler['object']['edit']['update'] = 'updateObject';
134 $ophandler['object']['nat4']['addNATv4Rule'] = 'addPortForwarding';
135 $ophandler['object']['nat4']['delNATv4Rule'] = 'delPortForwarding';
136 $ophandler['object']['nat4']['updNATv4Rule'] = 'updPortForwarding';
137 $ophandler['object']['livevlans']['setPortVLAN'] = 'setPortVLAN';
138 $ophandler['object']['autoports']['generate'] = 'generateAutoPorts';
139 $ophandler['object']['tags']['saveTags'] = 'saveEntityTags';
140 $ophandler['object']['files']['addFile'] = 'addFileToEntity';
141 $ophandler['object']['files']['linkFile'] = 'linkFileToEntity';
142 $ophandler['object']['files']['unlinkFile'] = 'unlinkFile';
143 $ophandler['object']['editrspvs']['addLB'] = 'addLoadBalancer';
144 $ophandler['object']['editrspvs']['delLB'] = 'deleteLoadBalancer';
145 $ophandler['object']['editrspvs']['updLB'] = 'updateLoadBalancer';
146 $ophandler['object']['lvsconfig']['submitSLBConfig'] = 'submitSLBConfig';
147 $ophandler['object']['snmpportfinder']['querySNMPData'] = 'querySNMPData';
148 $ophandler['object']['vlanconfig']['bind'] = 'addVLANSwitchBinding';
149 $ophandler['object']['vlanconfig']['unbind'] = 'delVLANSwitchBinding';
150 $ophandler['object']['vlanports']['saveAllowedVLANs'] = 'saveAllowedVLANs';
151 $delayauth['object']['livevlans']['setPortVLAN'] = TRUE;
152
153 $page['ipv4space']['title'] = 'IPv4 space';
154 $page['ipv4space']['parent'] = 'index';
155 $tab['ipv4space']['default'] = 'Browse';
156 $tab['ipv4space']['newrange'] = 'Manage';
157 $tabhandler['ipv4space']['default'] = 'renderIPv4Space';
158 $tabhandler['ipv4space']['newrange'] = 'renderIPv4SpaceEditor';
159 $ophandler['ipv4space']['newrange']['addIPv4Prefix'] = 'addIPv4Prefix';
160 $ophandler['ipv4space']['newrange']['delIPv4Prefix'] = 'delIPv4Prefix';
161
162 $page['ipv4net']['parent'] = 'ipv4space';
163 $page['ipv4net']['bypass'] = 'id';
164 $page['ipv4net']['bypass_type'] = 'uint';
165 $tab['ipv4net']['default'] = 'Browse';
166 $tab['ipv4net']['properties'] = 'Properties';
167 $tab['ipv4net']['liveptr'] = 'Live PTR';
168 $tab['ipv4net']['tags'] = 'Tags';
169 $tab['ipv4net']['files'] = 'Files';
170 $tabhandler['ipv4net']['default'] = 'renderIPv4Network';
171 $tabhandler['ipv4net']['properties'] = 'renderIPv4NetworkProperties';
172 $tabhandler['ipv4net']['liveptr'] = 'renderLivePTR';
173 $tabhandler['ipv4net']['tags'] = 'renderEntityTags';
174 $tabhandler['ipv4net']['files'] = 'renderFilesForEntity';
175 $trigger['ipv4net']['tags'] = 'trigger_tags';
176 $ophandler['ipv4net']['properties']['editRange'] = 'updIPv4Prefix';
177 $ophandler['ipv4net']['liveptr']['importPTRData'] = 'importPTRData';
178 $ophandler['ipv4net']['tags']['saveTags'] = 'saveEntityTags';
179 $ophandler['ipv4net']['files']['addFile'] = 'addFileToEntity';
180 $ophandler['ipv4net']['files']['linkFile'] = 'linkFileToEntity';
181 $ophandler['ipv4net']['files']['unlinkFile'] = 'unlinkFile';
182
183 $page['ipaddress']['parent'] = 'ipv4net';
184 $page['ipaddress']['bypass'] = 'ip';
185 $page['ipaddress']['bypass_type'] = 'inet4';
186 $tab['ipaddress']['default'] = 'Browse';
187 $tab['ipaddress']['properties'] = 'Properties';
188 $tab['ipaddress']['assignment'] = 'Allocation';
189 $tabhandler['ipaddress']['default'] = 'renderIPv4Address';
190 $tabhandler['ipaddress']['properties'] = 'renderIPv4AddressProperties';
191 $tabhandler['ipaddress']['assignment'] = 'renderIPv4AddressAllocations';
192 $ophandler['ipaddress']['properties']['editAddress'] = 'editAddress';
193 $ophandler['ipaddress']['assignment']['delIPv4Allocation'] = 'delIPv4Allocation';
194 $ophandler['ipaddress']['assignment']['updIPv4Allocation'] = 'updIPv4Allocation';
195 $ophandler['ipaddress']['assignment']['addIPv4Allocation'] = 'addIPv4Allocation';
196
197 $page['ipv4slb']['title'] = 'IPv4 SLB';
198 $page['ipv4slb']['parent'] = 'index';
199 $page['ipv4slb']['handler'] = 'renderIPv4SLB';
200
201 $page['ipv4vslist']['title'] = 'Virtual services';
202 $page['ipv4vslist']['parent'] = 'ipv4slb';
203 $tab['ipv4vslist']['default'] = 'View';
204 $tab['ipv4vslist']['edit'] = 'Edit';
205 $tabhandler['ipv4vslist']['default'] = 'renderVSList';
206 $tabhandler['ipv4vslist']['edit'] = 'renderVSListEditForm';
207 $ophandler['ipv4vslist']['edit']['add'] = 'addVService';
208 $ophandler['ipv4vslist']['edit']['del'] = 'deleteVService';
209
210 $page['ipv4vs']['parent'] = 'ipv4vslist';
211 $page['ipv4vs']['bypass'] = 'vs_id';
212 $page['ipv4vs']['bypass_type'] = 'uint';
213 $tab['ipv4vs']['default'] = 'View';
214 $tab['ipv4vs']['edit'] = 'Edit';
215 $tab['ipv4vs']['editlblist'] = 'Load balancers';
216 $tab['ipv4vs']['tags'] = 'Tags';
217 $tab['ipv4vs']['files'] = 'Files';
218 $tabhandler['ipv4vs']['default'] = 'renderVirtualService';
219 $tabhandler['ipv4vs']['edit'] = 'renderEditVService';
220 $tabhandler['ipv4vs']['editlblist'] = 'renderVServiceLBForm';
221 $tabhandler['ipv4vs']['tags'] = 'renderEntityTags';
222 $tabhandler['ipv4vs']['files'] = 'renderFilesForEntity';
223 $trigger['ipv4vs']['tags'] = 'trigger_tags';
224 $ophandler['ipv4vs']['edit']['updIPv4VS'] = 'updateVService';
225 $ophandler['ipv4vs']['editlblist']['addLB'] = 'addLoadBalancer';
226 $ophandler['ipv4vs']['editlblist']['delLB'] = 'deleteLoadBalancer';
227 $ophandler['ipv4vs']['editlblist']['updLB'] = 'updateLoadBalancer';
228 $ophandler['ipv4vs']['tags']['saveTags'] = 'saveEntityTags';
229 $ophandler['ipv4vs']['files']['addFile'] = 'addFileToEntity';
230 $ophandler['ipv4vs']['files']['linkFile'] = 'linkFileToEntity';
231 $ophandler['ipv4vs']['files']['unlinkFile'] = 'unlinkFile';
232
233 $page['ipv4rsplist']['title'] = 'RS pools';
234 $page['ipv4rsplist']['parent'] = 'ipv4slb';
235 $tab['ipv4rsplist']['default'] = 'View';
236 $tab['ipv4rsplist']['edit'] = 'Edit';
237 $tabhandler['ipv4rsplist']['default'] = 'renderRSPoolList';
238 $tabhandler['ipv4rsplist']['edit'] = 'editRSPools';
239 $ophandler['ipv4rsplist']['edit']['add'] = 'addRSPool';
240 $ophandler['ipv4rsplist']['edit']['del'] = 'deleteRSPool';
241
242 $page['ipv4rspool']['parent'] = 'ipv4rsplist';
243 $page['ipv4rspool']['bypass'] = 'pool_id';
244 $page['ipv4rspool']['bypass_type'] = 'uint';
245 $tab['ipv4rspool']['default'] = 'View';
246 $tab['ipv4rspool']['edit'] = 'Edit';
247 $tab['ipv4rspool']['editlblist'] = 'Load balancers';
248 $tab['ipv4rspool']['editrslist'] = 'RS list';
249 $tab['ipv4rspool']['rsinservice'] = 'RS in service';
250 $tab['ipv4rspool']['tags'] = 'Tags';
251 $tab['ipv4rspool']['files'] = 'Files';
252 $trigger['ipv4rspool']['rsinservice'] = 'trigger_poolrscount';
253 $trigger['ipv4rspool']['tags'] = 'trigger_tags';
254 $tabhandler['ipv4rspool']['default'] = 'renderRSPool';
255 $tabhandler['ipv4rspool']['edit'] = 'renderEditRSPool';
256 $tabhandler['ipv4rspool']['editrslist'] = 'renderRSPoolServerForm';
257 $tabhandler['ipv4rspool']['editlblist'] = 'renderRSPoolLBForm';
258 $tabhandler['ipv4rspool']['rsinservice'] = 'renderRSPoolRSInServiceForm';
259 $tabhandler['ipv4rspool']['tags'] = 'renderEntityTags';
260 $tabhandler['ipv4rspool']['files'] = 'renderFilesForEntity';
261 $ophandler['ipv4rspool']['edit']['updIPv4RSP'] = 'updateRSPool';
262 $ophandler['ipv4rspool']['editrslist']['addRS'] = 'addRealServer';
263 $ophandler['ipv4rspool']['editrslist']['delRS'] = 'deleteRealServer';
264 $ophandler['ipv4rspool']['editrslist']['updRS'] = 'updateRealServer';
265 $ophandler['ipv4rspool']['editrslist']['addMany'] = 'addRealServers';
266 $ophandler['ipv4rspool']['editlblist']['addLB'] = 'addLoadBalancer';
267 $ophandler['ipv4rspool']['editlblist']['delLB'] = 'deleteLoadBalancer';
268 $ophandler['ipv4rspool']['editlblist']['updLB'] = 'updateLoadBalancer';
269 $ophandler['ipv4rspool']['rsinservice']['upd'] = 'updateRSInService';
270 $ophandler['ipv4rspool']['tags']['saveTags'] = 'saveEntityTags';
271 $ophandler['ipv4rspool']['files']['addFile'] = 'addFileToEntity';
272 $ophandler['ipv4rspool']['files']['linkFile'] = 'linkFileToEntity';
273 $ophandler['ipv4rspool']['files']['unlinkFile'] = 'unlinkFile';
274
275 $page['rservers']['title'] = 'Real servers';
276 $page['rservers']['parent'] = 'ipv4slb';
277 $page['rservers']['handler'] = 'renderRealServerList';
278
279 $page['lbs']['title'] = 'Load balancers';
280 $page['lbs']['parent'] = 'ipv4slb';
281 $page['lbs']['handler'] = 'renderLBList';
282
283 $page['search']['handler'] = 'renderSearchResults';
284 $page['search']['parent'] = 'index';
285 $page['search']['bypass'] = 'q';
286
287 $page['config']['title'] = 'Configuration';
288 $page['config']['handler'] = 'renderConfigMainpage';
289 $page['config']['parent'] = 'index';
290
291 $page['userlist']['title'] = 'Local users';
292 $page['userlist']['parent'] = 'config';
293 $tab['userlist']['default'] = 'View';
294 $tab['userlist']['edit'] = 'Edit';
295 $tabhandler['userlist']['default'] = 'renderUserList';
296 $tabhandler['userlist']['edit'] = 'renderUserListEditor';
297 $ophandler['userlist']['edit']['updateUser'] = 'updateUser';
298 $ophandler['userlist']['edit']['createUser'] = 'createUser';
299
300 $page['user']['parent'] = 'userlist';
301 $page['user']['bypass'] = 'user_id';
302 $page['user']['bypass_type'] = 'uint';
303 $tab['user']['default'] = 'View';
304 $tab['user']['tags'] = 'Tags';
305 $tab['user']['files'] = 'Files';
306 $tabhandler['user']['default'] = 'renderUser';
307 $tabhandler['user']['tags'] = 'renderEntityTags';
308 $tabhandler['user']['files'] = 'renderFilesForEntity';
309 $ophandler['user']['tags']['saveTags'] = 'saveEntityTags';
310 $ophandler['user']['files']['addFile'] = 'addFileToEntity';
311 $ophandler['user']['files']['linkFile'] = 'linkFileToEntity';
312 $ophandler['user']['files']['unlinkFile'] = 'unlinkFile';
313
314 $page['perms']['title'] = 'Permissions';
315 $page['perms']['parent'] = 'config';
316 $tab['perms']['default'] = 'View';
317 $tab['perms']['edit'] = 'Edit';
318 $tabhandler['perms']['default'] = 'renderRackCodeViewer';
319 $tabhandler['perms']['edit'] = 'renderRackCodeEditor';
320 $ophandler['perms']['edit']['saveRackCode'] = 'saveRackCode';
321
322 $page['portmap']['title'] = 'Port compatibility';
323 $page['portmap']['parent'] = 'config';
324 $tab['portmap']['default'] = 'View';
325 $tab['portmap']['edit'] = '[Edit]';
326 $tabhandler['portmap']['default'] = 'renderPortOIFCompatViewer';
327 $tabhandler['portmap']['edit'] = 'renderPortOIFCompatEditor';
328 $ophandler['portmap']['edit']['add'] = 'addPortOIFCompat';
329 $ophandler['portmap']['edit']['del'] = 'delPortOIFCompat';
330
331 $page['portifcompat']['title'] = 'Enabled port types';
332 $page['portifcompat']['parent'] = 'config';
333 $tab['portifcompat']['default'] = 'View';
334 $tab['portifcompat']['edit'] = 'Edit';
335 $tabhandler['portifcompat']['default'] = 'renderPortIFCompat';
336 $tabhandler['portifcompat']['edit'] = 'renderPortIFCompatEditor';
337 $ophandler['portifcompat']['edit']['add'] = 'addPortInterfaceCompat';
338 $ophandler['portifcompat']['edit']['del'] = 'delPortInterfaceCompat';
339 $ophandler['portifcompat']['edit']['addPack'] = 'addPortInterfaceCompatPack';
340 $ophandler['portifcompat']['edit']['delPack'] = 'delPortInterfaceCompatPack';
341
342 $page['attrs']['title'] = 'Attributes';
343 $page['attrs']['parent'] = 'config';
344 $tab['attrs']['default'] = 'View';
345 $tab['attrs']['editattrs'] = 'Edit attributes';
346 $tab['attrs']['editmap'] = 'Edit map';
347 $tabhandler['attrs']['default'] = 'renderAttributes';
348 $tabhandler['attrs']['editattrs'] = 'renderEditAttributesForm';
349 $tabhandler['attrs']['editmap'] = 'renderEditAttrMapForm';
350 $ophandler['attrs']['editattrs']['add'] = 'createAttribute';
351 $ophandler['attrs']['editattrs']['upd'] = 'changeAttribute';
352 $ophandler['attrs']['editattrs']['del'] = 'deleteAttribute';
353 $ophandler['attrs']['editmap']['add'] = 'supplementAttrMap';
354 $ophandler['attrs']['editmap']['del'] = 'reduceAttrMap';
355
356 $page['dict']['title'] = 'Dictionary';
357 $page['dict']['parent'] = 'config';
358 $tab['dict']['default'] = 'View';
359 $tab['dict']['chapters'] = 'Manage chapters';
360 $tabhandler['dict']['default'] = 'renderDictionary';
361 $tabhandler['dict']['chapters'] = 'renderChaptersEditor';
362 $ophandler['dict']['chapters']['del'] = 'delChapter';
363 $ophandler['dict']['chapters']['upd'] = 'updateChapter';
364 $ophandler['dict']['chapters']['add'] = 'addChapter';
365
366 $page['chapter']['parent'] = 'dict';
367 $page['chapter']['bypass'] = 'chapter_no';
368 $page['chapter']['bypass_type'] = 'uint';
369 $tab['chapter']['default'] = 'View';
370 $tab['chapter']['edit'] = 'Edit';
371 $tabhandler['chapter']['default'] = 'renderChapter';
372 $tabhandler['chapter']['edit'] = 'renderChapterEditor';
373 $ophandler['chapter']['edit']['del'] = 'reduceDictionary';
374 $ophandler['chapter']['edit']['upd'] = 'updateDictionary';
375 $ophandler['chapter']['edit']['add'] = 'supplementDictionary';
376
377 $page['ui']['title'] = 'User interface';
378 $page['ui']['parent'] = 'config';
379 $tab['ui']['default'] = 'View';
380 $tab['ui']['edit'] = 'Change';
381 $tab['ui']['reset'] = 'Reset';
382 $tabhandler['ui']['default'] = 'renderUIConfig';
383 $tabhandler['ui']['edit'] = 'renderUIConfigEditForm';
384 $tabhandler['ui']['reset'] = 'renderUIResetForm';
385 $ophandler['ui']['edit']['upd'] = 'updateUI';
386 $ophandler['ui']['reset']['go'] = 'resetUIConfig';
387
388 $page['tagtree']['title'] = 'Tag tree';
389 $page['tagtree']['parent'] = 'config';
390 $tab['tagtree']['default'] = 'View';
391 $tab['tagtree']['edit'] = 'Edit';
392 $tabhandler['tagtree']['default'] = 'renderTagTree';
393 $tabhandler['tagtree']['edit'] = 'renderTagTreeEditor';
394 $ophandler['tagtree']['edit']['destroyTag'] = 'destroyTag';
395 $ophandler['tagtree']['edit']['createTag'] = 'createTag';
396 $ophandler['tagtree']['edit']['updateTag'] = 'updateTag';
397
398 $page['myaccount']['title'] = 'My account';
399 $page['myaccount']['parent'] = 'config';
400 $tab['myaccount']['default'] = 'Info';
401 $tab['myaccount']['mypassword'] = 'Password change';
402 $tab['myaccount']['myrealname'] = '[Real name change]';
403 $tab['myaccount']['interface'] = 'Interface preferences';
404 $trigger['myaccount']['mypassword'] = 'trigger_passwdchange';
405 $tabhandler['myaccount']['default'] = 'renderMyAccount';
406 $tabhandler['myaccount']['mypassword'] = 'renderMyPasswordEditor';
407 $tabhandler['myaccount']['myrealname'] = 'dragon';
408 $tabhandler['myaccount']['interface'] = 'renderMyPreferences';
409 $ophandler['myaccount']['mypassword']['changeMyPassword'] = 'changeMyPassword';
410 $ophandler['myaccount']['interface']['upd'] = 'saveMyPreferences';
411 $ophandler['myaccount']['interface']['reset'] = 'resetMyPreference';
412
413 $page['reports']['title'] = 'Reports';
414 $page['reports']['parent'] = 'index';
415 $tab['reports']['default'] = 'System';
416 $tab['reports']['rackcode'] = 'RackCode';
417 $tab['reports']['ipv4'] = 'IPv4';
418 $tab['reports']['ports'] = 'Ports';
419 $tab['reports']['local'] = getConfigVar ('enterprise');
420 $trigger['reports']['local'] = 'trigger_localreports';
421 $tabhandler['reports']['default'] = 'renderSystemReports';
422 $tabhandler['reports']['rackcode'] = 'renderRackCodeReports';
423 $tabhandler['reports']['ipv4'] = 'renderIPv4Reports';
424 $tabhandler['reports']['ports'] = 'renderPortsReport';
425 $tabhandler['reports']['local'] = 'renderLocalReports';
426
427 $page['files']['title'] = 'Files';
428 $page['files']['parent'] = 'index';
429 $tab['files']['default'] = 'Browse';
430 $tab['files']['manage'] = 'Manage';
431 $tabhandler['files']['default'] = 'renderFileBrowser';
432 $tabhandler['files']['manage'] = 'renderFileManager';
433 $ophandler['files']['manage']['addFile'] = 'addFileWithoutLink';
434 $ophandler['files']['manage']['unlinkFile'] = 'unlinkFile';
435 $ophandler['files']['manage']['deleteFile'] = 'deleteFile';
436
437 $page['file']['bypass'] = 'file_id';
438 $page['file']['bypass_type'] = 'uint';
439 $page['file']['parent'] = 'files';
440 $tab['file']['default'] = 'View';
441 $tab['file']['edit'] = 'Properties';
442 $tab['file']['tags'] = 'Tags';
443 $tab['file']['editText'] = 'Edit text';
444 $tab['file']['replaceData'] = 'Upload replacement';
445 $tab['file']['download'] = 'Download';
446 $trigger['file']['tags'] = 'trigger_tags';
447 $trigger['file']['editText'] = 'trigger_file_editText';
448 $tabhandler['file']['default'] = 'renderFile';
449 $tabhandler['file']['edit'] = 'renderFileProperties';
450 $tabhandler['file']['tags'] = 'renderEntityTags';
451 $tabhandler['file']['editText'] = 'renderTextEditor';
452 $tabhandler['file']['replaceData'] = 'renderFileReuploader';
453 $tabhandler['file']['download'] = 'renderFileDownloader';
454 $ophandler['file']['edit']['updateFile'] = 'updateFile';
455 $ophandler['file']['tags']['saveTags'] = 'saveEntityTags';
456 $ophandler['file']['editText']['updateFileText'] = 'updateFileText';
457 $ophandler['file']['replaceData']['replaceFile'] = 'replaceFile';
458
459 $page['vlandomainlist']['title'] = 'VLAN domains';
460 $page['vlandomainlist']['parent'] = 'index';
461 $tab['vlandomainlist']['default'] = 'Summary';
462 $tab['vlandomainlist']['edit'] = 'Manage';
463 $tabhandler['vlandomainlist']['default'] = 'renderVLANDomainList';
464 $tabhandler['vlandomainlist']['edit'] = 'renderVLANDomainListEditor';
465 $ophandler['vlandomainlist']['edit']['add'] = 'createVLANDomain';
466 $ophandler['vlandomainlist']['edit']['del'] = 'destroyVLANDomain';
467 $ophandler['vlandomainlist']['edit']['upd'] = 'updateVLANDomain';
468
469 $page['vlandomain']['parent'] = 'vlandomainlist';
470 $page['vlandomain']['bypass'] = 'vdom_id';
471 $page['vlandomain']['bypass_type'] = 'uint';
472 $tab['vlandomain']['default'] = 'View';
473 $tab['vlandomain']['vlanlist'] = 'VLAN list';
474 $tab['vlandomain']['switches'] = 'Bindings';
475 $tab['vlandomain']['edit'] = '[Domain properties]';
476 $tab['vlandomain']['syncvlans'] = '[Sync]';
477 $tabhandler['vlandomain']['default'] = 'renderVLANDomain';
478 $tabhandler['vlandomain']['switches'] = 'renderVLANDomainSwitches';
479 $tabhandler['vlandomain']['vlanlist'] = 'renderVLANDomainVLANList';
480 $ophandler['vlandomain']['switches']['bind'] = 'addVLANSwitchBinding';
481 $ophandler['vlandomain']['switches']['unbind'] = 'delVLANSwitchBinding';
482 $ophandler['vlandomain']['vlanlist']['add'] = 'addVLANDescription';
483 $ophandler['vlandomain']['vlanlist']['del'] = 'delVLANDescription';
484 $ophandler['vlandomain']['vlanlist']['upd'] = 'updVLANDescription';
485
486 ?>