X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/4867902ad83bc343db74316e54058d85627ec5f2..acc39fd2f0eaf516dbb534232ed5f631c269886b:/nieuws.php 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('

%s

'."\n", $page, $year); - printtoc("$page/??"); -} - -if ($pages = glob("$Page/19??/??/*.html")) { - printf('

%s

'."\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);