X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e2e6d4c1c37aff2e6b50331cb31af9d59536624f..6b1d603f5f5265dcfaf005b9c45cc6aaac2f0bc6:/issue/index.php diff --git a/issue/index.php b/issue/index.php index f950861..b34da6d 100644 --- a/issue/index.php +++ b/issue/index.php @@ -3,7 +3,7 @@ global $User, $Db; require_once 'database.inc.php'; @list ($id, $title) = explode('/', ltrim($Args, '/')); -if ($id) { +if ($id and ctype_digit($id)) { $Article->title = "Issue #$id"; $Issue = $Db->query( @@ -13,36 +13,36 @@ if ($id) { $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()) { @@ -60,17 +60,22 @@ if (isset($_GET['open'])) { $sql .= ' ORDER BY closed IS NOT NULL, updated DESC'; $query = $Db->query($sql, [$Page]); +if ($id == 'feed') { + require 'issue/feed.inc.php'; +} + ob_start(); print '