X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/4d7efe1c7eacff8a21bea95828ef0528a47f503e..6fb9cdf658e15a2f774e0ad61b41fa7d8a9fa88d:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index fbc6384..392a10f 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -2,18 +2,21 @@ $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; + $Article->meta['og:type'] = 'article'; + $edit = $User && $User->admin("edit $Page$Args") ? htmlspecialchars(@$_GET['edit']) : NULL; if ($edit) { $Article->title = $edit; } - $Place[1] = ' '.$Article->date.''; - print preg_replace('{(?<=