aboutsummaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--view/embed.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/view/embed.php b/view/embed.php
new file mode 100644
index 0000000..b5bc49b
--- /dev/null
+++ b/view/embed.php
@@ -0,0 +1,17 @@
+<?php
+
+$room = new Room($_GET['room']);
+if(!$room->hasEmbed())
+ throw new NotFoundException('Embedding is not enabled in this room');
+
+$stream = $room->selectStream(
+ $_GET['selection'], $_GET['language']);
+
+echo $tpl->render(array(
+ 'page' => 'embed',
+ 'naked' => true, // no header/footer
+
+ 'title' => $stream->getDisplay(),
+ 'room' => $room,
+ 'stream' => $stream,
+));