X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/f9b855c241ac7273399d1d405b63071b86b87faa..3080864c4cd697bd083f9fd0315f0ffababd593d:/nieuws/index.php
diff --git a/nieuws/index.php b/nieuws/index.php
index c90034f..8a613c2 100644
--- a/nieuws/index.php
+++ b/nieuws/index.php
@@ -6,7 +6,13 @@ $replyform = $Page == 'melding' && !empty($User);
if ($page and !is_numeric($page)) {
$edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
- print shownewsarticle($Page.$Args, FALSE, $edit);
+ $article = new ArchiveArticle("$Page$Args.html");
+ $Place[1] = ' '.$article->date.'';
+ print preg_replace('{(?<=
)(.*?)(?=
)}', ($edit ?: '\1').' [[1]]', ob_get_clean());
+ if ($article->image) {
+ $Place['image'] = "https://lijtweg.nl/".$article->thumb('600x');
+ printf(''."\n", $article->thumb('640x'));
+ }
if ($replyform) {
print 'Reacties
'."\n";
@@ -30,7 +36,7 @@ if ($page and !is_numeric($page)) {
print '';
foreach (glob("$pagelink/*.txt") as $reply) {
- preg_match('(\d{14}) : ([^:]*) [^/]* \.txt$>x', $reply, $replymeta);
+ preg_match('(\d{2,14}) : ([^:]*) [^/]* \.txt$>x', $reply, $replymeta);
if (!$replymeta) continue;
$replydate = str_split($replymeta[1], 2);
$replydate[1] = $replydate[0] . $replydate[1];
@@ -95,6 +101,20 @@ if ($pages = glob("$Page/19??/*.html")) {
print "\n\n";
+if ($replyform) {
+ print "Melding rapporteren
\n";
+ $_REQUEST['subject'] = 'melding';
+ require 'contact.php';
+?>
+
+'."\n";
}