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

%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"; -} +ob_start(); +shownews($articles, @$Place['n'] ?: 5); +print getoutput();