login/members: user overview for admins
[minimedit.git] / nieuws.php
index 157986cfea7eac64baa31bffc350df81d53c557c..cafc94c6795a25ec866ee06c04fa689000c64e42 100644 (file)
@@ -1,19 +1,4 @@
 <?php
-include 'nieuws.inc.php';
-
-if ($Args) {
-       $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
-       print shownewsarticle($Args, FALSE, $edit);
-       return;
-}
-
-ob_clean();
-print "<h2>Nieuwsarchief</h2>\n\n";
-
-print '<div id="news">'."\n\n";
-shownews($Page, 20);
-print "</div>\n\n";
-
-if (!empty($User['admin'])) {
-       print '<script src="/nieuws/edit.js"></script>'."\n";
-}
+include_once 'nieuws.inc.php';
+$articles = ($Page ?: 'nieuws') . '/????';
+shownews($articles, @$_GET['n'] ?: 5);