aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2015-03-01 16:16:18 +0100
committerMaZderMind2015-03-01 16:16:18 +0100
commit20dd29c322a24a2ef9e3f0e5c269a97acd5d2518 (patch)
tree59b9f8f02c96b7d9449d991b2fcb7064f010140c /index.php
parent9f5dad12d109fcd29eda813af9cd15e610dfcecf (diff)
fix routing
Diffstat (limited to '')
-rw-r--r--index.php66
1 files changed, 33 insertions, 33 deletions
diff --git a/index.php b/index.php
index e3157f4..9b94eca 100644
--- a/index.php
+++ b/index.php
@@ -10,6 +10,39 @@ if($route == '')
include('pages/overview.php');
}
+else if(preg_match('@^about$@', $route, $m))
+{
+ include('pages/about.php');
+}
+
+else if(preg_match('@^program.json$@', $route, $m))
+{
+ include('pages/program-json.php');
+}
+
+else if(preg_match('@^feedback$@', $route, $m))
+{
+ include('pages/feedback.php');
+}
+
+else if(preg_match('@^feedback/read$@', $route, $m))
+{
+ include('pages/feedback-read.php');
+}
+
+else if(preg_match('@^relive/([0-9]+)$@', $route, $m))
+{
+ $_GET = array(
+ 'id' => $m[1],
+ );
+ include('pages/relive-player.php');
+}
+
+else if(preg_match('@^relive$@', $route, $m))
+{
+ include('pages/relive.php');
+}
+
else if(preg_match('@^([^/]+)$@', $route, $m))
{
$_GET = array(
@@ -50,39 +83,6 @@ else if(preg_match('@^([^/]+)/(sd|audio|slides)/translated$@', $route, $m))
include('pages/room.php');
}
-else if(preg_match('@^about$@', $route, $m))
-{
- include('pages/about.php');
-}
-
-else if(preg_match('@^program.json$@', $route, $m))
-{
- include('pages/program-json.php');
-}
-
-else if(preg_match('@^feedback$@', $route, $m))
-{
- include('pages/feedback.php');
-}
-
-else if(preg_match('@^feedback/read$@', $route, $m))
-{
- include('pages/feedback-read.php');
-}
-
-else if(preg_match('@^relive/([0-9]+)$@', $route, $m))
-{
- $_GET = array(
- 'id' => $m[1],
- );
- include('pages/relive-player.php');
-}
-
-else if(preg_match('@^relive$@', $route, $m))
-{
- include('pages/relive.php');
-}
-
else
{
include('pages/404.php');