diff options
Diffstat (limited to 'player.php')
-rw-r--r-- | player.php | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/player.php b/player.php deleted file mode 100644 index f41c0a2..0000000 --- a/player.php +++ /dev/null @@ -1,54 +0,0 @@ -<?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 'hd': - $type = 'video'; - $width = 1920; - $height = 1080; - break; - - case 'hq': - $type = 'video'; - $width = 1024; - $height = 576; - break; - - case 'lq': - $type = 'video'; - $width = 640; - $height = 360; - break; -} - -$tpl = new PhpTemplate('template/page.phtml'); -echo $tpl->render(array( - 'page' => 'player', - 'playertype' => $type, - - 'baseurl' => baseurl(), - 'title' => $GLOBALS['CONFIG']['ROOMS'][$room], - 'subtitle' => $GLOBALS['CONFIG']['FORMATS'][$format], - - 'room' => $room, - 'roomname' => $GLOBALS['CONFIG']['ROOMS'][$room], - - 'type' => $type, - 'width' => @$width, - 'height' => @$height, -)); |