diff options
Diffstat (limited to 'submit.php')
-rwxr-xr-x | submit.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/submit.php b/submit.php new file mode 100755 index 0000000..46aa0ba --- /dev/null +++ b/submit.php @@ -0,0 +1,23 @@ +<html> +<?PHP + + $paste = $_POST["paste"]; + $md5sum = dechex(crc32($paste)); + + $fh = fopen($md5sum, 'w'); + + fwrite($fh, $paste); + + fclose($fh); + + echo("<p>Paste Added: <a +href=\"http://p.of.je/$md5sum\"> +http://p.of.je/$md5sum</a></p>"); + header("Location: http://p.of.je/$md5sum"); +?> +<p> + <a href="http://p.of.je/">Go Back</a> +</p> +</html> + + |