X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e1e87f32c6654f1e4bf07d4d4b92926d5b90d085..882347cba815e99ba8e7ad28d077420aa986e7c5:/nieuws/replies.php diff --git a/nieuws/replies.php b/nieuws/replies.php index a6d9740..f762c23 100644 --- a/nieuws/replies.php +++ b/nieuws/replies.php @@ -7,8 +7,9 @@ $pagelink = $Page.$Args; if ($_POST) { try { @mkdir($pagelink); - $target = $pagelink.'/'.date('YmdHis').':'.$User['name'].'.html'; + $target = $pagelink.'/'.date('YmdHis').':'.$User->login.'.html'; $html = nl2br(htmlspecialchars($_POST['reply'])); + $html = "

$html

\n"; $written = file_put_contents($target, $html); if ($written === FALSE) { throw new Exception('Fout bij opslaan'); @@ -31,7 +32,7 @@ foreach (glob("$pagelink/*.html") as $reply) { printf('%s %s', $replymeta[2], showdate($replydate) ); - printf("

%s

\n", file_get_contents($reply)); + printf("
%s
\n", file_get_contents($reply)); print "\n"; } @@ -39,7 +40,7 @@ print '
  • '; print '
    '; printf(''."\n", 'reply', - "Bericht van {$User['name']}", + "Bericht van {$User->login}", '' ); print ''."\n";