diff options
author | wjoe <joe@lc8n.com> | 2012-07-31 15:50:36 +0100 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2012-07-31 15:50:36 +0100 |
commit | 4e8eee2f40bc4b2ba65792726c80fe470b0c24ca (patch) | |
tree | 01711d87e7bc799d386f55fe0734acd284eefdc6 /submit.php |
Initial commit
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> + + |