streaming-website/index.php

94 lines
1.6 KiB
PHP
Raw Normal View History

2014-10-01 08:33:00 +00:00
<?php
$route = @$_GET['route'];
$route = rtrim($route, '/');
2014-10-01 08:33:00 +00:00
if($route == '')
{
include('pages/rooms.php');
}
else if(preg_match('@^(saal1|saal2|saalg|saal6|sendezentrum)$@', $route, $m))
{
$_GET = array(
'room' => $m[1],
'format' => 'sd',
'language' => 'native',
);
include('pages/room.php');
}
else if(preg_match('@^(saal1|saal2|saalg|saal6)/translated$@', $route, $m))
{
$_GET = array(
'room' => $m[1],
'format' => 'sd',
'language' => 'translated',
);
include('pages/room.php');
}
else if(preg_match('@^(saal1|saal2|saalg|saal6|sendezentrum)/(hd|audio|slides)$@', $route, $m))
{
$_GET = array(
'room' => $m[1],
'format' => $m[2],
'language' => 'native',
);
include('pages/room.php');
}
else if(preg_match('@^(saal1|saal2|saalg|saal6)/(hd|audio|slides)/translated$@', $route, $m))
{
$_GET = array(
'room' => $m[1],
'format' => $m[2],
'language' => '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');
}
else if(preg_match('@^program.json$@', $route, $m))
{
include('pages/program-json.php');
}
else if(preg_match('@^feedback$@', $route, $m))
{
include('pages/feedback.php');
}
2014-12-27 19:56:20 +00:00
else if(preg_match('@^relive/([0-9]+)$@', $route, $m))
{
$_GET = array(
'id' => $m[1],
);
include('pages/relive-player.php');
}
2014-12-26 00:46:20 +00:00
else if(preg_match('@^relive$@', $route, $m))
{
include('pages/relive.php');
}
else
{
include('pages/404.php');
}