2 include 'nieuws.inc.php';
4 @list ($year, $page) = explode('/', trim($Args, '/'));
6 if ($page and !is_numeric($page)) {
7 $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
8 print shownewsarticle($Args, FALSE, $edit);
15 if (is_numeric($year) and $year > 999) {
16 $match = "$Page/$year/";
17 if (is_numeric($page)) {
18 $title .= ' '.$monthname[intval($page)];
19 $match .= sprintf('%02d-', $page);
23 elseif ($year === '19') {
24 $match = "$Page/19??/";
25 $title .= " vóór 2000";
28 print "<h2>$title</h2>\n\n";
29 print '<div id="news">'."\n\n";
30 shownews(glob($match.'*.html'));
35 print '<div id="news">'."\n\n";
37 foreach (array_reverse(glob("$Page/2???")) as $page) {
38 $year = basename($page, '.html');
39 printf('<h3><a href="/%s">%s</a></h3>'."\n", $page, $year);
43 if ($pages = glob("$Page/19??/*.html")) {
44 printf('<h3><a href="/%s">%s</a></h3>'."\n", "$Page/19", 'Eerder');
50 if (!empty($User['admin'])) {
51 print '<script src="/nieuws/edit.js"></script>'."\n";