aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/index.php b/index.php
index 673183c..cfe0340 100644
--- a/index.php
+++ b/index.php
@@ -132,6 +132,16 @@ try {
require('view/room.php');
}
+ else if(preg_match('@^embed/([^/]+)/(hd|sd|audio|slides)/(native|translated|stereo)$@', $route, $m))
+ {
+ $_GET = array(
+ 'room' => $m[1],
+ 'selection' => $m[2],
+ 'language' => $m[3],
+ );
+ require('view/embed.php');
+ }
+
else
{
throw new NotFoundException();