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

$feedback = new Feedback();
if(!$feedback->isEnabled())
	throw new NotFoundException('Feedback is disabled');

$info = $_POST;

if(!$feedback->validate($info)) {
	echo $tpl->render(array(
		'page' => 'feedback',
		'title' => 'Give Feedback',
		'room' => null,
	));
}
else
{
	$feedback->store($info);
	echo 1;
}