X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/328e964708c7e9dc479a25f9358b2d03e9d7f66c..2f8daf093a4587ca30630d2aaa7e0a373d4afb45:/nieuws.php diff --git a/nieuws.php b/nieuws.php index 84a6172..cafc94c 100644 --- a/nieuws.php +++ b/nieuws.php @@ -1,35 +1,4 @@ Nieuws $year\n\n"; - - print '
'."\n\n"; - shownews("$Page/$year/??", 100); - print "
\n\n"; - - return 1; -} - -print '
'."\n\n"; - -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'])) { - print ''."\n"; -} +include_once 'nieuws.inc.php'; +$articles = ($Page ?: 'nieuws') . '/????'; +shownews($articles, @$_GET['n'] ?: 5);