X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/251616969893b447852aad81a4e68be6853e202e..088e48c44ae79498f459e79dcf52ff02b2467772:/nieuws/index.php?ds=sidebyside diff --git a/nieuws/index.php b/nieuws/index.php index 9e97267..f74c632 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -1,19 +1,22 @@ login; @list ($year, $page) = explode('/', trim($Args, '/')); -if ($User and $User->admin('news')) { +if ($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->admin("edit $Page$Args") ? htmlspecialchars(@$_GET['edit']) : NULL; if ($edit) { $Article->title = $edit; } - $Place[1] = ' '.$Article->date.''; - print preg_replace('{(?<=