1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
|
<?php
// EasyGiant is a PHP framework for creating and managing dynamic content
//
// Copyright (C) 2009 - 2011 Antonio Gallo
// See COPYRIGHT.txt and LICENSE.txt.
//
// This file is part of EasyGiant
//
// EasyGiant is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// EasyGiant is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with EasyGiant. If not, see <http://www.gnu.org/licenses/>.
if (!defined('EG')) die('Direct access not allowed!');
class Route
{
//controller,action couples that can be reached by the browser
//set 'all' if you want that all the controller,action couples can be reached by the browser
public static $allowed = array(
'contact,index',
'credits,index',
'hardware,catalogue',
'help,index',
'home,index',
'image,captcha',
'issues,viewall',
'issues,view',
'my,home',
'my,password',
'my,email',
'my,profile',
'my,goodbye',
'notebooks,catalogue',
'notebooks,view',
'notebooks,history',
'notebooks,revision',
'notebooks,insert',
'notebooks,update',
'notebooks,differences',
'notebooks,climb',
'notebooks,talk',
'project,index',
'users,login',
'users,logout',
'users,add',
'users,confirm',
'users,change',
'users,forgot',
'users,notice',
'meet,user',
'meet,contributions',
'meet,hardware',
'meet,issues',
'meet,messages',
'meet,talk',
'meet,wiki',
'meet,wikitalk',
'wifi,catalogue',
'wifi,view',
'wifi,history',
'wifi,revision',
'wifi,insert',
'wifi,update',
'wifi,differences',
'wifi,climb',
'wifi,talk',
'videocards,catalogue',
'videocards,view',
'videocards,history',
'videocards,revision',
'videocards,insert',
'videocards,update',
'videocards,differences',
'videocards,climb',
'videocards,talk',
'printers,catalogue',
'printers,view',
'printers,history',
'printers,revision',
'printers,insert',
'printers,update',
'printers,differences',
'printers,climb',
'printers,talk',
'scanners,catalogue',
'scanners,view',
'scanners,history',
'scanners,revision',
'scanners,insert',
'scanners,update',
'scanners,differences',
'scanners,climb',
'scanners,talk',
'search,form',
'search,results',
'search,pciid',
'search,lspci',
'generic,del',
'generic,cleared',
'news,index',
'download,index',
'download,all',
'download,notebooks',
'download,wifi',
'download,videocards',
'download,printers',
'download,scanners',
'download,threegcards',
'download,soundcards',
'download,webcams',
'download,bluetooth',
'download,acquisitioncards',
'download,fingerprintreaders',
'download,ethernetcards',
'download,sdcardreaders',
'download,modems',
'download,raidadapters',
'history,hide',
'history,show',
'history,block',
'history,unblock',
'history,open',
'history,close',
'history,pageblock',
'history,pageunblock',
'history,viewall',
'history,pagehide',
'history,pageshow',
'history,devicehide',
'history,deviceshow',
'history,deviceapprove',
'history,deviceclear',
'history,issuehide',
'history,issueshow',
'threegcards,catalogue',
'threegcards,view',
'threegcards,history',
'threegcards,revision',
'threegcards,insert',
'threegcards,update',
'threegcards,differences',
'threegcards,climb',
'threegcards,talk',
'soundcards,catalogue',
'soundcards,view',
'soundcards,history',
'soundcards,revision',
'soundcards,insert',
'soundcards,update',
'soundcards,differences',
'soundcards,climb',
'soundcards,talk',
'webcams,catalogue',
'webcams,view',
'webcams,history',
'webcams,revision',
'webcams,insert',
'webcams,update',
'webcams,differences',
'webcams,climb',
'webcams,talk',
'rss,modifications',
'rss,notapproved',
'special,modifications',
'special,modactions',
'special,adminactions',
'special,usersactions',
'special,deleted',
'special,notapproved',
'wiki,insert',
'wiki,update',
'wiki,page',
'wiki,history',
'wiki,revision',
'wiki,differences',
'wiki,climb',
'wiki,talk',
'wiki,modifications',
'wiki,pages',
'wiki,deleted',
'wiki,blocked',
'bluetooth,catalogue',
'bluetooth,view',
'bluetooth,history',
'bluetooth,revision',
'bluetooth,insert',
'bluetooth,update',
'bluetooth,differences',
'bluetooth,climb',
'bluetooth,talk',
'client,licenseinfo',
'client,userinfo',
'acquisitioncards,catalogue',
'acquisitioncards,view',
'acquisitioncards,history',
'acquisitioncards,revision',
'acquisitioncards,insert',
'acquisitioncards,update',
'acquisitioncards,differences',
'acquisitioncards,climb',
'acquisitioncards,talk',
'fingerprintreaders,catalogue',
'fingerprintreaders,view',
'fingerprintreaders,history',
'fingerprintreaders,revision',
'fingerprintreaders,insert',
'fingerprintreaders,update',
'fingerprintreaders,differences',
'fingerprintreaders,climb',
'fingerprintreaders,talk',
'ethernetcards,catalogue',
'ethernetcards,view',
'ethernetcards,history',
'ethernetcards,revision',
'ethernetcards,insert',
'ethernetcards,update',
'ethernetcards,differences',
'ethernetcards,climb',
'ethernetcards,talk',
'sdcardreaders,catalogue',
'sdcardreaders,view',
'sdcardreaders,history',
'sdcardreaders,revision',
'sdcardreaders,insert',
'sdcardreaders,update',
'sdcardreaders,differences',
'sdcardreaders,climb',
'sdcardreaders,talk',
'modems,catalogue',
'modems,view',
'modems,history',
'modems,revision',
'modems,insert',
'modems,update',
'modems,differences',
'modems,climb',
'modems,talk',
'raidadapters,catalogue',
'raidadapters,view',
'raidadapters,history',
'raidadapters,revision',
'raidadapters,insert',
'raidadapters,update',
'raidadapters,differences',
'raidadapters,climb',
'raidadapters,talk',
);
//it can be 'yes' or 'no'
//set $rewrite to 'yes' if you want that EasyGiant rewrites the URLs according to what specified in $map
public static $rewrite = 'no';
//define the urls of your website
//you have to set $rewrite to 'yes'
public static $map = array();
}
|