From d0a9d8b2b0d28dbef209c7cbcbfd56eaeac24d9b Mon Sep 17 00:00:00 2001 From: Andreas Hubel Date: Sun, 7 Jun 2020 21:36:10 +0200 Subject: hacky netcut integration --- index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'index.php') 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'); -- cgit v1.2.3