X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/4867902ad83bc343db74316e54058d85627ec5f2..c6259030ac5c48b90597df0ccb6cb74bbb9c354c:/nieuws.php diff --git a/nieuws.php b/nieuws.php index b28f72b..cafc94c 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 = ($Page ?: 'nieuws') . '/????'; +shownews($articles, @$_GET['n'] ?: 5);