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";
37 elseif (file_exists("$Page/.tags/$year")) {
38 $match .= "/.tags/$year";
39 $title .= " met $year";
42 print "<h2>$title</h2>\n\n";
43 print placeholder_include('nieuws', [$match]);
47 if (!empty($User['admin'])) {
48 print '<script src="/nieuws/edit.js"></script>'."\n";