X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/10c5940d15b49f8656c3c1b384f80f4c619d3d82..10356b51f95050d0aec0cd1807d5ba1ec46d475a:/nieuws/index.php?ds=inline diff --git a/nieuws/index.php b/nieuws/index.php index 3a50265..c6234cf 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -2,20 +2,20 @@ $replyform = $Page == 'melding' && !empty($User); @list ($year, $page) = explode('/', trim($Args, '/')); -if ($User and $User->admin('news')) { +if ($User and $User->admin("edit $Page")) { print ''."\n"; } if ($page and !is_numeric($page)) { - $edit = $User && $User->admin('news') ? htmlspecialchars(@$_GET['edit']) : NULL; + $edit = $User && $User->admin("edit $Page$Args") ? htmlspecialchars(@$_GET['edit']) : NULL; if ($edit) { $Article->title = $edit; } if ($Article->dateparts) { $Place[1] = ' '.$Article->date.''; } - print preg_replace('{(?<=