X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/4867902ad83bc343db74316e54058d85627ec5f2..7abc48b38fa2c2227c5c6dd772bd159c75548f64:/nieuws.php?ds=sidebyside
diff --git a/nieuws.php b/nieuws.php
index b28f72b..6bf6616 100644
--- a/nieuws.php
+++ b/nieuws.php
@@ -1,53 +1,4 @@
$title\n\n";
- print '
'."\n\n";
- shownews($match, 100);
- print "
\n\n";
- return 1;
-}
-
-if ($Args) {
- 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";
-}
+include_once 'nieuws.inc.php';
+$articles = (ltrim($Args, '/') ?: 'nieuws') . '/????';
+shownews($articles, @$Place['n'] ?: 5);