X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/f74276ad4a38479c8a5f7ccf065ab576cf2d192d..328e964708c7e9dc479a25f9358b2d03e9d7f66c:/nieuws.php diff --git a/nieuws.php b/nieuws.php index 157986c..84a6172 100644 --- a/nieuws.php +++ b/nieuws.php @@ -1,17 +1,33 @@ Nieuwsarchief\n\n"; +if ($year) { + ob_clean(); + print "

Nieuws $year

\n\n"; + + print '
'."\n\n"; + shownews("$Page/$year/??", 100); + print "
\n\n"; + + return 1; +} print '
'."\n\n"; -shownews($Page, 20); + +foreach (array_reverse(glob("$Page/2???")) as $page) { + $year = basename($page, '.html'); + printf('

%s

'."\n", $page, $year); + printtoc("$page/??"); +} + print "
\n\n"; if (!empty($User['admin'])) {