aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2015-02-26 17:57:42 +0100
committerMaZderMind2015-02-26 17:57:42 +0100
commit6db2f0f4b9816ccd271332b89a05a9d0d753216b (patch)
treefd7ecf7cf16b33bdb75c45e747d12f9ecca43358 /index.php
parent9fb5b19bb0652b9c187c9b552c0a7ec4d6778222 (diff)
shuffle things around on the way to a bootstrap-based configurable website
Diffstat (limited to 'index.php')
-rw-r--r--index.php24
1 files changed, 10 insertions, 14 deletions
diff --git a/index.php b/index.php
index ed8faf5..7ac4c8e 100644
--- a/index.php
+++ b/index.php
@@ -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(