From 7d50beb6ddce3f99de2c015d00c9528ce52577a1 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 1 Oct 2014 16:42:22 +0200 Subject: roomname & player --- config.php | 9 +++++++++ formats.php | 2 +- index.php | 9 +-------- player.php | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 62 insertions(+), 11 deletions(-) diff --git a/config.php b/config.php index 224ed57..efcae3a 100644 --- a/config.php +++ b/config.php @@ -3,4 +3,13 @@ // guessed automatically // $GLOBALS['CONFIG']['baseurl'] = 'http://foo.com/bar/'; +$GLOBALS['CONFIG']['ROOMS'] = array( + 'saal1' => 'Saal 1', + 'saal2' => 'Saal 2', + 'saalg' => 'Saal G', + 'saalz' => 'Saal Z', + 'lounge' => 'Lounge', + 'sendezentrum' => 'Sendezentrum', +); + ?> diff --git a/formats.php b/formats.php index 5d66f08..df2a4c8 100644 --- a/formats.php +++ b/formats.php @@ -11,7 +11,7 @@ echo $tpl->render(array( 'page' => 'formats', 'baseurl' => baseurl(), 'title' => 'Stream-Formats', - 'subtitle' => ucfirst($room), + 'subtitle' => $GLOBALS['CONFIG']['ROOMS'][$room], 'room' => $room, 'formats' => array( diff --git a/index.php b/index.php index a51165f..607c76e 100644 --- a/index.php +++ b/index.php @@ -10,12 +10,5 @@ echo $tpl->render(array( 'baseurl' => baseurl(), 'title' => 'Rooms', - 'rooms' => array( - 'saal1' => 'Saal 1', - 'saal2' => 'Saal 2', - 'saalg' => 'Saal G', - 'saalz' => 'Saal Z', - 'lounge' => 'Lounge', - 'sendezentrum' => 'Sendezentrum', - ), + 'rooms' => $GLOBALS['CONFIG']['ROOMS'], )); diff --git a/player.php b/player.php index 2c78eab..6afdb5f 100644 --- a/player.php +++ b/player.php @@ -1,2 +1,51 @@ -player - +render(array( + 'page' => $type, + 'baseurl' => baseurl(), + 'title' => 'Rooms', + + 'room' => $room, + 'roomname' => $GLOBALS['CONFIG']['ROOMS'][$room], + + 'type' => $type, + 'width' => @$width, + 'height' => @$height, +)); -- cgit v1.2.3