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');
24 if (is_numeric($year) and $year > 999) {
25 $match = "$Page/$year/";
26 if (is_numeric($page)) {
27 $title .= ' '.$monthname[intval($page)];
28 $match .= sprintf('%02d-', $page);
32 elseif ($year === '19') {
33 $match = "$Page/19??/";
34 $title .= " vóór 2000";
37 print "<h2>$title</h2>\n\n";
38 shownews(glob($match.'*.html'));
42 $html = ob_get_clean();
43 printf('<div class="nav right"><a href="%s"%s>Feed</a></div>'."\n",
45 ' rel="alternate" title="Atom feed van nieuwsberichten" type="application/atom+xml"'
49 print '<div id="news">'."\n\n";
51 foreach (array_reverse(glob("$Page/2???")) as $page) {
52 $year = basename($page, '.html');
53 printf('<h3><a href="/%s">%s</a></h3>'."\n", $page, $year);
57 if ($pages = glob("$Page/19??/*.html")) {
58 printf('<h3><a href="/%s">%s</a></h3>'."\n", "$Page/19", 'Eerder');
65 print "<h3>Melding rapporteren</h3>\n";
66 $_REQUEST['subject'] = 'melding';
67 require 'contact.php';
71 <textarea name="body" cols=60 rows=4></textarea>
72 <input type="submit" value="Versturen" />
78 if (!empty($User['admin'])) {
79 print '<script src="/nieuws/edit.js"></script>'."\n";