summaryrefslogtreecommitdiff
path: root/submit.php
diff options
context:
space:
mode:
authorwjoe <joe@lc8n.com>2012-07-31 15:50:36 +0100
committerwjoe <joe@lc8n.com>2012-07-31 15:50:36 +0100
commit4e8eee2f40bc4b2ba65792726c80fe470b0c24ca (patch)
tree01711d87e7bc799d386f55fe0734acd284eefdc6 /submit.php
Initial commit
Diffstat (limited to 'submit.php')
-rwxr-xr-xsubmit.php23
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>
+
+