X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/f0c8ab294f56f5eccaa57e58fc2b086f3fa71736..fb2049da3dfd9814498bb2ab0cb673b6260f4bc5:/nieuws/replies.php diff --git a/nieuws/replies.php b/nieuws/replies.php index 61ccc25..0847c7e 100644 --- a/nieuws/replies.php +++ b/nieuws/replies.php @@ -7,7 +7,7 @@ $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); @@ -28,9 +28,10 @@ foreach (glob("$pagelink/*.html") as $reply) { if (!$replymeta) continue; $replydate = str_split($replymeta[1], 2); $replydate[1] = $replydate[0] . $replydate[1]; + $replyuser = new User("profile/{$replymeta[2]}"); print '
  • '; printf('%s %s', - $replymeta[2], showdate($replydate) + $replyuser->html, showdate($replydate) ); printf("
    %s
    \n", file_get_contents($reply)); print "
  • \n"; @@ -40,7 +41,7 @@ print '
  • '; print '
    '; printf(''."\n", 'reply', - "Bericht van {$User['name']}", + "Bericht van {$User->login}", '' ); print ''."\n";