aboutsummaryrefslogtreecommitdiff
path: root/h-source/Config/Route.php
blob: 3cde053d43adebe94b78e9b1096ee9b44d48bc59 (plain) (blame)
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
<?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',
		'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',
		'generic,del',
		'news,index',
		'download,index',
		'download,all',
		'download,notebooks',
		'download,wifi',
		'download,videocards',
		'download,printers',
		'download,scanners',
		'download,threegcards',
		'history,hide',
		'history,show',
		'history,viewall',
		'threegcards,catalogue',
		'threegcards,view',
		'threegcards,history',
		'threegcards,revision',
		'threegcards,insert',
		'threegcards,update',
		'threegcards,differences',
		'threegcards,climb',
		'threegcards,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();

}