prototype party player

This commit is contained in:
MaZderMind 2014-10-19 13:04:35 +02:00
parent 96cc9bdbc4
commit e94c9bcce4
3 changed files with 28 additions and 1 deletions

View file

@ -21,7 +21,7 @@ RewriteRule ^(saal1|saal2|saalg|saal6)/(hd|lq|audio|slides)/?$ room.php?room=$1&
RewriteRule ^(saal1|saal2|saalg|saal6)/(hd|lq|audio|slides)/translated/?$ room.php?room=$1&format=$2&language=translated [L]
# /party/ -> player.php - simple audio-player for party
RewriteRule ^(lounge|ambient|sendezentrum)/?$ audio.php?room=$1&format=audio [L]
RewriteRule ^(lounge|ambient|sendezentrum)/?$ party.php?room=$1&format=audio [L]
# Show a known page in case of as miss
ErrorDocument 404 404.php

20
party.php Normal file
View file

@ -0,0 +1,20 @@
<?php
require_once('lib/PhpTemplate.php');
require_once('lib/helper.php');
require_once('config.php');
$room = $_GET['room'];
$tpl = new PhpTemplate('template/page.phtml');
echo $tpl->render(array(
'page' => 'party',
'baseurl' => baseurl(),
'title' => $GLOBALS['CONFIG']['ROOMS'][$room],
'rooms' => $GLOBALS['CONFIG']['ROOMS'],
'room' => $room,
'roomname' => $GLOBALS['CONFIG']['ROOMS'][$room],
));

7
template/party.phtml Normal file
View file

@ -0,0 +1,7 @@
<div class="container-fluid rooms">
<h1><?=h($title)?></h1>
<div class="tab-content">
<? include("players/audio.phtml") ?>
</div>
</div>