mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 14:44:21 +00:00
21 lines
370 B
PHP
21 lines
370 B
PHP
<?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',
|
|
));
|