X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/1150da9a36d521bcff52ff08b784f7a5608aa5fa..088e48c44ae79498f459e79dcf52ff02b2467772:/nieuws/index.php?ds=inline diff --git a/nieuws/index.php b/nieuws/index.php index 1a52011..f74c632 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -1,22 +1,22 @@ login; @list ($year, $page) = explode('/', trim($Args, '/')); -if (!empty($User['admin'])) { +if ($User->admin("edit $Page")) { print ''."\n"; } if ($page and !is_numeric($page)) { - $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL; - $article = new ArchiveArticle("$Page$Args.html"); - $Place[1] = ' '.$article->date.''; - print preg_replace('{(?<=
Tags: %s
\n", - implode("\n\t", $taglist) - ); + if ($taglist) { + printf(' '."\n", + implode("\n\t", $taglist) + ); + } } if ($replyform) { - print placeholder_include('nieuws/replies'); + print placeholder_include('reply'); } - return 1; + return; } if ($year) { - ob_clean(); $match = $Page; $title = "Nieuws"; if (is_numeric($year) and $year > 999) { @@ -64,5 +65,5 @@ if ($year) { print "