X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/4867902ad83bc343db74316e54058d85627ec5f2..e6d26c20628195fde6f3edfb31e5db8d31551adf:/nieuws.php?ds=sidebyside
diff --git a/nieuws.php b/nieuws.php
index b28f72b..2b0151d 100644
--- a/nieuws.php
+++ b/nieuws.php
@@ -1,53 +1,22 @@
%s'."\n", $page, $year);
+ printtoc($page);
+ }
+ return;
}
- else {
- $title = "Nieuws vóór 2000";
- $match = "$Page/19??/??";
- }
-
- print "
$title
\n\n";
- print ''."\n\n";
- shownews($match, 100);
- print "
\n\n";
- return 1;
+ $articles .= '/????';
}
-if ($Args) {
+if (@$Place['view'] === 'toc') {
+ printtoc($articles);
return;
}
-
-print ''."\n\n";
-
-foreach (array_reverse(glob("$Page/2???")) as $page) {
- $year = basename($page, '.html');
- printf('
'."\n", $page, $year);
- printtoc("$page/??");
-}
-
-if ($pages = glob("$Page/19??/??/*.html")) {
- printf('
'."\n", "$Page/oud", 'Eerder');
- printtoc($pages);
-}
-
-print "
\n\n";
-
-if (!empty($User['admin'])) {
- print ''."\n";
-}
+ob_start();
+shownews($articles, @$Place['n'] ?: 5);
+print getoutput();