diff options
author | MaZderMind | 2014-10-01 16:42:22 +0200 |
---|---|---|
committer | MaZderMind | 2014-10-01 16:42:22 +0200 |
commit | 7d50beb6ddce3f99de2c015d00c9528ce52577a1 (patch) | |
tree | faddb797b54e9663debc578f833427149e8dace2 /player.php | |
parent | eb53b3a69db8395d2a40a1ec6618431d41909256 (diff) |
roomname & player
Diffstat (limited to '')
-rw-r--r-- | player.php | 53 |
1 files changed, 51 insertions, 2 deletions
@@ -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, +)); |