summaryrefslogtreecommitdiff
path: root/submit.php
diff options
context:
space:
mode:
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>
+
+