From 6ee36da3d945b9b412eddf97aba90c65b5664afa Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 3 Sep 2016 19:38:25 +0200 Subject: ignore get-parameters in url --- index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 38e5a0d..dd2c5d9 100644 --- a/index.php +++ b/index.php @@ -45,6 +45,9 @@ try { } else $route = ''; + + $pieces = parse_url($route); + $route = $pieces['path']; $route = rtrim($route, '/'); // generic template -- cgit v1.2.3 From 4e8fed0b773ad33e50017f498d40440592b7c4ef Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 3 Sep 2016 19:50:34 +0200 Subject: accept ?forceopen=yes to force a conference open --- index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index dd2c5d9..4deefcd 100644 --- a/index.php +++ b/index.php @@ -50,6 +50,8 @@ try { $route = $pieces['path']; $route = rtrim($route, '/'); + $GLOBALS['forceopen'] = isset($_GET['forceopen']); + // generic template $tpl = new PhpTemplate('template/page.phtml'); $tpl->set(array( -- cgit v1.2.3