diff options
author | MaZderMind | 2015-03-02 07:35:29 +0100 |
---|---|---|
committer | MaZderMind | 2015-03-02 07:35:29 +0100 |
commit | 675fbf8809313379d85c5139499d6e2f8e8e3bb7 (patch) | |
tree | 5b8496536d61fded9dfebc6ec98d76e997f00fb9 /index.php | |
parent | 58cf88be643a114c56762b559073e2a62b483c63 (diff) |
Optional Pages
Diffstat (limited to 'index.php')
-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'); } |