From: tokul Date: Mon, 6 Sep 2004 14:18:44 +0000 (+0000) Subject: code cleanup: X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=5d73c31d1e255a8d84ac2c124fd3f6fa28b7e363 code cleanup: adding phpdoc blocks removing bogus GetMimeProperties function breaking long line git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8022 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/message_details/message_details_bottom.php b/plugins/message_details/message_details_bottom.php index f29ae0bf..850f69fc 100644 --- a/plugins/message_details/message_details_bottom.php +++ b/plugins/message_details/message_details_bottom.php @@ -32,6 +32,12 @@ sqgetGlobalVar('username', $username, SQ_SESSION); sqgetGlobalVar('key', $key, SQ_COOKIE); sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); +/** + * Calculates id of MIME entity + * @param string $entString + * @param integer $direction + * @return string + */ function CalcEntity($entString, $direction) { $result = $entString; if ($direction == -1) { @@ -62,15 +68,19 @@ function CalcEntity($entString, $direction) { return ($result); } +/** + * Returns time in microseconds between selected and current timestamp + * + * @param array $start see details about array format at http://www.php.net/gettimeofday + * @return integer time in microseconds + * @access private + */ function returnTime($start) { $stop = gettimeofday(); $timepassed = 1000000 * ($stop['sec'] - $start['sec']) + $stop['usec'] - $start['usec']; return $timepassed; } -function GetMimeProperties($header) { -} - $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); $read = sqimap_mailbox_select($imapConnection, $mailbox); $start = gettimeofday(); @@ -192,7 +202,8 @@ for ($i=1; $i < $count; $i++) { $content_indx++; $content[$content_indx]=array(); $content[$content_indx]['ent'] = '$entStr".''; - $pre .= "\n \n".''."\n \n".'
'; + $pre .= "\n \n".'
'."\n \n".'