2 include 'nieuws.inc.php';
4 @list ($year, $month, $page) = explode('/', trim($Args, '/'));
7 $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
8 print shownewsarticle($Args, FALSE, $edit);
14 if (is_numeric($year)) {
15 $title = "Nieuws ".($month ? $monthname[$month].' ' : '').$year;
16 $match = implode('/', [
17 $Page, $year, $month ? sprintf('%02d', $month) : '??',
21 $title = "Nieuws vóór 2000";
22 $match = "$Page/19??/??";
25 print "<h2>$title</h2>\n\n";
26 print '<div id="news">'."\n\n";
27 shownews($match, 100);
36 print '<div id="news">'."\n\n";
38 foreach (array_reverse(glob("$Page/2???")) as $page) {
39 $year = basename($page, '.html');
40 printf('<h3><a href="/%s">%s</a></h3>'."\n", $page, $year);
44 if ($pages = glob("$Page/19??/??/*.html")) {
45 printf('<h3><a href="/%s">%s</a></h3>'."\n", "$Page/oud", 'Eerder');
51 if (!empty($User['admin'])) {
52 print '<script src="/nieuws/edit.js"></script>'."\n";