X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/2e10347a695b92658507b8422eb9694412737361..1f8560a20d5d1aa8886688bd7553b8a8fd704fff:/nieuws/index.php?ds=sidebyside diff --git a/nieuws/index.php b/nieuws/index.php index 678c3db..4da5a8b 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -12,55 +12,9 @@ if ($page and !is_numeric($page)) { if ($article->image) { $Place['image'] = "https://lijtweg.nl/".$article->thumb('600x'); } - if ($replyform) { - print '

Reacties

'."\n"; - $pagelink = $Page.$Args; - - if ($_POST) { - try { - @mkdir($pagelink); - $target = $pagelink.'/'.date('YmdHis').':'.$User['name'].'.txt'; - $written = file_put_contents($target, $_POST['reply']); - if ($written === FALSE) { - throw new Exception('Fout bij opslaan'); - } - $_POST['reply'] = NULL; - } - catch (Exception $e) { - print '

Antwoord niet opgeslagen.

'."\n\n"; - } - } - - print '\n\n"; + print placeholder_include('nieuws/replies'); } - return 1; } @@ -86,7 +40,10 @@ if ($year) { } $html = ob_get_clean(); -printf(''."\n", "/$Page/feed"); +printf(''."\n", + "/$Page/feed", + ' rel="alternate" title="Atom feed van nieuwsberichten" type="application/atom+xml"' +); print $html; print '
'."\n\n";