diff options
author | MaZderMind | 2015-03-01 16:16:18 +0100 |
---|---|---|
committer | MaZderMind | 2015-03-01 16:16:18 +0100 |
commit | 20dd29c322a24a2ef9e3f0e5c269a97acd5d2518 (patch) | |
tree | 59b9f8f02c96b7d9449d991b2fcb7064f010140c /index.php | |
parent | 9f5dad12d109fcd29eda813af9cd15e610dfcecf (diff) |
fix routing
Diffstat (limited to '')
-rw-r--r-- | index.php | 66 |
1 files changed, 33 insertions, 33 deletions
@@ -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'); |