aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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');
}