X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/76e9012a55abbbe190c2c97d25a17ec87426e687..a5cbc9ddb6ad65b17f83d2931e3318d94e498a0e:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 18416b3..ff433d5 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -1,22 +1,25 @@ login; @list ($year, $page) = explode('/', trim($Args, '/')); -if ($User and $User->admin) { +if ($User->admin("edit $Page")) { print ''."\n"; } if ($page and !is_numeric($page)) { - $edit = $User && $User->admin ? htmlspecialchars(@$_GET['edit']) : NULL; + $Article->meta['og:type'] = 'article'; + $edit = $User->admin("edit $Page$Args") ? htmlspecialchars(@$_GET['edit']) : NULL; if ($edit) { $Article->title = $edit; } - if ($Article->file) { - $Place['description'] = $Article->teaser; + if ($Article->dateparts) { + $Place[1] = ' '.$Article->date.''; } - $Place[1] = ' '.$Article->date.''; - print preg_replace('{(?<=