aboutsummaryrefslogtreecommitdiff
path: root/view/relive-player.php
blob: 6afc8d9e85c8e6240e204d0ee57c8e91b522ee37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

$relive = $conference->getRelive();
if(!$relive->isEnabled())
	throw new NotFoundException('Internal Relive is disabled');

$talk = $relive->getTalk(intval($_GET['id']));

if($talk['status'] == 'released' && empty($_GET['redirect'])) {
	header("HTTP/1.1 301 Moved Permanently"); 
	header('Location: ' . $talk['release_url']);
	return;
}

echo $tpl->render(array(
	'page' => 'relive-player',
	'title' => 'Relive: ' . $talk['title'],
	'talk' => $talk,

	'width' => 1920,
	'height' => 1080,
));