aboutsummaryrefslogtreecommitdiff
path: root/view/feedback.php
blob: cff9c8e1228dee72f040976a06454aa2a40a3d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

if(!$conference->hasFeedback())
	throw new NotFoundException('Feedback is disabled');

$info = $_POST;

$feedback = $conference->getFeedback();
if($feedback->validate($info))
{
	$feedback->store($info);

	header('Content-Type: application/json');
	echo json_encode(true);
	exit;
}

echo $tpl->render(array(
	'page' => 'feedback',
	'title' => 'Give Feedback',
));