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