edit/page: editor notification of save results
[minimedit.git] / nieuws.php
index 157986cfea7eac64baa31bffc350df81d53c557c..6bf66160fa594a6c56d24da89b3eaf93a176adc0 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 = (ltrim($Args, '/') ?: 'nieuws') . '/????';
+shownews($articles, @$Place['n'] ?: 5);