f583bcbf4aae74f67a4ec3d438c9ee6c0c93a557
[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']['8021qorder'] = '802.1Q order';
94 $tab['object']['8021qports'] = '802.1Q ports';
95 $tab['object']['8021qsync'] = '802.1Q sync';
96 $tabhandler['object']['default'] = 'renderRackObject';
97 $tabhandler['object']['edit'] = 'renderEditObjectForm';
98 $tabhandler['object']['rackspace'] = 'renderRackSpaceForObject';
99 $tabhandler['object']['ports'] = 'renderPortsForObject';
100 $tabhandler['object']['ipv4'] = 'renderIPv4ForObject';
101 $tabhandler['object']['nat4'] = 'renderNATv4ForObject';
102 $tabhandler['object']['livevlans'] = 'renderVLANMembership';
103 $tabhandler['object']['snmpportfinder'] = 'renderSNMPPortFinder';
104 $tabhandler['object']['lvsconfig'] = 'renderLVSConfig';
105 $tabhandler['object']['autoports'] = 'renderAutoPortsForm';
106 $tabhandler['object']['tags'] = 'renderEntityTags';
107 $tabhandler['object']['files'] = 'renderFilesForEntity';
108 $tabhandler['object']['editrspvs'] = 'renderObjectSLB';
109 $tabhandler['object']['8021qorder'] = 'render8021QOrderForm';
110 $tabhandler['object']['8021qports'] = 'renderObject8021QPorts';
111 $tabhandler['object']['8021qsync'] = 'renderObject8021QSync';
112 $trigger['object']['rackspace'] = 'trigger_rackspace';
113 $trigger['object']['ipv4'] = 'trigger_ipv4';
114 $trigger['object']['nat4'] = 'trigger_natv4';
115 $trigger['object']['livevlans'] = 'trigger_livevlans';
116 $trigger['object']['snmpportfinder'] = 'trigger_snmpportfinder';
117 $trigger['object']['editrspvs'] = 'trigger_isloadbalancer';
118 $trigger['object']['lvsconfig'] = 'trigger_isloadbalancer';
119 $trigger['object']['autoports'] = 'trigger_autoports';
120 $trigger['object']['tags'] = 'trigger_tags';
121 $trigger['object']['8021qorder'] = 'trigger_object_8021qorder';
122 $trigger['object']['8021qports'] = 'trigger_object_8021qports';
123 $trigger['object']['8021qsync'] = 'trigger_object_8021qsync';
124 $ophandler['object']['rackspace']['updateObjectAllocation'] = 'updateObjectAllocation';
125 $ophandler['object']['ports']['addPort'] = 'addPortForObject';
126 $ophandler['object']['ports']['delPort'] = 'delPortFromObject';
127 $ophandler['object']['ports']['editPort'] = 'editPortForObject';
128 $ophandler['object']['ports']['linkPort'] = 'linkPortForObject';
129 $ophandler['object']['ports']['unlinkPort'] = 'unlinkPortForObject';
130 $ophandler['object']['ports']['addMultiPorts'] = 'addMultiPorts';
131 $ophandler['object']['ports']['addBulkPorts'] = 'addBulkPorts';
132 $ophandler['object']['ports']['useup'] = 'useupPort';
133 $ophandler['object']['ipv4']['updIPv4Allocation'] = 'updIPv4Allocation';
134 $ophandler['object']['ipv4']['addIPv4Allocation'] = 'addIPv4Allocation';
135 $ophandler['object']['ipv4']['delIPv4Allocation'] = 'delIPv4Allocation';
136 $ophandler['object']['edit']['clearSticker'] = 'clearSticker';
137 $ophandler['object']['edit']['update'] = 'updateObject';
138 $ophandler['object']['nat4']['addNATv4Rule'] = 'addPortForwarding';
139 $ophandler['object']['nat4']['delNATv4Rule'] = 'delPortForwarding';
140 $ophandler['object']['nat4']['updNATv4Rule'] = 'updPortForwarding';
141 $ophandler['object']['livevlans']['setPortVLAN'] = 'setPortVLAN';
142 $ophandler['object']['autoports']['generate'] = 'generateAutoPorts';
143 $ophandler['object']['tags']['saveTags'] = 'saveEntityTags';
144 $ophandler['object']['files']['addFile'] = 'addFileToEntity';
145 $ophandler['object']['files']['linkFile'] = 'linkFileToEntity';
146 $ophandler['object']['files']['unlinkFile'] = 'unlinkFile';
147 $ophandler['object']['editrspvs']['addLB'] = 'addLoadBalancer';
148 $ophandler['object']['editrspvs']['delLB'] = 'deleteLoadBalancer';
149 $ophandler['object']['editrspvs']['updLB'] = 'updateLoadBalancer';
150 $ophandler['object']['lvsconfig']['submitSLBConfig'] = 'submitSLBConfig';
151 $ophandler['object']['snmpportfinder']['querySNMPData'] = 'querySNMPData';
152 $ophandler['object']['8021qorder']['add'] = 'add8021QOrder';
153 $ophandler['object']['8021qorder']['del'] = 'del8021QOrder';
154 $ophandler['object']['8021qports']['save8021QConfig'] = 'save8021QPorts';
155 $ophandler['object']['8021qports']['sync'] = 'sync8021QPorts';
156 $ophandler['object']['8021qsync']['exec8021QPull'] = 'process8021QSyncRequest';
157 $ophandler['object']['8021qsync']['exec8021QPush'] = 'process8021QSyncRequest';
158 $ophandler['object']['8021qsync']['resolve8021QConflicts'] = 'resolve8021QConflicts';
159 $delayauth['object']['8021qports']['save8021QConfig'] = TRUE;
160 $delayauth['object']['livevlans']['setPortVLAN'] = TRUE;
161
162 $page['ipv4space']['title'] = 'IPv4 space';
163 $page['ipv4space']['parent'] = 'index';
164 $tab['ipv4space']['default'] = 'Browse';
165 $tab['ipv4space']['newrange'] = 'Manage';
166 $tabhandler['ipv4space']['default'] = 'renderIPv4Space';
167 $tabhandler['ipv4space']['newrange'] = 'renderIPv4SpaceEditor';
168 $ophandler['ipv4space']['newrange']['addIPv4Prefix'] = 'addIPv4Prefix';
169 $ophandler['ipv4space']['newrange']['delIPv4Prefix'] = 'delIPv4Prefix';
170
171 $page['ipv4net']['parent'] = 'ipv4space';
172 $page['ipv4net']['bypass'] = 'id';
173 $page['ipv4net']['bypass_type'] = 'uint';
174 $tab['ipv4net']['default'] = 'Browse';
175 $tab['ipv4net']['properties'] = 'Properties';
176 $tab['ipv4net']['liveptr'] = 'Live PTR';
177 $tab['ipv4net']['tags'] = 'Tags';
178 $tab['ipv4net']['files'] = 'Files';
179 $tab['ipv4net']['8021q'] = '802.1Q';
180 $tabhandler['ipv4net']['default'] = 'renderIPv4Network';
181 $tabhandler['ipv4net']['properties'] = 'renderIPv4NetworkProperties';
182 $tabhandler['ipv4net']['liveptr'] = 'renderLivePTR';
183 $tabhandler['ipv4net']['tags'] = 'renderEntityTags';
184 $tabhandler['ipv4net']['files'] = 'renderFilesForEntity';
185 $tabhandler['ipv4net']['8021q'] = 'renderVLANIPv4';
186 $trigger['ipv4net']['tags'] = 'trigger_tags';
187 $trigger['ipv4net']['8021q'] = 'trigger_ipv4net_vlanconfig';
188 $ophandler['ipv4net']['properties']['editRange'] = 'updIPv4Prefix';
189 $ophandler['ipv4net']['liveptr']['importPTRData'] = 'importPTRData';
190 $ophandler['ipv4net']['tags']['saveTags'] = 'saveEntityTags';
191 $ophandler['ipv4net']['files']['addFile'] = 'addFileToEntity';
192 $ophandler['ipv4net']['files']['linkFile'] = 'linkFileToEntity';
193 $ophandler['ipv4net']['files']['unlinkFile'] = 'unlinkFile';
194 $ophandler['ipv4net']['8021q']['bind'] = 'bindVLANtoIPv4';
195 $ophandler['ipv4net']['8021q']['unbind'] = 'unbindVLANfromIPv4';
196
197 $page['ipaddress']['parent'] = 'ipv4net';
198 $page['ipaddress']['bypass'] = 'ip';
199 $page['ipaddress']['bypass_type'] = 'inet4';
200 $tab['ipaddress']['default'] = 'Browse';
201 $tab['ipaddress']['properties'] = 'Properties';
202 $tab['ipaddress']['assignment'] = 'Allocation';
203 $tabhandler['ipaddress']['default'] = 'renderIPv4Address';
204 $tabhandler['ipaddress']['properties'] = 'renderIPv4AddressProperties';
205 $tabhandler['ipaddress']['assignment'] = 'renderIPv4AddressAllocations';
206 $ophandler['ipaddress']['properties']['editAddress'] = 'editAddress';
207 $ophandler['ipaddress']['assignment']['delIPv4Allocation'] = 'delIPv4Allocation';
208 $ophandler['ipaddress']['assignment']['updIPv4Allocation'] = 'updIPv4Allocation';
209 $ophandler['ipaddress']['assignment']['addIPv4Allocation'] = 'addIPv4Allocation';
210
211 $page['ipv4slb']['title'] = 'IPv4 SLB';
212 $page['ipv4slb']['parent'] = 'index';
213 $page['ipv4slb']['handler'] = 'renderIPv4SLB';
214
215 $page['ipv4vslist']['title'] = 'Virtual services';
216 $page['ipv4vslist']['parent'] = 'ipv4slb';
217 $tab['ipv4vslist']['default'] = 'View';
218 $tab['ipv4vslist']['edit'] = 'Edit';
219 $tabhandler['ipv4vslist']['default'] = 'renderVSList';
220 $tabhandler['ipv4vslist']['edit'] = 'renderVSListEditForm';
221 $ophandler['ipv4vslist']['edit']['add'] = 'addVService';
222 $ophandler['ipv4vslist']['edit']['del'] = 'deleteVService';
223
224 $page['ipv4vs']['parent'] = 'ipv4vslist';
225 $page['ipv4vs']['bypass'] = 'vs_id';
226 $page['ipv4vs']['bypass_type'] = 'uint';
227 $tab['ipv4vs']['default'] = 'View';
228 $tab['ipv4vs']['edit'] = 'Edit';
229 $tab['ipv4vs']['editlblist'] = 'Load balancers';
230 $tab['ipv4vs']['tags'] = 'Tags';
231 $tab['ipv4vs']['files'] = 'Files';
232 $tabhandler['ipv4vs']['default'] = 'renderVirtualService';
233 $tabhandler['ipv4vs']['edit'] = 'renderEditVService';
234 $tabhandler['ipv4vs']['editlblist'] = 'renderVServiceLBForm';
235 $tabhandler['ipv4vs']['tags'] = 'renderEntityTags';
236 $tabhandler['ipv4vs']['files'] = 'renderFilesForEntity';
237 $trigger['ipv4vs']['tags'] = 'trigger_tags';
238 $ophandler['ipv4vs']['edit']['updIPv4VS'] = 'updateVService';
239 $ophandler['ipv4vs']['editlblist']['addLB'] = 'addLoadBalancer';
240 $ophandler['ipv4vs']['editlblist']['delLB'] = 'deleteLoadBalancer';
241 $ophandler['ipv4vs']['editlblist']['updLB'] = 'updateLoadBalancer';
242 $ophandler['ipv4vs']['tags']['saveTags'] = 'saveEntityTags';
243 $ophandler['ipv4vs']['files']['addFile'] = 'addFileToEntity';
244 $ophandler['ipv4vs']['files']['linkFile'] = 'linkFileToEntity';
245 $ophandler['ipv4vs']['files']['unlinkFile'] = 'unlinkFile';
246
247 $page['ipv4rsplist']['title'] = 'RS pools';
248 $page['ipv4rsplist']['parent'] = 'ipv4slb';
249 $tab['ipv4rsplist']['default'] = 'View';
250 $tab['ipv4rsplist']['edit'] = 'Edit';
251 $tabhandler['ipv4rsplist']['default'] = 'renderRSPoolList';
252 $tabhandler['ipv4rsplist']['edit'] = 'editRSPools';
253 $ophandler['ipv4rsplist']['edit']['add'] = 'addRSPool';
254 $ophandler['ipv4rsplist']['edit']['del'] = 'deleteRSPool';
255
256 $page['ipv4rspool']['parent'] = 'ipv4rsplist';
257 $page['ipv4rspool']['bypass'] = 'pool_id';
258 $page['ipv4rspool']['bypass_type'] = 'uint';
259 $tab['ipv4rspool']['default'] = 'View';
260 $tab['ipv4rspool']['edit'] = 'Edit';
261 $tab['ipv4rspool']['editlblist'] = 'Load balancers';
262 $tab['ipv4rspool']['editrslist'] = 'RS list';
263 $tab['ipv4rspool']['rsinservice'] = 'RS in service';
264 $tab['ipv4rspool']['tags'] = 'Tags';
265 $tab['ipv4rspool']['files'] = 'Files';
266 $trigger['ipv4rspool']['rsinservice'] = 'trigger_poolrscount';
267 $trigger['ipv4rspool']['tags'] = 'trigger_tags';
268 $tabhandler['ipv4rspool']['default'] = 'renderRSPool';
269 $tabhandler['ipv4rspool']['edit'] = 'renderEditRSPool';
270 $tabhandler['ipv4rspool']['editrslist'] = 'renderRSPoolServerForm';
271 $tabhandler['ipv4rspool']['editlblist'] = 'renderRSPoolLBForm';
272 $tabhandler['ipv4rspool']['rsinservice'] = 'renderRSPoolRSInServiceForm';
273 $tabhandler['ipv4rspool']['tags'] = 'renderEntityTags';
274 $tabhandler['ipv4rspool']['files'] = 'renderFilesForEntity';
275 $ophandler['ipv4rspool']['edit']['updIPv4RSP'] = 'updateRSPool';
276 $ophandler['ipv4rspool']['editrslist']['addRS'] = 'addRealServer';
277 $ophandler['ipv4rspool']['editrslist']['delRS'] = 'deleteRealServer';
278 $ophandler['ipv4rspool']['editrslist']['updRS'] = 'updateRealServer';
279 $ophandler['ipv4rspool']['editrslist']['addMany'] = 'addRealServers';
280 $ophandler['ipv4rspool']['editlblist']['addLB'] = 'addLoadBalancer';
281 $ophandler['ipv4rspool']['editlblist']['delLB'] = 'deleteLoadBalancer';
282 $ophandler['ipv4rspool']['editlblist']['updLB'] = 'updateLoadBalancer';
283 $ophandler['ipv4rspool']['rsinservice']['upd'] = 'updateRSInService';
284 $ophandler['ipv4rspool']['tags']['saveTags'] = 'saveEntityTags';
285 $ophandler['ipv4rspool']['files']['addFile'] = 'addFileToEntity';
286 $ophandler['ipv4rspool']['files']['linkFile'] = 'linkFileToEntity';
287 $ophandler['ipv4rspool']['files']['unlinkFile'] = 'unlinkFile';
288
289 $page['rservers']['title'] = 'Real servers';
290 $page['rservers']['parent'] = 'ipv4slb';
291 $page['rservers']['handler'] = 'renderRealServerList';
292
293 $page['lbs']['title'] = 'Load balancers';
294 $page['lbs']['parent'] = 'ipv4slb';
295 $page['lbs']['handler'] = 'renderLBList';
296
297 $page['search']['handler'] = 'renderSearchResults';
298 $page['search']['parent'] = 'index';
299 $page['search']['bypass'] = 'q';
300
301 $page['config']['title'] = 'Configuration';
302 $page['config']['handler'] = 'renderConfigMainpage';
303 $page['config']['parent'] = 'index';
304
305 $page['userlist']['title'] = 'Local users';
306 $page['userlist']['parent'] = 'config';
307 $tab['userlist']['default'] = 'View';
308 $tab['userlist']['edit'] = 'Edit';
309 $tabhandler['userlist']['default'] = 'renderUserList';
310 $tabhandler['userlist']['edit'] = 'renderUserListEditor';
311 $ophandler['userlist']['edit']['updateUser'] = 'updateUser';
312 $ophandler['userlist']['edit']['createUser'] = 'createUser';
313
314 $page['user']['parent'] = 'userlist';
315 $page['user']['bypass'] = 'user_id';
316 $page['user']['bypass_type'] = 'uint';
317 $tab['user']['default'] = 'View';
318 $tab['user']['tags'] = 'Tags';
319 $tab['user']['files'] = 'Files';
320 $tabhandler['user']['default'] = 'renderUser';
321 $tabhandler['user']['tags'] = 'renderEntityTags';
322 $tabhandler['user']['files'] = 'renderFilesForEntity';
323 $ophandler['user']['tags']['saveTags'] = 'saveEntityTags';
324 $ophandler['user']['files']['addFile'] = 'addFileToEntity';
325 $ophandler['user']['files']['linkFile'] = 'linkFileToEntity';
326 $ophandler['user']['files']['unlinkFile'] = 'unlinkFile';
327
328 $page['perms']['title'] = 'Permissions';
329 $page['perms']['parent'] = 'config';
330 $tab['perms']['default'] = 'View';
331 $tab['perms']['edit'] = 'Edit';
332 $tabhandler['perms']['default'] = 'renderRackCodeViewer';
333 $tabhandler['perms']['edit'] = 'renderRackCodeEditor';
334 $ophandler['perms']['edit']['saveRackCode'] = 'saveRackCode';
335
336 $page['portmap']['title'] = 'Port compatibility';
337 $page['portmap']['parent'] = 'config';
338 $tab['portmap']['default'] = 'View';
339 $tab['portmap']['edit'] = 'Edit';
340 $tabhandler['portmap']['default'] = 'renderPortOIFCompatViewer';
341 $tabhandler['portmap']['edit'] = 'renderPortOIFCompatEditor';
342 $ophandler['portmap']['edit']['add'] = 'addPortOIFCompat';
343 $ophandler['portmap']['edit']['del'] = 'delPortOIFCompat';
344
345 $page['portifcompat']['title'] = 'Enabled port types';
346 $page['portifcompat']['parent'] = 'config';
347 $tab['portifcompat']['default'] = 'View';
348 $tab['portifcompat']['edit'] = 'Edit';
349 $tabhandler['portifcompat']['default'] = 'renderPortIFCompat';
350 $tabhandler['portifcompat']['edit'] = 'renderPortIFCompatEditor';
351 $ophandler['portifcompat']['edit']['add'] = 'addPortInterfaceCompat';
352 $ophandler['portifcompat']['edit']['del'] = 'delPortInterfaceCompat';
353 $ophandler['portifcompat']['edit']['addPack'] = 'addPortInterfaceCompatPack';
354 $ophandler['portifcompat']['edit']['delPack'] = 'delPortInterfaceCompatPack';
355
356 $page['attrs']['title'] = 'Attributes';
357 $page['attrs']['parent'] = 'config';
358 $tab['attrs']['default'] = 'View';
359 $tab['attrs']['editattrs'] = 'Edit attributes';
360 $tab['attrs']['editmap'] = 'Edit map';
361 $tabhandler['attrs']['default'] = 'renderAttributes';
362 $tabhandler['attrs']['editattrs'] = 'renderEditAttributesForm';
363 $tabhandler['attrs']['editmap'] = 'renderEditAttrMapForm';
364 $ophandler['attrs']['editattrs']['add'] = 'createAttribute';
365 $ophandler['attrs']['editattrs']['upd'] = 'changeAttribute';
366 $ophandler['attrs']['editattrs']['del'] = 'deleteAttribute';
367 $ophandler['attrs']['editmap']['add'] = 'supplementAttrMap';
368 $ophandler['attrs']['editmap']['del'] = 'reduceAttrMap';
369
370 $page['dict']['title'] = 'Dictionary';
371 $page['dict']['parent'] = 'config';
372 $tab['dict']['default'] = 'View';
373 $tab['dict']['chapters'] = 'Manage chapters';
374 $tabhandler['dict']['default'] = 'renderDictionary';
375 $tabhandler['dict']['chapters'] = 'renderChaptersEditor';
376 $ophandler['dict']['chapters']['del'] = 'delChapter';
377 $ophandler['dict']['chapters']['upd'] = 'updateChapter';
378 $ophandler['dict']['chapters']['add'] = 'addChapter';
379
380 $page['chapter']['parent'] = 'dict';
381 $page['chapter']['bypass'] = 'chapter_no';
382 $page['chapter']['bypass_type'] = 'uint';
383 $tab['chapter']['default'] = 'View';
384 $tab['chapter']['edit'] = 'Edit';
385 $tabhandler['chapter']['default'] = 'renderChapter';
386 $tabhandler['chapter']['edit'] = 'renderChapterEditor';
387 $ophandler['chapter']['edit']['del'] = 'reduceDictionary';
388 $ophandler['chapter']['edit']['upd'] = 'updateDictionary';
389 $ophandler['chapter']['edit']['add'] = 'supplementDictionary';
390
391 $page['ui']['title'] = 'User interface';
392 $page['ui']['parent'] = 'config';
393 $tab['ui']['default'] = 'View';
394 $tab['ui']['edit'] = 'Change';
395 $tab['ui']['reset'] = 'Reset';
396 $tabhandler['ui']['default'] = 'renderUIConfig';
397 $tabhandler['ui']['edit'] = 'renderUIConfigEditForm';
398 $tabhandler['ui']['reset'] = 'renderUIResetForm';
399 $ophandler['ui']['edit']['upd'] = 'updateUI';
400 $ophandler['ui']['reset']['go'] = 'resetUIConfig';
401
402 $page['tagtree']['title'] = 'Tag tree';
403 $page['tagtree']['parent'] = 'config';
404 $tab['tagtree']['default'] = 'View';
405 $tab['tagtree']['edit'] = 'Edit';
406 $tabhandler['tagtree']['default'] = 'renderTagTree';
407 $tabhandler['tagtree']['edit'] = 'renderTagTreeEditor';
408 $ophandler['tagtree']['edit']['destroyTag'] = 'destroyTag';
409 $ophandler['tagtree']['edit']['createTag'] = 'createTag';
410 $ophandler['tagtree']['edit']['updateTag'] = 'updateTag';
411
412 $page['myaccount']['title'] = 'My account';
413 $page['myaccount']['parent'] = 'config';
414 $tab['myaccount']['default'] = 'Info';
415 $tab['myaccount']['mypassword'] = 'Password change';
416 $tab['myaccount']['myrealname'] = '[Real name change]';
417 $tab['myaccount']['interface'] = 'Interface preferences';
418 $trigger['myaccount']['mypassword'] = 'trigger_passwdchange';
419 $tabhandler['myaccount']['default'] = 'renderMyAccount';
420 $tabhandler['myaccount']['mypassword'] = 'renderMyPasswordEditor';
421 $tabhandler['myaccount']['myrealname'] = 'dragon';
422 $tabhandler['myaccount']['interface'] = 'renderMyPreferences';
423 $ophandler['myaccount']['mypassword']['changeMyPassword'] = 'changeMyPassword';
424 $ophandler['myaccount']['interface']['upd'] = 'saveMyPreferences';
425 $ophandler['myaccount']['interface']['reset'] = 'resetMyPreference';
426
427 $page['reports']['title'] = 'Reports';
428 $page['reports']['parent'] = 'index';
429 $tab['reports']['default'] = 'System';
430 $tab['reports']['rackcode'] = 'RackCode';
431 $tab['reports']['ipv4'] = 'IPv4';
432 $tab['reports']['ports'] = 'Ports';
433 $tab['reports']['local'] = getConfigVar ('enterprise');
434 $trigger['reports']['local'] = 'trigger_localreports';
435 $tabhandler['reports']['default'] = 'renderSystemReports';
436 $tabhandler['reports']['rackcode'] = 'renderRackCodeReports';
437 $tabhandler['reports']['ipv4'] = 'renderIPv4Reports';
438 $tabhandler['reports']['ports'] = 'renderPortsReport';
439 $tabhandler['reports']['local'] = 'renderLocalReports';
440
441 $page['files']['title'] = 'Files';
442 $page['files']['parent'] = 'index';
443 $tab['files']['default'] = 'Browse';
444 $tab['files']['manage'] = 'Manage';
445 $tabhandler['files']['default'] = 'renderFileBrowser';
446 $tabhandler['files']['manage'] = 'renderFileManager';
447 $ophandler['files']['manage']['addFile'] = 'addFileWithoutLink';
448 $ophandler['files']['manage']['unlinkFile'] = 'unlinkFile';
449 $ophandler['files']['manage']['deleteFile'] = 'deleteFile';
450
451 $page['file']['bypass'] = 'file_id';
452 $page['file']['bypass_type'] = 'uint';
453 $page['file']['parent'] = 'files';
454 $tab['file']['default'] = 'View';
455 $tab['file']['edit'] = 'Properties';
456 $tab['file']['tags'] = 'Tags';
457 $tab['file']['editText'] = 'Edit text';
458 $tab['file']['replaceData'] = 'Upload replacement';
459 $tab['file']['download'] = 'Download';
460 $trigger['file']['tags'] = 'trigger_tags';
461 $trigger['file']['editText'] = 'trigger_file_editText';
462 $tabhandler['file']['default'] = 'renderFile';
463 $tabhandler['file']['edit'] = 'renderFileProperties';
464 $tabhandler['file']['tags'] = 'renderEntityTags';
465 $tabhandler['file']['editText'] = 'renderTextEditor';
466 $tabhandler['file']['replaceData'] = 'renderFileReuploader';
467 $tabhandler['file']['download'] = 'renderFileDownloader';
468 $ophandler['file']['edit']['updateFile'] = 'updateFile';
469 $ophandler['file']['tags']['saveTags'] = 'saveEntityTags';
470 $ophandler['file']['editText']['updateFileText'] = 'updateFileText';
471 $ophandler['file']['replaceData']['replaceFile'] = 'replaceFile';
472
473 $page['8021q']['title'] = '802.1Q';
474 $page['8021q']['parent'] = 'index';
475 $tab['8021q']['default'] = 'Status';
476 $tab['8021q']['vdlist'] = 'Manage domains';
477 $tab['8021q']['vstlist'] = 'Manage templates';
478 $tabhandler['8021q']['default'] = 'render8021QStatus';
479 $tabhandler['8021q']['vdlist'] = 'renderVLANDomainListEditor';
480 $tabhandler['8021q']['vstlist'] = 'renderVSTListEditor';
481 $ophandler['8021q']['vdlist']['add'] = 'createVLANDomain';
482 $ophandler['8021q']['vdlist']['del'] = 'destroyVLANDomain';
483 $ophandler['8021q']['vdlist']['upd'] = 'updateVLANDomain';
484 $ophandler['8021q']['vstlist']['add'] = 'addVLANSwitchTemplate';
485 $ophandler['8021q']['vstlist']['del'] = 'delVLANSwitchTemplate';
486 $ophandler['8021q']['vstlist']['upd'] = 'updVLANSwitchTemplate';
487
488 $page['vlandomain']['parent'] = '8021q';
489 $page['vlandomain']['bypass'] = 'vdom_id';
490 $page['vlandomain']['bypass_type'] = 'uint';
491 $tab['vlandomain']['default'] = 'View';
492 $tab['vlandomain']['vlanlist'] = 'VLAN list';
493 $tab['vlandomain']['8021qorder'] = '802.1Q orders';
494 $tabhandler['vlandomain']['default'] = 'renderVLANDomain';
495 $tabhandler['vlandomain']['8021qorder'] = 'render8021QOrderForm';
496 $tabhandler['vlandomain']['vlanlist'] = 'renderVLANDomainVLANList';
497 $ophandler['vlandomain']['8021qorder']['add'] = 'add8021QOrder';
498 $ophandler['vlandomain']['8021qorder']['del'] = 'del8021QOrder';
499 $ophandler['vlandomain']['vlanlist']['add'] = 'addVLANDescription';
500 $ophandler['vlandomain']['vlanlist']['del'] = 'delVLANDescription';
501 $ophandler['vlandomain']['vlanlist']['upd'] = 'updVLANDescription';
502
503 $page['vlan']['parent'] = 'vlandomain';
504 $page['vlan']['bypass'] = 'vlan_ck';
505 $page['vlan']['bypass_type'] = 'string';
506 $tab['vlan']['default'] = 'View';
507 $tab['vlan']['ipv4'] = 'IPv4';
508 $tabhandler['vlan']['default'] = 'renderVLANInfo';
509 $tabhandler['vlan']['ipv4'] = 'renderVLANIPv4';
510 $ophandler['vlan']['ipv4']['bind'] = 'bindVLANtoIPv4';
511 $ophandler['vlan']['ipv4']['unbind'] = 'unbindVLANfromIPv4';
512
513 $page['vst']['parent'] = '8021q';
514 $page['vst']['bypass'] = 'vst_id';
515 $page['vst']['bypass_type'] = 'uint';
516 $tab['vst']['default'] = 'View';
517 $tab['vst']['editvst'] = 'Properties';
518 $tab['vst']['editrules'] = 'Rules';
519 $tab['vst']['8021qorder'] = '802.1Q orders';
520 $tabhandler['vst']['default'] = 'renderVST';
521 $tabhandler['vst']['editvst'] = 'renderVSTEditor';
522 $tabhandler['vst']['editrules'] = 'renderVSTRulesEditor';
523 $tabhandler['vst']['8021qorder'] = 'render8021QOrderForm';
524 $ophandler['vst']['editvst']['upd'] = 'updVLANSwitchTemplate';
525 $ophandler['vst']['editrules']['add'] = 'addVSTRule';
526 $ophandler['vst']['editrules']['del'] = 'delVSTRule';
527 $ophandler['vst']['editrules']['upd'] = 'updVSTRule';
528 $ophandler['vst']['8021qorder']['add'] = 'add8021QOrder';
529 $ophandler['vst']['8021qorder']['del'] = 'del8021QOrder';
530
531 $page['dqueue']['parent'] = '8021q';
532 $page['dqueue']['bypass'] = 'dqcode';
533 $page['dqueue']['bypass_type'] = 'string';
534 $tab['dqueue']['default'] = 'View';
535 $tabhandler['dqueue']['default'] = 'renderDeployQueue';
536
537 ?>