Skip to content

Instantly share code, notes, and snippets.

@uzulla uzulla/bbs.php
Last active Aug 29, 2015

What would you like to do?
<form method="post">
<input name="text">
<input type="submit">
!empty($_POST["text"]) && file_put_contents("log.php", date("c>").htmlspecialchars($_POST["text"], ENT_QUOTES, "UTF-8")."\n", FILE_APPEND) && header("location: {$_SERVER['REQUEST_URI']}");
echo @implode('<br>',array_reverse(file("log.php")));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.