aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2015-03-02 07:35:29 +0100
committerMaZderMind2015-03-02 07:35:29 +0100
commit675fbf8809313379d85c5139499d6e2f8e8e3bb7 (patch)
tree5b8496536d61fded9dfebc6ec98d76e997f00fb9
parent58cf88be643a114c56762b559073e2a62b483c63 (diff)
Optional Pages
-rw-r--r--index.php15
1 files changed, 15 insertions, 0 deletions
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');
}