r3078 - addPortInterfaceCompat(): new function
[racktables] / inc / navigation.php
CommitLineData
b325120a 1<?php
e673ee24
DO
2/*
3*
4* This file implements generic navigation for RackTables.
5*
6*/
7
83dd1b15
DO
8$page = array();
9$tab = array();
83dd1b15
DO
10$trigger = array();
11$ophandler = array();
81bab70c 12$tabhandler = array();
2f48b72b 13$delayauth = array();
83dd1b15 14
eebf9145 15$page['index']['title'] = 'Main page';
e673ee24
DO
16$page['index']['handler'] = 'renderIndex';
17
eebf9145 18$page['rackspace']['title'] = 'Rackspace';
e673ee24
DO
19$page['rackspace']['parent'] = 'index';
20$tab['rackspace']['default'] = 'Browse';
345fd640 21$tab['rackspace']['edit'] = 'Manage rows';
e673ee24 22$tab['rackspace']['history'] = 'History';
8b6ffe9c 23$tabhandler['rackspace']['default'] = 'renderRackspace';
345fd640 24$tabhandler['rackspace']['edit'] = 'renderRackspaceRowEditor';
8b6ffe9c 25$tabhandler['rackspace']['history'] = 'renderRackspaceHistory';
345fd640
AD
26$ophandler['rackspace']['edit']['addRow'] = 'addRow';
27$ophandler['rackspace']['edit']['updateRow'] = 'updateRow';
9f14a7ef 28$ophandler['rackspace']['edit']['delete'] = 'deleteRow';
e673ee24 29
341fd895
DO
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';
3067f362 38$ophandler['depot']['addmore']['deleteObject'] = 'deleteObject';
e673ee24 39
e673ee24 40$page['row']['bypass'] = 'row_id';
8b6ffe9c 41$page['row']['bypass_type'] = 'uint';
e673ee24
DO
42$page['row']['parent'] = 'rackspace';
43$tab['row']['default'] = 'View';
44$tab['row']['newrack'] = 'Add new rack';
eb6ea26f 45$tab['row']['tagroller'] = 'Tag roller';
8b6ffe9c
DO
46$tabhandler['row']['default'] = 'renderRow';
47$tabhandler['row']['newrack'] = 'renderNewRackForm';
2f32cc32 48$tabhandler['row']['tagroller'] = 'renderTagRollerForRow';
eb6ea26f 49$ophandler['row']['tagroller']['rollTags'] = 'rollTags';
f19c75d6 50$ophandler['row']['newrack']['addRack'] = 'addRack';
e673ee24 51
e673ee24 52$page['rack']['bypass'] = 'rack_id';
8b6ffe9c 53$page['rack']['bypass_type'] = 'uint';
e673ee24
DO
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';
41bd8c87 59$tab['rack']['tags'] = 'Tags';
e1ae3fb4 60$tab['rack']['files'] = 'Files';
8b6ffe9c
DO
61$tabhandler['rack']['default'] = 'renderRackPage';
62$tabhandler['rack']['edit'] = 'renderEditRackForm';
63$tabhandler['rack']['design'] = 'renderRackDesign';
64$tabhandler['rack']['problems'] = 'renderRackProblems';
482c7f35
DO
65$tabhandler['rack']['tags'] = 'renderEntityTags';
66$tabhandler['rack']['files'] = 'renderFilesForEntity';
41bd8c87 67$trigger['rack']['tags'] = 'trigger_tags';
4fbb5a00
DY
68$ophandler['rack']['design']['updateRack'] = 'updateRackDesign';
69$ophandler['rack']['problems']['updateRack'] = 'updateRackProblems';
7056988c 70$ophandler['rack']['edit']['updateRack'] = 'updateRack';
c8187437 71$ophandler['rack']['edit']['deleteRack'] = 'deleteRack';
3355ca56 72$ophandler['rack']['tags']['saveTags'] = 'saveEntityTags';
e1ae3fb4 73$ophandler['rack']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
74$ophandler['rack']['files']['linkFile'] = 'linkFileToEntity';
75$ophandler['rack']['files']['unlinkFile'] = 'unlinkFile';
e673ee24 76
e673ee24 77$page['object']['bypass'] = 'object_id';
3bebaebd 78$page['object']['bypass_type'] = 'uint';
341fd895 79$page['object']['parent'] = 'depot';
e673ee24
DO
80$tab['object']['default'] = 'View';
81$tab['object']['edit'] = 'Properties';
82$tab['object']['rackspace'] = 'Rackspace';
83$tab['object']['ports'] = 'Ports';
72d8ced3
DO
84$tab['object']['ipv4'] = 'IPv4';
85$tab['object']['nat4'] = 'NATv4';
46f92ff7 86$tab['object']['livevlans'] = 'Live VLANs';
9c67f713 87$tab['object']['snmpportfinder'] = 'SNMP port finder';
0dfaea8e 88$tab['object']['editrspvs'] = 'RS pools';
a0527aef 89$tab['object']['lvsconfig'] = 'keepalived.conf';
118e4c38 90$tab['object']['autoports'] = 'AutoPorts';
2fb24351 91$tab['object']['tags'] = 'Tags';
e1ae3fb4 92$tab['object']['files'] = 'Files';
38e05b77 93$tab['object']['apcsnmp'] = 'APC SNMP sync';
e45a78d7
DO
94$tabhandler['object']['default'] = 'renderRackObject';
95$tabhandler['object']['edit'] = 'renderEditObjectForm';
96$tabhandler['object']['rackspace'] = 'renderRackSpaceForObject';
97$tabhandler['object']['ports'] = 'renderPortsForObject';
72d8ced3
DO
98$tabhandler['object']['ipv4'] = 'renderIPv4ForObject';
99$tabhandler['object']['nat4'] = 'renderNATv4ForObject';
46f92ff7 100$tabhandler['object']['livevlans'] = 'renderVLANMembership';
e45a78d7 101$tabhandler['object']['snmpportfinder'] = 'renderSNMPPortFinder';
3ee1252b 102$tabhandler['object']['lvsconfig'] = 'renderLVSConfig';
118e4c38 103$tabhandler['object']['autoports'] = 'renderAutoPortsForm';
482c7f35
DO
104$tabhandler['object']['tags'] = 'renderEntityTags';
105$tabhandler['object']['files'] = 'renderFilesForEntity';
0dfaea8e 106$tabhandler['object']['editrspvs'] = 'renderObjectSLB';
38e05b77 107$tabhandler['object']['apcsnmp'] = 'renderAPCSNMP';
c0a322d1 108$trigger['object']['rackspace'] = 'trigger_rackspace';
72d8ced3
DO
109$trigger['object']['ipv4'] = 'trigger_ipv4';
110$trigger['object']['nat4'] = 'trigger_natv4';
46f92ff7 111$trigger['object']['livevlans'] = 'trigger_livevlans';
9c67f713 112$trigger['object']['snmpportfinder'] = 'trigger_snmpportfinder';
a0527aef
DO
113$trigger['object']['editrspvs'] = 'trigger_isloadbalancer';
114$trigger['object']['lvsconfig'] = 'trigger_isloadbalancer';
118e4c38 115$trigger['object']['autoports'] = 'trigger_autoports';
91dbb8a3 116$trigger['object']['tags'] = 'trigger_tags';
4fbb5a00 117$ophandler['object']['rackspace']['updateObjectAllocation'] = 'updateObjectAllocation';
e673ee24
DO
118$ophandler['object']['ports']['addPort'] = 'addPortForObject';
119$ophandler['object']['ports']['delPort'] = 'delPortFromObject';
120$ophandler['object']['ports']['editPort'] = 'editPortForObject';
121$ophandler['object']['ports']['linkPort'] = 'linkPortForObject';
122$ophandler['object']['ports']['unlinkPort'] = 'unlinkPortForObject';
123$ophandler['object']['ports']['addMultiPorts'] = 'addMultiPorts';
124$ophandler['object']['ports']['useup'] = 'useupPort';
72d8ced3
DO
125$ophandler['object']['ipv4']['updIPv4Allocation'] = 'updIPv4Allocation';
126$ophandler['object']['ipv4']['addIPv4Allocation'] = 'addIPv4Allocation';
127$ophandler['object']['ipv4']['delIPv4Allocation'] = 'delIPv4Allocation';
22bb04da 128$ophandler['object']['edit']['clearSticker'] = 'clearSticker';
22bb04da 129$ophandler['object']['edit']['update'] = 'updateObject';
72d8ced3
DO
130$ophandler['object']['nat4']['addNATv4Rule'] = 'addPortForwarding';
131$ophandler['object']['nat4']['delNATv4Rule'] = 'delPortForwarding';
132$ophandler['object']['nat4']['updNATv4Rule'] = 'updPortForwarding';
46f92ff7 133$ophandler['object']['livevlans']['setPortVLAN'] = 'setPortVLAN';
f3f0161f 134$ophandler['object']['autoports']['generate'] = 'generateAutoPorts';
3355ca56 135$ophandler['object']['tags']['saveTags'] = 'saveEntityTags';
e1ae3fb4 136$ophandler['object']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
137$ophandler['object']['files']['linkFile'] = 'linkFileToEntity';
138$ophandler['object']['files']['unlinkFile'] = 'unlinkFile';
0dfaea8e
DO
139$ophandler['object']['editrspvs']['addLB'] = 'addLoadBalancer';
140$ophandler['object']['editrspvs']['delLB'] = 'deleteLoadBalancer';
141$ophandler['object']['editrspvs']['updLB'] = 'updateLoadBalancer';
2987fc1f 142$ophandler['object']['lvsconfig']['submitSLBConfig'] = 'submitSLBConfig';
7056988c 143$ophandler['object']['snmpportfinder']['querySNMPData'] = 'querySNMPData';
46f92ff7 144$delayauth['object']['livevlans']['setPortVLAN'] = TRUE;
e673ee24 145
eebf9145 146$page['ipv4space']['title'] = 'IPv4 space';
e673ee24
DO
147$page['ipv4space']['parent'] = 'index';
148$tab['ipv4space']['default'] = 'Browse';
0bcdc163 149$tab['ipv4space']['newrange'] = 'Manage';
04d619d0
DO
150$tabhandler['ipv4space']['default'] = 'renderIPv4Space';
151$tabhandler['ipv4space']['newrange'] = 'renderIPv4SpaceEditor';
42023f03
DO
152$ophandler['ipv4space']['newrange']['addIPv4Prefix'] = 'addIPv4Prefix';
153$ophandler['ipv4space']['newrange']['delIPv4Prefix'] = 'delIPv4Prefix';
e673ee24 154
e1ae3fb4
AD
155$page['ipv4net']['parent'] = 'ipv4space';
156$page['ipv4net']['bypass'] = 'id';
157$page['ipv4net']['bypass_type'] = 'uint';
e1ae3fb4
AD
158$tab['ipv4net']['default'] = 'Browse';
159$tab['ipv4net']['properties'] = 'Properties';
160$tab['ipv4net']['liveptr'] = 'Live PTR';
161$tab['ipv4net']['tags'] = 'Tags';
162$tab['ipv4net']['files'] = 'Files';
163$tabhandler['ipv4net']['default'] = 'renderIPv4Network';
164$tabhandler['ipv4net']['properties'] = 'renderIPv4NetworkProperties';
165$tabhandler['ipv4net']['liveptr'] = 'renderLivePTR';
482c7f35
DO
166$tabhandler['ipv4net']['tags'] = 'renderEntityTags';
167$tabhandler['ipv4net']['files'] = 'renderFilesForEntity';
e1ae3fb4
AD
168$trigger['ipv4net']['tags'] = 'trigger_tags';
169$ophandler['ipv4net']['properties']['editRange'] = 'updIPv4Prefix';
170$ophandler['ipv4net']['liveptr']['importPTRData'] = 'importPTRData';
171$ophandler['ipv4net']['tags']['saveTags'] = 'saveEntityTags';
172$ophandler['ipv4net']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
173$ophandler['ipv4net']['files']['linkFile'] = 'linkFileToEntity';
174$ophandler['ipv4net']['files']['unlinkFile'] = 'unlinkFile';
e673ee24 175
e1ae3fb4 176$page['ipaddress']['parent'] = 'ipv4net';
e673ee24 177$page['ipaddress']['bypass'] = 'ip';
1fbc9fd6 178$page['ipaddress']['bypass_type'] = 'inet4';
e673ee24
DO
179$tab['ipaddress']['default'] = 'Browse';
180$tab['ipaddress']['properties'] = 'Properties';
181$tab['ipaddress']['assignment'] = 'Allocation';
2d318652
DO
182$tabhandler['ipaddress']['default'] = 'renderIPv4Address';
183$tabhandler['ipaddress']['properties'] = 'renderIPv4AddressProperties';
184$tabhandler['ipaddress']['assignment'] = 'renderIPv4AddressAllocations';
e673ee24 185$ophandler['ipaddress']['properties']['editAddress'] = 'editAddress';
b4c1ef87
DO
186$ophandler['ipaddress']['assignment']['delIPv4Allocation'] = 'delIPv4Allocation';
187$ophandler['ipaddress']['assignment']['updIPv4Allocation'] = 'updIPv4Allocation';
188$ophandler['ipaddress']['assignment']['addIPv4Allocation'] = 'addIPv4Allocation';
e673ee24 189
f973f491
DO
190$page['ipv4slb']['title'] = 'IPv4 SLB';
191$page['ipv4slb']['parent'] = 'index';
192$page['ipv4slb']['handler'] = 'renderIPv4SLB';
193
a239e016
DO
194$page['ipv4vslist']['title'] = 'Virtual services';
195$page['ipv4vslist']['parent'] = 'ipv4slb';
196$tab['ipv4vslist']['default'] = 'View';
197$tab['ipv4vslist']['edit'] = 'Edit';
198$tabhandler['ipv4vslist']['default'] = 'renderVSList';
199$tabhandler['ipv4vslist']['edit'] = 'renderVSListEditForm';
200$ophandler['ipv4vslist']['edit']['add'] = 'addVService';
201$ophandler['ipv4vslist']['edit']['del'] = 'deleteVService';
b3c50e6c 202
2bb798a3 203$page['ipv4vs']['parent'] = 'ipv4vslist';
49fb2686 204$page['ipv4vs']['bypass'] = 'vs_id';
2bb798a3 205$page['ipv4vs']['bypass_type'] = 'uint';
2bb798a3 206$tab['ipv4vs']['default'] = 'View';
c9890988 207$tab['ipv4vs']['edit'] = 'Edit';
49fb2686 208$tab['ipv4vs']['editlblist'] = 'Load balancers';
2bb798a3 209$tab['ipv4vs']['tags'] = 'Tags';
e1ae3fb4 210$tab['ipv4vs']['files'] = 'Files';
2bb798a3
DO
211$tabhandler['ipv4vs']['default'] = 'renderVirtualService';
212$tabhandler['ipv4vs']['edit'] = 'renderEditVService';
49fb2686 213$tabhandler['ipv4vs']['editlblist'] = 'renderVServiceLBForm';
482c7f35
DO
214$tabhandler['ipv4vs']['tags'] = 'renderEntityTags';
215$tabhandler['ipv4vs']['files'] = 'renderFilesForEntity';
e1ae3fb4 216$trigger['ipv4vs']['tags'] = 'trigger_tags';
e02e1941 217$ophandler['ipv4vs']['edit']['updIPv4VS'] = 'updateVService';
49fb2686
DO
218$ophandler['ipv4vs']['editlblist']['addLB'] = 'addLoadBalancer';
219$ophandler['ipv4vs']['editlblist']['delLB'] = 'deleteLoadBalancer';
220$ophandler['ipv4vs']['editlblist']['updLB'] = 'updateLoadBalancer';
e1ae3fb4
AD
221$ophandler['ipv4vs']['tags']['saveTags'] = 'saveEntityTags';
222$ophandler['ipv4vs']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
223$ophandler['ipv4vs']['files']['linkFile'] = 'linkFileToEntity';
224$ophandler['ipv4vs']['files']['unlinkFile'] = 'unlinkFile';
c9b4588f 225
ee437dab
DO
226$page['ipv4rsplist']['title'] = 'RS pools';
227$page['ipv4rsplist']['parent'] = 'ipv4slb';
228$tab['ipv4rsplist']['default'] = 'View';
229$tab['ipv4rsplist']['edit'] = 'Edit';
230$tabhandler['ipv4rsplist']['default'] = 'renderRSPoolList';
231$tabhandler['ipv4rsplist']['edit'] = 'editRSPools';
232$ophandler['ipv4rsplist']['edit']['add'] = 'addRSPool';
233$ophandler['ipv4rsplist']['edit']['del'] = 'deleteRSPool';
e1ae3fb4 234
e1ae3fb4
AD
235$page['ipv4rspool']['parent'] = 'ipv4rsplist';
236$page['ipv4rspool']['bypass'] = 'pool_id';
237$page['ipv4rspool']['bypass_type'] = 'uint';
e1ae3fb4
AD
238$tab['ipv4rspool']['default'] = 'View';
239$tab['ipv4rspool']['edit'] = 'Edit';
4a04bcb1 240$tab['ipv4rspool']['editlblist'] = 'Load balancers';
e1ae3fb4
AD
241$tab['ipv4rspool']['editrslist'] = 'RS list';
242$tab['ipv4rspool']['rsinservice'] = 'RS in service';
243$tab['ipv4rspool']['tags'] = 'Tags';
244$tab['ipv4rspool']['files'] = 'Files';
245$trigger['ipv4rspool']['rsinservice'] = 'trigger_poolrscount';
246$trigger['ipv4rspool']['tags'] = 'trigger_tags';
247$tabhandler['ipv4rspool']['default'] = 'renderRSPool';
248$tabhandler['ipv4rspool']['edit'] = 'renderEditRSPool';
249$tabhandler['ipv4rspool']['editrslist'] = 'renderRSPoolServerForm';
250$tabhandler['ipv4rspool']['editlblist'] = 'renderRSPoolLBForm';
251$tabhandler['ipv4rspool']['rsinservice'] = 'renderRSPoolRSInServiceForm';
482c7f35
DO
252$tabhandler['ipv4rspool']['tags'] = 'renderEntityTags';
253$tabhandler['ipv4rspool']['files'] = 'renderFilesForEntity';
e1ae3fb4
AD
254$ophandler['ipv4rspool']['edit']['updIPv4RSP'] = 'updateRSPool';
255$ophandler['ipv4rspool']['editrslist']['addRS'] = 'addRealServer';
256$ophandler['ipv4rspool']['editrslist']['delRS'] = 'deleteRealServer';
257$ophandler['ipv4rspool']['editrslist']['updRS'] = 'updateRealServer';
258$ophandler['ipv4rspool']['editrslist']['addMany'] = 'addRealServers';
259$ophandler['ipv4rspool']['editlblist']['addLB'] = 'addLoadBalancer';
260$ophandler['ipv4rspool']['editlblist']['delLB'] = 'deleteLoadBalancer';
261$ophandler['ipv4rspool']['editlblist']['updLB'] = 'updateLoadBalancer';
262$ophandler['ipv4rspool']['rsinservice']['upd'] = 'updateRSInService';
263$ophandler['ipv4rspool']['tags']['saveTags'] = 'saveEntityTags';
264$ophandler['ipv4rspool']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
265$ophandler['ipv4rspool']['files']['linkFile'] = 'linkFileToEntity';
266$ophandler['ipv4rspool']['files']['unlinkFile'] = 'unlinkFile';
71b8bda1 267
8253d9f0 268$page['rservers']['title'] = 'Real servers';
f973f491 269$page['rservers']['parent'] = 'ipv4slb';
8253d9f0 270$page['rservers']['handler'] = 'renderRealServerList';
b3c50e6c 271
4b0932b6 272$page['lbs']['title'] = 'Load balancers';
f973f491 273$page['lbs']['parent'] = 'ipv4slb';
4b0932b6 274$page['lbs']['handler'] = 'renderLBList';
b3c50e6c 275
3aeb15f3 276$page['search']['handler'] = 'renderSearchResults';
e673ee24
DO
277$page['search']['parent'] = 'index';
278$page['search']['bypass'] = 'q';
279
eebf9145 280$page['config']['title'] = 'Configuration';
3aeb15f3 281$page['config']['handler'] = 'renderConfigMainpage';
e673ee24
DO
282$page['config']['parent'] = 'index';
283
9133d2c5 284$page['userlist']['title'] = 'Local users';
82627005
DO
285$page['userlist']['parent'] = 'config';
286$tab['userlist']['default'] = 'View';
287$tab['userlist']['edit'] = 'Edit';
288$tabhandler['userlist']['default'] = 'renderUserList';
289$tabhandler['userlist']['edit'] = 'renderUserListEditor';
290$ophandler['userlist']['edit']['updateUser'] = 'updateUser';
291$ophandler['userlist']['edit']['createUser'] = 'createUser';
82627005 292
82627005
DO
293$page['user']['parent'] = 'userlist';
294$page['user']['bypass'] = 'user_id';
295$page['user']['bypass_type'] = 'uint';
82627005 296$tab['user']['default'] = 'View';
82627005 297$tab['user']['tags'] = 'Tags';
e1ae3fb4 298$tab['user']['files'] = 'Files';
82627005 299$tabhandler['user']['default'] = 'renderUser';
482c7f35
DO
300$tabhandler['user']['tags'] = 'renderEntityTags';
301$tabhandler['user']['files'] = 'renderFilesForEntity';
3355ca56 302$ophandler['user']['tags']['saveTags'] = 'saveEntityTags';
e1ae3fb4 303$ophandler['user']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
304$ophandler['user']['files']['linkFile'] = 'linkFileToEntity';
305$ophandler['user']['files']['unlinkFile'] = 'unlinkFile';
e673ee24 306
eebf9145 307$page['perms']['title'] = 'Permissions';
e673ee24
DO
308$page['perms']['parent'] = 'config';
309$tab['perms']['default'] = 'View';
82627005
DO
310$tab['perms']['edit'] = 'Edit';
311$tabhandler['perms']['default'] = 'renderRackCodeViewer';
312$tabhandler['perms']['edit'] = 'renderRackCodeEditor';
313$ophandler['perms']['edit']['saveRackCode'] = 'saveRackCode';
e673ee24 314
2dfa1b73 315$page['portmap']['title'] = 'Port compatibility';
e673ee24
DO
316$page['portmap']['parent'] = 'config';
317$tab['portmap']['default'] = 'View';
318$tab['portmap']['edit'] = 'Change';
17c32f4c
DO
319$tabhandler['portmap']['default'] = 'renderPortMapViewer';
320$tabhandler['portmap']['edit'] = 'renderPortMapEditor';
e673ee24
DO
321$ophandler['portmap']['edit']['save'] = 'savePortMap';
322
2dfa1b73
DO
323$page['portifcompat']['title'] = 'Enabled port types';
324$page['portifcompat']['parent'] = 'config';
325$tab['portifcompat']['default'] = 'View';
326$tab['portifcompat']['edit'] = 'Edit';
327$tabhandler['portifcompat']['default'] = 'renderPortIFCompat';
328$tabhandler['portifcompat']['edit'] = 'renderPortIFCompatEditor';
329$ophandler['portifcompat']['edit']['add'] = 'addPortInterfaceCompat';
330$ophandler['portifcompat']['edit']['del'] = 'delPortInterfaceCompat';
331
eebf9145 332$page['attrs']['title'] = 'Attributes';
e673ee24
DO
333$page['attrs']['parent'] = 'config';
334$tab['attrs']['default'] = 'View';
335$tab['attrs']['editattrs'] = 'Edit attributes';
336$tab['attrs']['editmap'] = 'Edit map';
8b6ffe9c
DO
337$tabhandler['attrs']['default'] = 'renderAttributes';
338$tabhandler['attrs']['editattrs'] = 'renderEditAttributesForm';
339$tabhandler['attrs']['editmap'] = 'renderEditAttrMapForm';
e673ee24
DO
340$ophandler['attrs']['editattrs']['add'] = 'createAttribute';
341$ophandler['attrs']['editattrs']['upd'] = 'changeAttribute';
342$ophandler['attrs']['editattrs']['del'] = 'deleteAttribute';
343$ophandler['attrs']['editmap']['add'] = 'supplementAttrMap';
344$ophandler['attrs']['editmap']['del'] = 'reduceAttrMap';
345
eebf9145 346$page['dict']['title'] = 'Dictionary';
e673ee24
DO
347$page['dict']['parent'] = 'config';
348$tab['dict']['default'] = 'View';
e673ee24 349$tab['dict']['chapters'] = 'Manage chapters';
8b6ffe9c 350$tabhandler['dict']['default'] = 'renderDictionary';
8b6ffe9c 351$tabhandler['dict']['chapters'] = 'renderChaptersEditor';
e673ee24
DO
352$ophandler['dict']['chapters']['del'] = 'delChapter';
353$ophandler['dict']['chapters']['upd'] = 'updateChapter';
354$ophandler['dict']['chapters']['add'] = 'addChapter';
355
4034ab9e
DO
356$page['chapter']['parent'] = 'dict';
357$page['chapter']['bypass'] = 'chapter_no';
358$page['chapter']['bypass_type'] = 'uint';
359$tab['chapter']['default'] = 'View';
360$tab['chapter']['edit'] = 'Edit';
361$tabhandler['chapter']['default'] = 'renderChapter';
362$tabhandler['chapter']['edit'] = 'renderChapterEditor';
363$ophandler['chapter']['edit']['del'] = 'reduceDictionary';
364$ophandler['chapter']['edit']['upd'] = 'updateDictionary';
365$ophandler['chapter']['edit']['add'] = 'supplementDictionary';
4034ab9e 366
eebf9145 367$page['ui']['title'] = 'User interface';
e673ee24 368$page['ui']['parent'] = 'config';
0a1b1268 369$tab['ui']['default'] = 'View';
4fe32e78 370$tab['ui']['edit'] = 'Change';
b07f617c 371$tab['ui']['reset'] = 'Reset';
8b6ffe9c
DO
372$tabhandler['ui']['default'] = 'renderUIConfig';
373$tabhandler['ui']['edit'] = 'renderUIConfigEditForm';
374$tabhandler['ui']['reset'] = 'renderUIResetForm';
4fe32e78 375$ophandler['ui']['edit']['upd'] = 'updateUI';
b07f617c 376$ophandler['ui']['reset']['go'] = 'resetUIConfig';
e673ee24 377
931bf334
DO
378$page['tagtree']['title'] = 'Tag tree';
379$page['tagtree']['parent'] = 'config';
380$tab['tagtree']['default'] = 'View';
49fb1027 381$tab['tagtree']['edit'] = 'Edit';
931bf334
DO
382$tabhandler['tagtree']['default'] = 'renderTagTree';
383$tabhandler['tagtree']['edit'] = 'renderTagTreeEditor';
fe7044ad
DO
384$ophandler['tagtree']['edit']['destroyTag'] = 'destroyTag';
385$ophandler['tagtree']['edit']['createTag'] = 'createTag';
386$ophandler['tagtree']['edit']['updateTag'] = 'updateTag';
931bf334 387
9457ca59
DO
388$page['myaccount']['title'] = 'My account';
389$page['myaccount']['parent'] = 'config';
390$tab['myaccount']['default'] = 'Info';
0ac7e4b3
DO
391$tab['myaccount']['mypassword'] = 'Password change';
392$tab['myaccount']['myrealname'] = '[Real name change]';
393$trigger['myaccount']['mypassword'] = 'trigger_passwdchange';
9457ca59
DO
394$tabhandler['myaccount']['default'] = 'renderMyAccount';
395$tabhandler['myaccount']['mypassword'] = 'renderMyPasswordEditor';
0ac7e4b3 396$tabhandler['myaccount']['myrealname'] = 'dragon';
9457ca59
DO
397$ophandler['myaccount']['mypassword']['changeMyPassword'] = 'changeMyPassword';
398
eebf9145 399$page['reports']['title'] = 'Reports';
e673ee24 400$page['reports']['parent'] = 'index';
e5c4506d 401$tab['reports']['default'] = 'System';
88d513cd 402$tab['reports']['rackcode'] = 'RackCode';
09620506 403$tab['reports']['ipv4'] = 'IPv4';
09f6104a 404$tab['reports']['local'] = getConfigVar ('enterprise');
e5c4506d
DO
405$trigger['reports']['local'] = 'trigger_localreports';
406$tabhandler['reports']['default'] = 'renderSystemReports';
88d513cd 407$tabhandler['reports']['rackcode'] = 'renderRackCodeReports';
09620506 408$tabhandler['reports']['ipv4'] = 'renderIPv4Reports';
e5c4506d 409$tabhandler['reports']['local'] = 'renderLocalReports';
e673ee24 410
e1ae3fb4
AD
411$page['files']['title'] = 'Files';
412$page['files']['parent'] = 'index';
8bc5d1e4
DO
413$tab['files']['default'] = 'Browse';
414$tab['files']['manage'] = 'Manage';
415$tabhandler['files']['default'] = 'renderFileBrowser';
416$tabhandler['files']['manage'] = 'renderFileManager';
417$ophandler['files']['manage']['addFile'] = 'addFileWithoutLink';
418$ophandler['files']['manage']['unlinkFile'] = 'unlinkFile';
71118db6 419$ophandler['files']['manage']['deleteFile'] = 'deleteFile';
e1ae3fb4 420
e1ae3fb4
AD
421$page['file']['bypass'] = 'file_id';
422$page['file']['bypass_type'] = 'uint';
f4d879a9 423$page['file']['parent'] = 'files';
e1ae3fb4 424$tab['file']['default'] = 'View';
6ee41bd4 425$tab['file']['edit'] = 'Properties';
e1ae3fb4 426$tab['file']['tags'] = 'Tags';
8628ae44 427$tab['file']['editText'] = 'Edit text';
db55cf54 428$tab['file']['replaceData'] = 'Upload replacement';
0df8c52b 429$tab['file']['download'] = 'Download';
e1ae3fb4 430$trigger['file']['tags'] = 'trigger_tags';
8628ae44 431$trigger['file']['editText'] = 'trigger_file_editText';
e1ae3fb4 432$tabhandler['file']['default'] = 'renderFile';
6ee41bd4
DO
433$tabhandler['file']['edit'] = 'renderFileProperties';
434$tabhandler['file']['tags'] = 'renderEntityTags';
8628ae44 435$tabhandler['file']['editText'] = 'renderTextEditor';
db55cf54 436$tabhandler['file']['replaceData'] = 'renderFileReuploader';
0df8c52b 437$tabhandler['file']['download'] = 'renderFileDownloader';
6ee41bd4 438$ophandler['file']['edit']['updateFile'] = 'updateFile';
e1ae3fb4 439$ophandler['file']['tags']['saveTags'] = 'saveEntityTags';
8628ae44 440$ophandler['file']['editText']['updateFileText'] = 'updateFileText';
db55cf54 441$ophandler['file']['replaceData']['replaceFile'] = 'replaceFile';
e1ae3fb4 442
e673ee24 443?>