X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/8dfcd9f98a316599cae7d94f56069c4ba79d2c93..10356b51f95050d0aec0cd1807d5ba1ec46d475a:/issue/index.php diff --git a/issue/index.php b/issue/index.php index 388db5d..cefe00f 100644 --- a/issue/index.php +++ b/issue/index.php @@ -5,44 +5,45 @@ require_once 'database.inc.php'; if ($id and ctype_digit($id)) { $Article->title = "Issue #$id"; - + $Args = "/$id"; # minimal reference $Issue = $Db->query( 'SELECT * FROM issues WHERE page = ? AND id = ?', [$Page, $id] )->fetch(); if (!$Issue) throw new Exception('Issuenummer niet gevonden'); + $replies = placeholder_include('reply'); # handle updates + $Article->title .= ': '.htmlspecialchars($Issue->subject); print "
%s%s %s
'."\n", - 'Geplaatst', - $author ? " door {$author->name}" : '', - showdate(preg_split('/\D/', $Issue->created)) - ); + print "%s aan %s
'."\n", - 'Toegewezen', htmlspecialchars($Issue->assign) - ); + print '%s%s %s
'."\n", - 'Opgelost', '', - showdate(preg_split('/\D/', $Issue->closed)) - ); + print '$html
"; + require_once 'upload.inc.php'; $query = $Db->set('issues', [ 'page' => $Page, 'subject' => $_POST['subject'], - 'body' => $html, + 'body' => messagehtml($_POST['body']), 'author' => $User->login, ]); if (!$query->rowCount()) { @@ -67,7 +68,7 @@ if ($id == 'feed') { ob_start(); print '