X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=contrib%2Fdecrypt_headers.php;h=7f0f393554679e40cfc6e5452bd94e6a10d2c2d0;hp=48c39a18f159e7bf102269ed9ee0284e1b59b13f;hb=1f2f93e6751d2c1b957aa7d197269b5c49df5d72;hpb=4b4abf93a9624311afef0c385023724ee46a2b60 diff --git a/contrib/decrypt_headers.php b/contrib/decrypt_headers.php index 48c39a18..7f0f3935 100644 --- a/contrib/decrypt_headers.php +++ b/contrib/decrypt_headers.php @@ -3,7 +3,7 @@ /** * Script provides form to decode encrypted header information. * - * @copyright © 2005 The SquirrelMail Project Team + * @copyright © 2005-2006 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -36,14 +36,14 @@ function hex2ip($hex) { .hexdec(substr($hex,4,2)).'.' .hexdec(substr($hex,6,2)); } elseif (strlen($hex)==32) { - $ret=hexdec(substr($hex,0,4)).':' - .hexdec(substr($hex,4,4)).':' - .hexdec(substr($hex,8,4)).':' - .hexdec(substr($hex,12,4)).':' - .hexdec(substr($hex,16,4)).':' - .hexdec(substr($hex,20,4)).':' - .hexdec(substr($hex,24,4)).':' - .hexdec(substr($hex,28,4)); + $ret=substr($hex,0,4).':' + .substr($hex,4,4).':' + .substr($hex,8,4).':' + .substr($hex,12,4).':' + .substr($hex,16,4).':' + .substr($hex,20,4).':' + .substr($hex,24,4).':' + .substr($hex,28,4); } else { $ret=$hex; } @@ -53,7 +53,8 @@ function hex2ip($hex) { /** create page headers */ header('Content-Type: text/html'); -echo '' +echo '' ."\n\n\n" .""; @@ -87,4 +88,4 @@ Check, if it is an address string:
Submit

- \ No newline at end of file +