aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2014-10-19 13:04:35 +0200
committerMaZderMind2014-10-19 13:04:35 +0200
commite94c9bcce4dffc0bb1bbf64be9dac4ec4925b554 (patch)
treefe8986d676a0aa92e0c7a7ab9764fcb9ebe0caaa
parent96cc9bdbc4814df560767537477c3f5bb09ba588 (diff)
prototype party player
Diffstat (limited to '')
-rw-r--r--.htaccess2
-rw-r--r--party.php20
-rw-r--r--template/party.phtml7
3 files changed, 28 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 26818bd..75851ea 100644
--- a/.htaccess
+++ b/.htaccess
@@ -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
diff --git a/party.php b/party.php
new file mode 100644
index 0000000..045de26
--- /dev/null
+++ b/party.php
@@ -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],
+));
diff --git a/template/party.phtml b/template/party.phtml
new file mode 100644
index 0000000..1ec4b44
--- /dev/null
+++ b/template/party.phtml
@@ -0,0 +1,7 @@
+<div class="container-fluid rooms">
+ <h1><?=h($title)?></h1>
+
+ <div class="tab-content">
+ <? include("players/audio.phtml") ?>
+ </div>
+</div>