summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" );
}
?>