aboutsummaryrefslogtreecommitdiff
path: root/h-source/Config/Route.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2010-10-17 13:29:57 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2010-10-17 13:29:57 +0000
commit232aa1924c8c0f10d87b210b46c9f061af5c844c (patch)
tree2351f2aaff7ad244f60358954e4711692fb8aadc /h-source/Config/Route.php
parenta17e3e0495bee3705d3c1e5ead2db1a8359e64e9 (diff)
added files
Diffstat (limited to 'h-source/Config/Route.php')
-rw-r--r--h-source/Config/Route.php106
1 files changed, 106 insertions, 0 deletions
diff --git a/h-source/Config/Route.php b/h-source/Config/Route.php
new file mode 100644
index 0000000..cc0dcaf
--- /dev/null
+++ b/h-source/Config/Route.php
@@ -0,0 +1,106 @@
+<?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',
+ 'users,meet',
+ 'users,contributions',
+ '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',
+ 'history,hide',
+ 'history,show',
+ 'history,viewall',
+ );
+
+ //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();
+
+} \ No newline at end of file