X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/72aa68cdc990dde3d67b9c8827cd794e4c447968..f8cfc76a8f02504af15ae89ac6f4896f072ff0a8:/widget/reply.php?ds=sidebyside diff --git a/widget/reply.php b/widget/reply.php index 685a611..010b1de 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -1,78 +1,11 @@ 'Toegewezen aan', - 'subject' => 'Onderwerp', -]; +require_once 'upload.inc.php'; if ($_POST) { - require_once 'upload.inc.php'; try { - $reply = []; - if (isset($_POST['reply']) and $body = $_POST['reply']) { - $reply['raw'] = $body; - $reply['message'] = messagehtml($body); - } - if ($_FILES and !empty($_FILES['image'])) { - $target = 'data/upload'; - if (!file_exists($target)) { - throw new Exception("er is geen uploadmap aanwezig op $target"); - } - $target .= '/' . $User->login; - if ($result = userupload($_FILES['image'], $target)) { - $reply['raw'] .= "/$result"; - if (preg_match('(^image/)', $_FILES['image']['type'])) { - $reply['message'] .= sprintf('
'; + printf( + '' + . "Geplaatste berichten zijn hier direct zichtbaar voor bewoners.\n" + . '' + . ''."\n", + 'announce', + '1', + ($_POST['announce'] ?? TRUE) ? ' checked' : '', + ' onclick="this.nextSibling.hidden = !this.checked"', + "De eerste regel wordt ook weergegeven op het scherm in de hal." + ); + print "
\n"; + } if (isset($Issue)) { printf( ''