diff options
-rw-r--r-- | index.php | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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'); } |