aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.php13
-rw-r--r--pages/relive.php2
2 files changed, 8 insertions, 7 deletions
diff --git a/index.php b/index.php
index 0669c76..07bac59 100644
--- a/index.php
+++ b/index.php
@@ -3,7 +3,8 @@
$route = @$_GET['route'];
$route = rtrim($route, '/');
-
+require_once('config.php');
+require_once('lib/helper.php');
if($route == '')
{
@@ -18,7 +19,7 @@ else if(preg_match('@^about$@', $route, $m))
else if(preg_match('@^program.json$@', $route, $m))
{
if(!has('SCHEDULE'))
- return include('404.php');
+ return include('pages/404.php');
include('pages/program-json.php');
}
@@ -26,7 +27,7 @@ else if(preg_match('@^program.json$@', $route, $m))
else if(preg_match('@^feedback$@', $route, $m))
{
if(!has('FEEDBACK'))
- return include('404.php');
+ return include('pages/404.php');
include('pages/feedback.php');
}
@@ -34,7 +35,7 @@ else if(preg_match('@^feedback$@', $route, $m))
else if(preg_match('@^feedback/read$@', $route, $m))
{
if(!has('FEEDBACK'))
- return include('404.php');
+ return include('pages/404.php');
include('pages/feedback-read.php');
}
@@ -42,7 +43,7 @@ else if(preg_match('@^feedback/read$@', $route, $m))
else if(preg_match('@^relive/([0-9]+)$@', $route, $m))
{
if(!has('OVERVIEW.RELIVE_JSON'))
- return include('404.php');
+ return include('pages/404.php');
$_GET = array(
'id' => $m[1],
@@ -53,7 +54,7 @@ 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');
+ return include('pages/404.php');
include('pages/relive.php');
}
diff --git a/pages/relive.php b/pages/relive.php
index 4f495ca..362af34 100644
--- a/pages/relive.php
+++ b/pages/relive.php
@@ -2,7 +2,7 @@
require_once('lib/bootstrap.php');
-$talks = file_get_contents('http://vod.c3voc.de/relive/index.json');
+$talks = file_get_contents(get('OVERVIEW.RELIVE_JSON'));
$talks = utf8_decode($talks);
$talks = json_decode($talks, true);