diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/feedback-read.php | 5 | ||||
-rw-r--r-- | view/feedback.php | 4 | ||||
-rw-r--r-- | view/overview.php | 2 | ||||
-rw-r--r-- | view/relive.php | 2 | ||||
-rw-r--r-- | view/room.php | 4 | ||||
-rw-r--r-- | view/schedule-json.php | 2 | ||||
-rw-r--r-- | view/schedule.php | 2 |
7 files changed, 9 insertions, 12 deletions
diff --git a/view/feedback-read.php b/view/feedback-read.php index 4f04a02..3c29dbd 100644 --- a/view/feedback-read.php +++ b/view/feedback-read.php @@ -1,9 +1,6 @@ <?php -$feedback = new Feedback(); -if(!$feedback->isEnabled()) - throw new NotFoundException('Feedback is disabled'); - +$feedback = $conference->getFeedback(); if(!$feedback->isLoggedIn()) { $feedback->requestLogin(); diff --git a/view/feedback.php b/view/feedback.php index c4ba146..cff9c8e 100644 --- a/view/feedback.php +++ b/view/feedback.php @@ -1,11 +1,11 @@ <?php -$feedback = new Feedback(); -if(!$feedback->isEnabled()) +if(!$conference->hasFeedback()) throw new NotFoundException('Feedback is disabled'); $info = $_POST; +$feedback = $conference->getFeedback(); if($feedback->validate($info)) { $feedback->store($info); diff --git a/view/overview.php b/view/overview.php index 3b52e8f..93cf007 100644 --- a/view/overview.php +++ b/view/overview.php @@ -4,5 +4,5 @@ echo $tpl->render(array( 'page' => 'overview', 'title' => 'Live-Streams', - 'overview' => new Overview(), + 'overview' => $conference->getOverview(), )); diff --git a/view/relive.php b/view/relive.php index e59f80c..cc8d682 100644 --- a/view/relive.php +++ b/view/relive.php @@ -1,6 +1,6 @@ <?php -$relive = new Relive(); +$relive = $conference->getRelive(); if(!$relive->isEnabled()) throw new NotFoundException('Internal Relive is disabled'); diff --git a/view/room.php b/view/room.php index 505be95..d586248 100644 --- a/view/room.php +++ b/view/room.php @@ -1,6 +1,6 @@ <?php -$room = new Room($_GET['room']); +$room = $conference->getRoom($_GET['room']); $stream = $room->selectStream( $_GET['selection'], $_GET['language']); @@ -11,5 +11,5 @@ echo $tpl->render(array( 'room' => $room, 'stream' => $stream, - 'schedule' => new Schedule(), + 'schedule' => $conference->getSchedule(), )); diff --git a/view/schedule-json.php b/view/schedule-json.php index 9aea603..19346fd 100644 --- a/view/schedule-json.php +++ b/view/schedule-json.php @@ -1,6 +1,6 @@ <?php -$schedule = new Schedule(); +$schedule = $conference->getSchedule(); if(!$schedule->isEnabled()) throw new NotFoundException('Schedule is disabled'); diff --git a/view/schedule.php b/view/schedule.php index 4b2746d..3a3d6db 100644 --- a/view/schedule.php +++ b/view/schedule.php @@ -5,5 +5,5 @@ echo $tpl->render(array( 'title' => 'Schedule-Übersicht', 'refresh' => 15*60, - 'schedule' => new Schedule(), + 'schedule' => $conference->getSchedule(), )); |