summaryrefslogtreecommitdiff
path: root/submit.php
diff options
context:
space:
mode:
authorPhil Burton <philbeansburton@gmail.com>2013-02-15 12:32:26 +0000
committerPhil Burton <philbeansburton@gmail.com>2013-02-15 12:32:26 +0000
commitda591d0326a826b4a5c7bede5e06dc3e453d4a79 (patch)
tree13e729564ff9ad9c6599c8cc6e46dcd1b3fa88e5 /submit.php
parent5b70dd6a30b16aa42602e4c22a50de820b13a1b7 (diff)
MINIKEEEEEEEEEEEEEEEEEEEEEN\! fixed the indentation of braces etc
Diffstat (limited to 'submit.php')
-rwxr-xr-xsubmit.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/submit.php b/submit.php
index 5c4da11..5b2c79e 100755
--- a/submit.php
+++ b/submit.php
@@ -1,14 +1,13 @@
<?php
- if(isset($_POST["paste"] && $_POST["paste"] != "" ) ) {
+ if( isset( $_POST["paste"] && $_POST["paste"] != "" ) ) {
$paste = $_POST["paste"];
- $id = dechex(crc32($paste));
- $fh = fopen($id, "w");
- fwrite($fh, $paste);
- fclose($fh);
- header("Location: http://p.of.je/$id");
+ $id = dechex( crc32( $paste ) );
+ $fh = fopen( $id, "w" );
+ fwrite( $fh, $paste );
+ fclose( $fh );
+ header( "Location: http://p.of.je/$id" );
}
- else
- {
- header("Location: http://p.of.je");
+ else {
+ header( "Location: http://p.of.je" );
}
?>