aboutsummaryrefslogtreecommitdiff
path: root/player.php
diff options
context:
space:
mode:
authorMaZderMind2014-10-01 16:42:22 +0200
committerMaZderMind2014-10-01 16:42:22 +0200
commit7d50beb6ddce3f99de2c015d00c9528ce52577a1 (patch)
treefaddb797b54e9663debc578f833427149e8dace2 /player.php
parenteb53b3a69db8395d2a40a1ec6618431d41909256 (diff)
roomname & player
Diffstat (limited to 'player.php')
-rw-r--r--player.php53
1 files changed, 51 insertions, 2 deletions
diff --git a/player.php b/player.php
index 2c78eab..6afdb5f 100644
--- a/player.php
+++ b/player.php
@@ -1,2 +1,51 @@
-player
-<? print_r($_GET) ?>
+<?php
+
+require_once('lib/PhpTemplate.php');
+require_once('lib/helper.php');
+require_once('config.php');
+
+$room = $_GET['room'];
+$language = $_GET['language'];
+$format = $_GET['format'];
+
+switch($format) {
+ case 'audio':
+ $type = 'audio';
+ break;
+
+ case 'slides':
+ $type = 'slides';
+ break;
+
+ case 'hq':
+ $type = 'video';
+ $width = 1920;
+ $height = 1080;
+ break;
+
+ case 'hd':
+ $type = 'video';
+ $width = 1024;
+ $height = 576;
+ break;
+
+ case 'ld':
+ $type = 'video';
+ $width = 640;
+ $height = 360;
+ break;
+}
+
+$tpl = new PhpTemplate('template/page.phtml');
+echo $tpl->render(array(
+ 'page' => $type,
+ 'baseurl' => baseurl(),
+ 'title' => 'Rooms',
+
+ 'room' => $room,
+ 'roomname' => $GLOBALS['CONFIG']['ROOMS'][$room],
+
+ 'type' => $type,
+ 'width' => @$width,
+ 'height' => @$height,
+));