<?php
-/*
- *
- * Original code from LexZEUS <lexzeus@mifinca.com>
- * and josh@superfork.com (extracted from php manual)
- * Adapted for MailFetch by Philippe Mingo <mingo@rotedic.com>
- *
- */
-
+ /**
+ ** mail_fetch/functions.php
+ **
+ ** Copyright (c) 1999-2004 The SquirrelMail Project Team
+ ** Licensed under the GNU GPL. For full terms see the file COPYING.
+ **
+ ** Functions for the mailfetch plugin.
+ **
+ ** Original code from LexZEUS <lexzeus@mifinca.com>
+ ** and josh@superfork.com (extracted from php manual)
+ ** Adapted for MailFetch by Philippe Mingo <mingo@rotedic.com>
+ **
+ ** $Id$
+ * @package plugins
+ * @subpackage mail_fetch
+ **/
+ /**
+ * hex2bin - document me
+ */
function hex2bin( $data ) {
/* Original code by josh@superfork.com */
$len = strlen($data);
+ $newdata = '';
for( $i=0; $i < $len; $i += 2 ) {
$newdata .= pack( "C", hexdec( substr( $data, $i, 2) ) );
}
return $tmp;
}
-?>
\ No newline at end of file
+?>