diff options
author | MaZderMind | 2015-02-26 17:57:42 +0100 |
---|---|---|
committer | MaZderMind | 2015-02-26 17:57:42 +0100 |
commit | 6db2f0f4b9816ccd271332b89a05a9d0d753216b (patch) | |
tree | fd7ecf7cf16b33bdb75c45e747d12f9ecca43358 /index.php | |
parent | 9fb5b19bb0652b9c187c9b552c0a7ec4d6778222 (diff) |
shuffle things around on the way to a bootstrap-based configurable website
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 24 |
1 files changed, 10 insertions, 14 deletions
@@ -7,10 +7,10 @@ $route = rtrim($route, '/'); if($route == '') { - include('pages/rooms.php'); + include('pages/overview.php'); } -else if(preg_match('@^(saal1|saal2|saalg|saal6|sendezentrum)$@', $route, $m)) +else if(preg_match('@^([^/]+)$@', $route, $m)) { $_GET = array( 'room' => $m[1], @@ -20,7 +20,7 @@ else if(preg_match('@^(saal1|saal2|saalg|saal6|sendezentrum)$@', $route, $m)) include('pages/room.php'); } -else if(preg_match('@^(saal1|saal2|saalg|saal6)/translated$@', $route, $m)) +else if(preg_match('@^([^/]+)/translated$@', $route, $m)) { $_GET = array( 'room' => $m[1], @@ -30,7 +30,7 @@ else if(preg_match('@^(saal1|saal2|saalg|saal6)/translated$@', $route, $m)) include('pages/room.php'); } -else if(preg_match('@^(saal1|saal2|saalg|saal6|sendezentrum)/(hd|audio|slides)$@', $route, $m)) +else if(preg_match('@^([^/]+)/(hd|audio|slides)$@', $route, $m)) { $_GET = array( 'room' => $m[1], @@ -40,7 +40,7 @@ else if(preg_match('@^(saal1|saal2|saalg|saal6|sendezentrum)/(hd|audio|slides)$@ include('pages/room.php'); } -else if(preg_match('@^(saal1|saal2|saalg|saal6)/(hd|audio|slides)/translated$@', $route, $m)) +else if(preg_match('@^([^/]+)/(hd|audio|slides)/translated$@', $route, $m)) { $_GET = array( 'room' => $m[1], @@ -50,15 +50,6 @@ else if(preg_match('@^(saal1|saal2|saalg|saal6)/(hd|audio|slides)/translated$@', include('pages/room.php'); } -else if(preg_match('@^(lounge|ambient)$@', $route, $m)) -{ - $_GET = array( - 'room' => $m[1], - 'format' => 'audio', - ); - include('pages/party.php'); -} - else if(preg_match('@^about$@', $route, $m)) { include('pages/about.php'); @@ -74,6 +65,11 @@ 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( |