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