X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/41811556ca2ca3ca29191bee012c35e5f40a3995..251616969893b447852aad81a4e68be6853e202e:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 0f81de2..9e97267 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -2,21 +2,18 @@ $replyform = $Page == 'melding' && !empty($User); @list ($year, $page) = explode('/', trim($Args, '/')); -if ($User and $User->admin) { +if ($User and $User->admin('news')) { print ''."\n"; } if ($page and !is_numeric($page)) { - $edit = $User && $User->admin ? htmlspecialchars(@$_GET['edit']) : NULL; + $edit = $User && $User->admin('news') ? htmlspecialchars(@$_GET['edit']) : NULL; if ($edit) { $Article->title = $edit; } - if (isset($Article->raw)) { - $Place['description'] = $Article->teaser; - } $Place[1] = ' '.$Article->date.''; print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); - if ($User and $User->admin) { + if ($User and $User->admin('news')) { $taglist = []; foreach (glob("$Page/.tags/*") as $tagpath) { $tagname = pathinfo($tagpath, PATHINFO_BASENAME);