aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndreas Hubel2020-06-07 21:36:10 +0200
committerAndreas Hubel2020-06-07 21:36:10 +0200
commitd0a9d8b2b0d28dbef209c7cbcbfd56eaeac24d9b (patch)
tree9fa0fe42cda5b91479ce7219dd8d259652349efb /index.php
parent7d167175ef9878edfd488518e0bdd09493fe6b9b (diff)
hacky netcut integration
Diffstat (limited to '')
-rw-r--r--index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/index.php b/index.php
index 95dac53..569a4b9 100644
--- a/index.php
+++ b/index.php
@@ -70,6 +70,8 @@ try {
$route = rtrim($route, '/');
$GLOBALS['forceopen'] = isset($_GET['forceopen']);
+ $GLOBALS['netcut'] = preg_match('@^relive/([0-9]+)/cut$@', $route);
+
// generic template
$tpl = new PhpTemplate('template/page.phtml');
@@ -251,6 +253,15 @@ try {
require('view/relive-player.php');
}
+ // ROUTES AVAILABLE AFTER BUT NOT BEFORE THE CONFERENCE
+ else if(preg_match('@^relive/([0-9]+)/cut$@', $route, $m))
+ {
+ $_GET = array(
+ 'id' => $m[1],
+ );
+ require('view/relive-player-netcut.php');
+ }
+
else if($route == 'relive')
{
require('view/relive.php');