X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/f0c8ab294f56f5eccaa57e58fc2b086f3fa71736..v3.9-11-g234326791b:/nieuws/replies.php?ds=sidebyside 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 '%s\n", file_get_contents($reply)); print "