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
|
<?php
// All EasyGiant code 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.
// See COPYRIGHT.txt and LICENSE.txt.
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',
'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',
'news,index',
'download,index',
'download,all',
'download,notebooks',
'download,wifi',
'download,videocards',
'download,printers',
'download,scanners',
'download,threegcards',
'download,soundcards',
'download,webcams',
'download,bluetooth',
'history,hide',
'history,show',
'history,block',
'history,unblock',
'history,open',
'history,close',
'history,pageblock',
'history,pageunblock',
'history,viewall',
'history,pagehide',
'history,pageshow',
'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',
'last,modifications',
'last,modactions',
'last,adminactions',
'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',
);
//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();
}
|