diff options
-rwxr-xr-x | submit.php | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -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" ); } ?> |