blob: c4ba146ac777ccd737dc021b358e13c0d2aef137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
$feedback = new Feedback();
if(!$feedback->isEnabled())
throw new NotFoundException('Feedback is disabled');
$info = $_POST;
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',
));
|