aboutsummaryrefslogtreecommitdiff
path: root/pages/relive-player.php
diff options
context:
space:
mode:
authorMaZderMind2014-12-27 20:56:20 +0100
committerMaZderMind2014-12-27 20:56:20 +0100
commitda15fd33e4b6d4bb4089c42591de3574d383f874 (patch)
treec3d11dac579fa87837fea90355ef0709c8a5f958 /pages/relive-player.php
parentab0a2cfbf2b4be1d87376052a02ef2e67557bf0b (diff)
relive gui
Diffstat (limited to 'pages/relive-player.php')
-rw-r--r--pages/relive-player.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/pages/relive-player.php b/pages/relive-player.php
new file mode 100644
index 0000000..fe697b3
--- /dev/null
+++ b/pages/relive-player.php
@@ -0,0 +1,24 @@
+<?php
+
+require_once('lib/bootstrap.php');
+
+$talks = file_get_contents('http://vod.c3voc.de/relive/index.json');
+$talks = json_decode($talks, true);
+
+$talkhit = null;
+foreach($talks as $talk) {
+ if($talk['id'] == $_GET['id'])
+ $talkhit = $talk;
+}
+
+if(!$talkhit) return;
+
+echo $tpl->render(array(
+ 'page' => 'relive-player',
+ 'title' => 'Relive!',
+ 'talk' => $talkhit,
+
+ 'width' => 1024,
+ 'height' => 576,
+ 'relive' => true,
+));