X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/e1e87f32c6654f1e4bf07d4d4b92926d5b90d085..v3.9-11-g234326791b:/nieuws/replies.php diff --git a/nieuws/replies.php b/nieuws/replies.php index a6d9740..0847c7e 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'); @@ -27,11 +28,12 @@ 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)); + printf("%s\n", file_get_contents($reply)); print "