From 675fbf8809313379d85c5139499d6e2f8e8e3bb7 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 2 Mar 2015 07:35:29 +0100 Subject: Optional Pages --- index.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 9b94eca..0669c76 100644 --- a/index.php +++ b/index.php @@ -17,21 +17,33 @@ else if(preg_match('@^about$@', $route, $m)) else if(preg_match('@^program.json$@', $route, $m)) { + if(!has('SCHEDULE')) + return include('404.php'); + include('pages/program-json.php'); } else if(preg_match('@^feedback$@', $route, $m)) { + if(!has('FEEDBACK')) + return include('404.php'); + include('pages/feedback.php'); } else if(preg_match('@^feedback/read$@', $route, $m)) { + if(!has('FEEDBACK')) + return include('404.php'); + include('pages/feedback-read.php'); } else if(preg_match('@^relive/([0-9]+)$@', $route, $m)) { + if(!has('OVERVIEW.RELIVE_JSON')) + return include('404.php'); + $_GET = array( 'id' => $m[1], ); @@ -40,6 +52,9 @@ else if(preg_match('@^relive/([0-9]+)$@', $route, $m)) else if(preg_match('@^relive$@', $route, $m)) { + if(!has('OVERVIEW.RELIVE_JSON')) + return include('404.php'); + include('pages/relive.php'); } -- cgit v1.2.3