2 include 'nieuws.inc.php';
4 $replyform = $Page == 'melding' && !empty($User);
5 @list ($year, $page) = explode('/', trim($Args, '/'));
7 if ($page and !is_numeric($page)) {
8 $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
9 $article = new ArchiveArticle("$Page$Args.html");
10 $Place[1] = ' <small class="date">'.$article->date.'</small>';
11 print preg_replace('{(?<=<h2>)(.*?)(?=</h2>)}', ($edit ?: '\1').' [[1]]', ob_get_clean());
12 if ($article->image) {
13 $Place['image'] = "https://lijtweg.nl/".$article->thumb('600x');
16 print placeholder_include('nieuws/replies');
25 if (is_numeric($year) and $year > 999) {
27 if (is_numeric($page)) {
28 $title .= ' '.$monthname[intval($page)];
29 $match .= sprintf('%02d-', $page);
33 elseif ($year === '19') {
35 $title .= " vóór 2000";
38 print "<h2>$title</h2>\n\n";
39 print placeholder_include('nieuws', [$match]);
43 $html = ob_get_clean();
44 printf('<div class="nav right"><a href="%s"%s>Feed</a></div>'."\n",
46 ' rel="alternate" title="Atom feed van nieuwsberichten" type="application/atom+xml"'
50 print '<div id="news">'."\n\n";
52 foreach (array_reverse(glob("$Page/2???")) as $page) {
53 $year = basename($page, '.html');
54 printf('<h3><a href="/%s">%s</a></h3>'."\n", $page, $year);
58 if ($pages = glob("$Page/19??/*.html")) {
59 printf('<h3><a href="/%s">%s</a></h3>'."\n", "$Page/19", 'Eerder');
66 print "<h3>Melding rapporteren</h3>\n";
67 $_REQUEST['subject'] = 'melding';
68 require 'contact.php';
72 <textarea name="body" cols=60 rows=4></textarea>
73 <input type="submit" value="Versturen" />
79 if (!empty($User['admin'])) {
80 print '<script src="/nieuws/edit.js"></script>'."\n";