You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(5) |
Jun
(73) |
Jul
(155) |
Aug
(142) |
Sep
(50) |
Oct
(89) |
Nov
(39) |
Dec
(59) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(239) |
Feb
(293) |
Mar
(90) |
Apr
(149) |
May
(117) |
Jun
(52) |
Jul
(67) |
Aug
(15) |
Sep
(97) |
Oct
(304) |
Nov
(295) |
Dec
(372) |
2002 |
Jan
(357) |
Feb
(272) |
Mar
(153) |
Apr
(158) |
May
(170) |
Jun
(139) |
Jul
(226) |
Aug
(401) |
Sep
(314) |
Oct
(343) |
Nov
(270) |
Dec
(231) |
2003 |
Jan
(201) |
Feb
(112) |
Mar
(146) |
Apr
(103) |
May
(148) |
Jun
(287) |
Jul
(302) |
Aug
(139) |
Sep
(206) |
Oct
(281) |
Nov
(116) |
Dec
(191) |
2004 |
Jan
(82) |
Feb
(223) |
Mar
(175) |
Apr
(280) |
May
(260) |
Jun
(206) |
Jul
(107) |
Aug
(207) |
Sep
(108) |
Oct
(171) |
Nov
(186) |
Dec
(180) |
2005 |
Jan
(144) |
Feb
(226) |
Mar
(200) |
Apr
(286) |
May
(120) |
Jun
(144) |
Jul
(125) |
Aug
(111) |
Sep
(221) |
Oct
(51) |
Nov
(275) |
Dec
(73) |
2006 |
Jan
(178) |
Feb
(313) |
Mar
(87) |
Apr
(104) |
May
(145) |
Jun
(74) |
Jul
(197) |
Aug
(229) |
Sep
(118) |
Oct
(298) |
Nov
(39) |
Dec
(170) |
2007 |
Jan
(251) |
Feb
(109) |
Mar
(82) |
Apr
(5) |
May
(80) |
Jun
(63) |
Jul
(98) |
Aug
(103) |
Sep
(61) |
Oct
(41) |
Nov
(50) |
Dec
(47) |
2008 |
Jan
(74) |
Feb
(71) |
Mar
(102) |
Apr
(31) |
May
(117) |
Jun
(33) |
Jul
(61) |
Aug
(12) |
Sep
(22) |
Oct
(25) |
Nov
(21) |
Dec
(52) |
2009 |
Jan
(13) |
Feb
(16) |
Mar
(79) |
Apr
(181) |
May
(164) |
Jun
(10) |
Jul
(23) |
Aug
(30) |
Sep
(19) |
Oct
(18) |
Nov
(7) |
Dec
(5) |
2010 |
Jan
(23) |
Feb
(17) |
Mar
(15) |
Apr
(2) |
May
(4) |
Jun
(23) |
Jul
(89) |
Aug
(8) |
Sep
(13) |
Oct
(6) |
Nov
(4) |
Dec
(6) |
2011 |
Jan
(4) |
Feb
(1) |
Mar
(5) |
Apr
(13) |
May
(9) |
Jun
|
Jul
(23) |
Aug
(1) |
Sep
(9) |
Oct
(1) |
Nov
(11) |
Dec
(89) |
2012 |
Jan
(19) |
Feb
(16) |
Mar
(17) |
Apr
(24) |
May
(2) |
Jun
(2) |
Jul
(8) |
Aug
(5) |
Sep
(4) |
Oct
|
Nov
|
Dec
(2) |
2013 |
Jan
(2) |
Feb
|
Mar
(9) |
Apr
|
May
(4) |
Jun
(24) |
Jul
(4) |
Aug
|
Sep
(2) |
Oct
(5) |
Nov
(10) |
Dec
(9) |
2014 |
Jan
(25) |
Feb
(3) |
Mar
(14) |
Apr
(3) |
May
(5) |
Jun
(1) |
Jul
(4) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
2015 |
Jan
(23) |
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
(16) |
Jul
|
Aug
(10) |
Sep
(2) |
Oct
|
Nov
(10) |
Dec
(2) |
2016 |
Jan
(9) |
Feb
(3) |
Mar
|
Apr
(3) |
May
(4) |
Jun
|
Jul
(1) |
Aug
|
Sep
(17) |
Oct
(30) |
Nov
(2) |
Dec
(31) |
2017 |
Jan
(11) |
Feb
|
Mar
|
Apr
(6) |
May
(2) |
Jun
(42) |
Jul
(16) |
Aug
(8) |
Sep
(5) |
Oct
(2) |
Nov
(23) |
Dec
(3) |
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
(15) |
May
(1) |
Jun
|
Jul
(2) |
Aug
(5) |
Sep
(8) |
Oct
(13) |
Nov
(5) |
Dec
|
2019 |
Jan
(2) |
Feb
(10) |
Mar
(1) |
Apr
(7) |
May
(5) |
Jun
(2) |
Jul
(6) |
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
(11) |
Feb
|
Mar
(9) |
Apr
|
May
(14) |
Jun
|
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
(4) |
Dec
|
2021 |
Jan
(7) |
Feb
(16) |
Mar
(11) |
Apr
(5) |
May
(6) |
Jun
|
Jul
(1) |
Aug
(4) |
Sep
(3) |
Oct
(2) |
Nov
(1) |
Dec
(2) |
2022 |
Jan
(3) |
Feb
(2) |
Mar
(2) |
Apr
(7) |
May
(20) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2023 |
Jan
(7) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
(2) |
Oct
|
Nov
(1) |
Dec
(2) |
2024 |
Jan
(9) |
Feb
|
Mar
(7) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
(10) |
Oct
|
Nov
|
Dec
|
2025 |
Jan
(4) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <pdo...@us...> - 2021-02-06 00:49:16
|
Revision: 14887 http://sourceforge.net/p/squirrelmail/code/14887 Author: pdontthink Date: 2021-02-06 00:49:08 +0000 (Sat, 06 Feb 2021) Log Message: ----------- Stop using curly braces Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/class/mime/Message.class.php branches/SM-1_4-STABLE/squirrelmail/class/mime/Rfc822Header.class.php branches/SM-1_4-STABLE/squirrelmail/functions/auth.php branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php Modified: branches/SM-1_4-STABLE/squirrelmail/class/mime/Message.class.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/class/mime/Message.class.php 2021-02-05 19:29:03 UTC (rev 14886) +++ branches/SM-1_4-STABLE/squirrelmail/class/mime/Message.class.php 2021-02-06 00:49:08 UTC (rev 14887) @@ -214,7 +214,7 @@ $ent_a = explode('.', $ent); for ($i = 0,$entCount = count($ent_a) - 1; $i < $entCount; ++$i) { - if (isset($cur_ent_a[$i]) && ($cur_ent_a[$i] != $ent_a[$i])) { + if (isset($cur_ent_a[$i]) && ($cur_ent_a[$i] != $ent_a[$i]) && is_object($msg->parent)) { $msg = $msg->parent; $cur_ent_a = explode('.', $msg->entity_id); --$i; @@ -352,7 +352,7 @@ } for ($cnt = strlen($read); $i < $cnt; ++$i) { - $char = strtoupper($read{$i}); + $char = strtoupper($read[$i]); switch ($char) { case '(': switch($arg_no) { @@ -367,7 +367,7 @@ } else { $msg->header->type0 = 'multipart'; $msg->type0 = 'multipart'; - while ($read{$i} == '(') { + while ($read[$i] == '(') { $msg->addEntity($msg->parseBodyStructure($read, $i, $msg)); } } @@ -400,7 +400,7 @@ $msg->type1 = $arg_a[1]; $rfc822_hdr = new Rfc822Header(); $msg->rfc822_header = $msg->parseEnvelope($read, $i, $rfc822_hdr); - while (($i < $cnt) && ($read{$i} != '(')) { + while (($i < $cnt) && ($read[$i] != '(')) { ++$i; } $msg->addEntity($msg->parseBodyStructure($read, $i,$msg)); @@ -463,9 +463,9 @@ ++$arg_no; break; case '0': - case is_numeric($read{$i}): + case is_numeric($read[$i]): /* process integers */ - if ($read{$i} == ' ') { break; } + if ($read[$i] == ' ') { break; } ++$arg_no; if (preg_match('/^([0-9]+).*/',substr($read,$i), $regs)) { $i += strlen($regs[1])-1; @@ -527,11 +527,11 @@ $properties = array(); $prop_name = ''; - for (; $read{$i} != ')'; ++$i) { + for (; $read[$i] != ')'; ++$i) { $arg_s = ''; - if ($read{$i} == '"') { + if ($read[$i] == '"') { $arg_s = $this->parseQuote($read, $i); - } else if ($read{$i} == '{') { + } else if ($read[$i] == '{') { $arg_s = $this->parseLiteral($read, $i); } @@ -558,8 +558,8 @@ $arg_no = 0; $arg_a = array(); ++$i; - for ($cnt = strlen($read); ($i < $cnt) && ($read{$i} != ')'); ++$i) { - $char = strtoupper($read{$i}); + for ($cnt = strlen($read); ($i < $cnt) && ($read[$i] != ')'); ++$i) { + $char = strtoupper($read[$i]); switch ($char) { case '"': $arg_a[] = $this->parseQuote($read, $i); @@ -588,8 +588,8 @@ $addr_a = array(); $group = ''; $a=0; - for (; $i < $cnt && $read{$i} != ')'; ++$i) { - if ($read{$i} == '(') { + for (; $i < $cnt && $read[$i] != ')'; ++$i) { + if ($read[$i] == '(') { $addr = $this->parseAddress($read, $i); if (($addr->host == '') && ($addr->mailbox != '')) { /* start of group */ @@ -687,11 +687,11 @@ while (true) { $iPos = strpos($read,'"',$iPos); if (!$iPos) break; - if ($iPos && $read{$iPos -1} != '\\') { + if ($iPos && $read[$iPos -1] != '\\') { $s = substr($read,$i,($iPos-$i)); $i = $iPos; break; - } else if ($iPos > 1 && $read{$iPos -1} == '\\' && $read{$iPos-2} == '\\') { + } else if ($iPos > 1 && $read[$iPos -1] == '\\' && $read[$iPos-2] == '\\') { // This is an unique situation where the fast detection of the string // fails. If the quote string ends with \\ then we need to iterate // through the entire string to make sure we detect the unexcaped @@ -700,7 +700,7 @@ $bEscaped = false; $k = 0; for ($j=$iPosStart,$iCnt=strlen($read);$j<$iCnt;++$j) { - $cChar = $read{$j}; + $cChar = $read[$j]; switch ($cChar) { case '\\': $bEscaped = !$bEscaped; @@ -739,8 +739,8 @@ */ function parseAddress($read, &$i) { $arg_a = array(); - for (; $read{$i} != ')'; ++$i) { - $char = strtoupper($read{$i}); + for (; $read[$i] != ')'; ++$i) { + $char = strtoupper($read[$i]); switch ($char) { case '"': $arg_a[] = $this->parseQuote($read, $i); break; case '{': $arg_a[] = $this->parseLiteral($read, $i); break; @@ -774,8 +774,8 @@ */ function parseDisposition($read, &$i) { $arg_a = array(); - for (; $read{$i} != ')'; ++$i) { - switch ($read{$i}) { + for (; $read[$i] != ')'; ++$i) { + switch ($read[$i]) { case '"': $arg_a[] = $this->parseQuote($read, $i); break; case '{': $arg_a[] = $this->parseLiteral($read, $i); break; case '(': $arg_a[] = $this->parseProperties($read, $i); break; @@ -801,8 +801,8 @@ /* no idea how to process this one without examples */ $arg_a = array(); - for (; $read{$i} != ')'; ++$i) { - switch ($read{$i}) { + for (; $read[$i] != ')'; ++$i) { + switch ($read[$i]) { case '"': $arg_a[] = $this->parseQuote($read, $i); break; case '{': $arg_a[] = $this->parseLiteral($read, $i); break; case '(': $arg_a[] = $this->parseProperties($read, $i); break; @@ -826,8 +826,8 @@ * @return integer */ function parseParenthesis($read, $i) { - for ($i++; $read{$i} != ')'; ++$i) { - switch ($read{$i}) { + for ($i++; $read[$i] != ')'; ++$i) { + switch ($read[$i]) { case '"': $this->parseQuote($read, $i); break; case '{': $this->parseLiteral($read, $i); break; case '(': $this->parseProperties($read, $i); break; @@ -880,7 +880,7 @@ } } - if ((($line{0} == '-') || $rfc822_header) && isset($boundaries[0])) { + if ((($line[0] == '-') || $rfc822_header) && isset($boundaries[0])) { $cnt = count($boundaries)-1; $bnd = $boundaries[$cnt]['bnd']; $bndreg = $boundaries[$cnt]['bndreg']; @@ -890,7 +890,7 @@ $bndlen = strlen($reg[1]); $bndend = false; if (strlen($line) > ($bndlen + 3)) { - if (($line{$bndlen+2} == '-') && ($line{$bndlen+3} == '-')) { + if (($line[$bndlen+2] == '-') && ($line[$bndlen+3] == '-')) { $bndend = true; } } Modified: branches/SM-1_4-STABLE/squirrelmail/class/mime/Rfc822Header.class.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/class/mime/Rfc822Header.class.php 2021-02-05 19:29:03 UTC (rev 14886) +++ branches/SM-1_4-STABLE/squirrelmail/class/mime/Rfc822Header.class.php 2021-02-06 00:49:08 UTC (rev 14887) @@ -177,22 +177,22 @@ $result = ''; $cnt = strlen($value); for ($i = 0; $i < $cnt; ++$i) { - switch ($value{$i}) { + switch ($value[$i]) { case '"': $result .= '"'; - while ((++$i < $cnt) && ($value{$i} != '"')) { - if ($value{$i} == '\\') { + while ((++$i < $cnt) && ($value[$i] != '"')) { + if ($value[$i] == '\\') { $result .= '\\'; ++$i; } - $result .= $value{$i}; + $result .= $value[$i]; } - $result .= $value{$i}; + $result .= $value[$i]; break; case '(': $depth = 1; while (($depth > 0) && (++$i < $cnt)) { - switch($value{$i}) { + switch($value[$i]) { case '\\': ++$i; break; @@ -208,7 +208,7 @@ } break; default: - $result .= $value{$i}; + $result .= $value[$i]; break; } } @@ -349,7 +349,7 @@ $iCnt = strlen($address); $i = 0; while ($i < $iCnt) { - $cChar = $address{$i}; + $cChar = $address[$i]; switch($cChar) { case '<': @@ -368,11 +368,11 @@ $iEnd = strpos($address,$cChar,$i+1); if ($iEnd) { // skip escaped quotes - $prev_char = $address{$iEnd-1}; + $prev_char = $address[$iEnd-1]; while ($prev_char === '\\' && substr($address,$iEnd-2,2) !== '\\\\') { $iEnd = strpos($address,$cChar,$iEnd+1); if ($iEnd) { - $prev_char = $address{$iEnd-1}; + $prev_char = $address[$iEnd-1]; } else { $prev_char = false; } @@ -399,7 +399,7 @@ $iDepth = 1; $iComment = $i; while (($iDepth > 0) && (++$iComment < $iCnt)) { - $cCharComment = $address{$iComment}; + $cCharComment = $address[$iComment]; switch($cCharComment) { case '\\': ++$iComment; @@ -425,7 +425,7 @@ // check the next token in case comments appear in the middle of email addresses $prevToken = end($aTokens); if (!in_array($prevToken,$aSpecials,true)) { - if ($i+1<strlen($address) && !in_array($address{$i+1},$aSpecials,true)) { + if ($i+1<strlen($address) && !in_array($address[$i+1],$aSpecials,true)) { $iEnd = strpos($address,' ',$i+1); if ($iEnd) { $sNextToken = trim(substr($address,$i+1,$iEnd - $i -1)); @@ -531,7 +531,7 @@ $sPersonal = $sEmail = $sComment = $sGroup = ''; $aStack = $aComment = array(); foreach ($aTokens as $sToken) { - $cChar = $sToken{0}; + $cChar = $sToken[0]; switch ($cChar) { case '=': @@ -737,7 +737,7 @@ if ($pos > 0) { $key = trim(substr($prop, 0, $pos)); $val = trim(substr($prop, $pos+1)); - if (strlen($val) > 0 && $val{0} == '"') { + if (strlen($val) > 0 && $val[0] == '"') { $val = substr($val, 1, -1); } $propResultArray[$key] = $val; @@ -775,7 +775,7 @@ $value_a = explode(',', $value); foreach ($value_a as $val) { $val = trim($val); - if ($val{0} == '<') { + if ($val[0] == '<') { $val = substr($val, 1, -1); } if (substr($val, 0, 7) == 'mailto:') { Modified: branches/SM-1_4-STABLE/squirrelmail/functions/auth.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/auth.php 2021-02-05 19:29:03 UTC (rev 14886) +++ branches/SM-1_4-STABLE/squirrelmail/functions/auth.php 2021-02-06 00:49:08 UTC (rev 14887) @@ -227,13 +227,13 @@ $challenge=base64_decode($challenge); $parsed = array(); while (!empty($challenge)) { - if ($challenge{0} == ',') { // First char is a comma, must not be 1st time through loop + if ($challenge[0] == ',') { // First char is a comma, must not be 1st time through loop $challenge=substr($challenge,1); } $key=explode('=',$challenge,2); $challenge=$key[1]; $key=$key[0]; - if ($challenge{0} == '"') { + if ($challenge[0] == '"') { // We're in a quoted value // Drop the first quote, since we don't care about it $challenge=substr($challenge,1); Modified: branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php 2021-02-05 19:29:03 UTC (rev 14886) +++ branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php 2021-02-06 00:49:08 UTC (rev 14887) @@ -211,7 +211,7 @@ $i = 0; while ($read) { - $char = $read{0}; + $char = $read[0]; switch ($char) { case '+': @@ -223,7 +223,7 @@ $read = sqimap_fgets($imap_stream); break; - case $tag{0}: + case $tag[0]: { /* get the command */ $arg = ''; @@ -256,7 +256,7 @@ $read = sqimap_fgets($imap_stream); break; } - } // end case $tag{0} + } // end case $tag[0] case '*': { @@ -308,11 +308,11 @@ break 4; /* while while switch while */ } /* check for next untagged reponse and break */ - if ($read{0} == '*') break 2; + if ($read[0] == '*') break 2; $s = substr($read,-3); } while ($s === "}\r\n" || $read_literal); $s = substr($read,-3); - } while ($read{0} !== '*' && + } while ($read[0] !== '*' && substr($read,0,strlen($tag)) !== $tag); $resultlist[] = $fetch_data; /* release not neaded data */ @@ -344,7 +344,7 @@ $read = sqimap_fgets($imap_stream); if ($read === false) { break 3; /* while switch while */ - } else if ($read{0} == '*') { + } else if ($read[0] == '*') { break; } $s = substr($read,-3); @@ -695,7 +695,7 @@ // Skip any rfc5530 response code: '[something]' at the // start of the message if (!empty($message) - && $message{0} == '[' + && $message[0] == '[' && ($end = strstr($message, ']')) && $end != ']') { $message = substr($end, 1); @@ -1120,7 +1120,7 @@ $address = str_replace($aSpecials,$aReplace,$address); $i = 0; while ($i < $iCnt) { - $cChar = $address{$i}; + $cChar = $address[$i]; switch($cChar) { case '<': @@ -1139,11 +1139,11 @@ $iEnd = strpos($address,$cChar,$i+1); if ($iEnd) { // skip escaped quotes - $prev_char = $address{$iEnd-1}; + $prev_char = $address[$iEnd-1]; while ($prev_char === '\\' && substr($address,$iEnd-2,2) !== '\\\\') { $iEnd = strpos($address,$cChar,$iEnd+1); if ($iEnd) { - $prev_char = $address{$iEnd-1}; + $prev_char = $address[$iEnd-1]; } else { $prev_char = false; } @@ -1197,7 +1197,7 @@ if ($max && $max == count($aAddress)) { return $aAddress; } - $cChar = $sToken{0}; + $cChar = $sToken[0]; switch ($cChar) { case '=': Modified: branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php 2021-02-05 19:29:03 UTC (rev 14886) +++ branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php 2021-02-06 00:49:08 UTC (rev 14887) @@ -465,7 +465,7 @@ * @return string $s parsed string without the double quotes or literal count */ function parseString($read,&$i) { - $char = $read{$i}; + $char = $read[$i]; $s = ''; if ($char == '"') { $iPos = ++$i; @@ -472,7 +472,7 @@ while (true) { $iPos = strpos($read,'"',$iPos); if (!$iPos) break; - if ($iPos && $read{$iPos -1} != '\\') { + if ($iPos && $read[$iPos -1] != '\\') { $s = substr($read,$i,($iPos-$i)); $i = $iPos; break; @@ -634,7 +634,7 @@ case 'date': $aMsg['date'] = trim(str_replace(' ', ' ', $value)); break; - case 'x-priority': $aMsg['x-priority'] = ($value) ? (int) $value{0} : 3; break; + case 'x-priority': $aMsg['x-priority'] = ($value) ? (int) $value[0] : 3; break; case 'priority': case 'importance': // duplicate code with Rfc822Header.cls:parsePriority() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-02-03 05:42:53
|
Revision: 14884 http://sourceforge.net/p/squirrelmail/code/14884 Author: pdontthink Date: 2021-02-03 05:42:46 +0000 (Wed, 03 Feb 2021) Log Message: ----------- Fix variable name typo Modified Paths: -------------- trunk/squirrelmail/class/mime/Disposition.class.php Modified: trunk/squirrelmail/class/mime/Disposition.class.php =================================================================== --- trunk/squirrelmail/class/mime/Disposition.class.php 2021-02-03 05:06:44 UTC (rev 14883) +++ trunk/squirrelmail/class/mime/Disposition.class.php 2021-02-03 05:42:46 UTC (rev 14884) @@ -46,7 +46,7 @@ * @since 1.3.1 */ function getProperty($par) { - $value = strtolower($par); + $par = strtolower($par); if (isset($this->properties[$par])) { return $this->properties[$par]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-02-03 05:06:50
|
Revision: 14883 http://sourceforge.net/p/squirrelmail/code/14883 Author: pdontthink Date: 2021-02-03 05:06:44 +0000 (Wed, 03 Feb 2021) Log Message: ----------- Fix variable name typo Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/class/mime/Disposition.class.php Modified: branches/SM-1_4-STABLE/squirrelmail/class/mime/Disposition.class.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/class/mime/Disposition.class.php 2021-01-16 09:45:33 UTC (rev 14882) +++ branches/SM-1_4-STABLE/squirrelmail/class/mime/Disposition.class.php 2021-02-03 05:06:44 UTC (rev 14883) @@ -46,7 +46,7 @@ * @since 1.3.1 */ function getProperty($par) { - $value = strtolower($par); + $par = strtolower($par); if (isset($this->properties[$par])) { return $this->properties[$par]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-01-16 09:45:39
|
Revision: 14882 http://sourceforge.net/p/squirrelmail/code/14882 Author: pdontthink Date: 2021-01-16 09:45:33 +0000 (Sat, 16 Jan 2021) Log Message: ----------- Typo fix Modified Paths: -------------- trunk/squirrelmail/functions/imap_mailbox.php Modified: trunk/squirrelmail/functions/imap_mailbox.php =================================================================== --- trunk/squirrelmail/functions/imap_mailbox.php 2021-01-16 09:42:31 UTC (rev 14881) +++ trunk/squirrelmail/functions/imap_mailbox.php 2021-01-16 09:45:33 UTC (rev 14882) @@ -857,7 +857,7 @@ $lowerbox = strtolower(sm_encode_html_special_chars($value)); $sel = false; if ($show_selected != 0) { - foreach ($show_selected as $val)) { + foreach ($show_selected as $val) { if (strtolower($value) == strtolower(sm_encode_html_special_chars($val))) { $sel = true; break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-01-16 09:42:36
|
Revision: 14881 http://sourceforge.net/p/squirrelmail/code/14881 Author: pdontthink Date: 2021-01-16 09:42:31 +0000 (Sat, 16 Jan 2021) Log Message: ----------- Remove use of each() as it is deprecated Modified Paths: -------------- trunk/squirrelmail/functions/abook_database.php trunk/squirrelmail/functions/addressbook.php trunk/squirrelmail/functions/imap_general.php trunk/squirrelmail/functions/imap_mailbox.php trunk/squirrelmail/functions/mime.php trunk/squirrelmail/include/load_prefs.php trunk/squirrelmail/include/options/display.php trunk/squirrelmail/plugins/calendar/calendar.php trunk/squirrelmail/plugins/calendar/day.php trunk/squirrelmail/plugins/calendar/functions.php trunk/squirrelmail/plugins/squirrelspell/modules/check_me.mod trunk/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod trunk/squirrelmail/templates/util_addressbook.php Modified: trunk/squirrelmail/functions/abook_database.php =================================================================== --- trunk/squirrelmail/functions/abook_database.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/functions/abook_database.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -681,7 +681,7 @@ $sepstr = ''; $where_clause = ''; $where_clause_args = array(); - while (list($undef, $nickname) = each($alias)) { + foreach ($alias as $nickname) { $where_clause .= $sepstr . $this->identifier_quote_char . 'nickname' . $this->identifier_quote_char . ' = ?'; $where_clause_args[] = $nickname; $sepstr = ' OR '; @@ -705,7 +705,7 @@ $this->table, $this->owner); $sepstr = ''; - while (list($undef, $nickname) = each($alias)) { + foreach ($alias as $nickname) { $query .= sprintf("%s nickname='%s' ", $sepstr, $this->dbh->quoteString($nickname)); $sepstr = 'OR'; Modified: trunk/squirrelmail/functions/addressbook.php =================================================================== --- trunk/squirrelmail/functions/addressbook.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/functions/addressbook.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -141,7 +141,7 @@ /* Load configured LDAP servers (if PHP has LDAP support) */ if (isset($ldap_server) && is_array($ldap_server)) { reset($ldap_server); - while (list($undef,$param) = each($ldap_server)) { + foreach ($ldap_server as $param) { if (!is_array($param)) continue; @@ -251,7 +251,7 @@ $write = array(); $backends = $abook->get_backend_list(); - while (list($undef,$v) = each($backends)) { + foreach ($backends as $v) { if ($v->writeable) { $write[$v->bnum]=$v->sname; } Modified: trunk/squirrelmail/functions/imap_general.php =================================================================== --- trunk/squirrelmail/functions/imap_general.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/functions/imap_general.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -1272,7 +1272,7 @@ $pn = $data2[1]; $pna = explode(')(', $pn); $delnew = array(); - while (list($k, $v) = each($pna)) { + foreach ($pna as $v) { $lst = explode('"', $v); if (isset($lst[3])) { $delnew[$lst[1]] = $lst[3]; Modified: trunk/squirrelmail/functions/imap_mailbox.php =================================================================== --- trunk/squirrelmail/functions/imap_mailbox.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/functions/imap_mailbox.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -857,10 +857,10 @@ $lowerbox = strtolower(sm_encode_html_special_chars($value)); $sel = false; if ($show_selected != 0) { - reset($show_selected); - while (!$sel && (list($x, $val) = each($show_selected))) { + foreach ($show_selected as $val)) { if (strtolower($value) == strtolower(sm_encode_html_special_chars($val))) { $sel = true; + break; } } } Modified: trunk/squirrelmail/functions/mime.php =================================================================== --- trunk/squirrelmail/functions/mime.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/functions/mime.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -1382,7 +1382,7 @@ $fulltag = '<' . $tagname; if (is_array($attary) && sizeof($attary)){ $atts = Array(); - while (list($attname, $attvalue) = each($attary)){ + foreach ($attary as $attname => $attvalue){ array_push($atts, "$attname=$attvalue"); } $fulltag .= ' ' . join(" ", $atts); @@ -1816,7 +1816,7 @@ $mailbox ){ $me = 'sq_fixatts'; - while (list($attname, $attvalue) = each($attary)){ + foreach ($attary as $attname => $attvalue){ /** * See if this attribute should be removed. */ Modified: trunk/squirrelmail/include/load_prefs.php =================================================================== --- trunk/squirrelmail/include/load_prefs.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/include/load_prefs.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -511,16 +511,20 @@ // need to adjust $chosen_theme path with SM_PATH $chosen_theme_path = preg_replace("/(\.\.\/){1,}/", SM_PATH, $chosen_theme_path); $found_theme = false; -while (!$found_theme && (list($index, $data) = each($user_themes))) { - if ($data['PATH'] == $chosen_theme_path) +foreach ($user_themes as $data) { + if ($data['PATH'] == $chosen_theme_path) { $found_theme = true; + break; + } } if (!$found_theme) { $template_themes = $oTemplate->get_alternative_stylesheets(true); - while (!$found_theme && (list($path, $name) = each($template_themes))) { - if ($path == $chosen_theme_path) + foreach ($template_themes as $path => $name) { + if ($path == $chosen_theme_path) { $found_theme = true; + break; + } } } Modified: trunk/squirrelmail/include/options/display.php =================================================================== --- trunk/squirrelmail/include/options/display.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/include/options/display.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -523,9 +523,11 @@ // Don't assume the new value is there, double check // and only save if found $found = false; - while (!$found && (list($index, $data) = each($icon_themes))) { - if ($data['PATH'] == $option->new_value) + foreach ($icon_themes as $data) { + if ($data['PATH'] == $option->new_value) { $found = true; + break; + } } if (!$found) @@ -540,17 +542,20 @@ // Don't assume the new value is there, double check // and only save if found $found = false; - reset($user_themes); - while (!$found && (list($index, $data) = each($user_themes))) { - if ($data['PATH'] == $option->new_value) + foreach ($user_themes as $data) { + if ($data['PATH'] == $option->new_value) { $found = true; + break; + } } if (!$found) { $template_themes = $oTemplate->get_alternative_stylesheets(true); - while (!$found && (list($path, $name) = each($template_themes))) { - if ($path == $option->new_value) + foreach ($template_themes as $path => $name) { + if ($path == $option->new_value) { $found = true; + break; + } } } Modified: trunk/squirrelmail/plugins/calendar/calendar.php =================================================================== --- trunk/squirrelmail/plugins/calendar/calendar.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/plugins/calendar/calendar.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -110,10 +110,10 @@ } if (isset($calendardata[$cdate])){ $i=0; - while ($calfoo = each($calendardata[$cdate])) { - $calbar = $calendardata[$cdate][$calfoo['key']]; + foreach ($calendardata[$cdate] as $key => $value) { + $calbar = $calendardata[$cdate][$key]; // FIXME: how to display multiline task - $title = '['. $calfoo['key']. '] ' . + $title = '['. $key. '] ' . str_replace(array("\r","\n"),array(' ',' '),sm_encode_html_special_chars($calbar['message'])); // FIXME: link to nowhere echo "<a href=\"#\" style=\"text-decoration:none; color: " Modified: trunk/squirrelmail/plugins/calendar/day.php =================================================================== --- trunk/squirrelmail/plugins/calendar/day.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/plugins/calendar/day.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -80,8 +80,8 @@ $cdate = $month . $day . $year; if (isset($calendardata[$cdate])){ - while ( $calfoo = each($calendardata[$cdate])){ - $daily_events["$calfoo[key]"] = $calendardata[$cdate][$calfoo['key']]; + foreach ($calendardata[$cdate] as $key => $value){ + $daily_events[$key] = $calendardata[$cdate][$key]; } } } @@ -96,7 +96,7 @@ ksort($daily_events,SORT_STRING); $eo=0; - while ($calfoo = each($daily_events)){ + foreach ($daily_events as $key => $value) { if ($eo==0){ $eo=4; } else { @@ -103,21 +103,21 @@ $eo=0; } - $ehour = substr($calfoo['key'],0,2); - $eminute = substr($calfoo['key'],2,2); - if (!is_array($calfoo['value'])){ + $ehour = substr($key,0,2); + $eminute = substr($key,2,2); + if (!is_array($value)){ echo html_tag( 'tr', html_tag( 'td', $ehour . ':' . $eminute, 'left' ) . html_tag( 'td', ' ', 'left' ) . html_tag( 'td', "<font size=\"-1\"><a href=\"event_create.php?year=$year&month=$month&day=$day&hour=" - .substr($calfoo['key'],0,2)."\">". + .substr($key,0,2)."\">". _("ADD") . "</a></font>" , 'center' ) , '', $color[$eo]); } else { - $calbar=$calfoo['value']; + $calbar=$value; if ($calbar['length']!=0){ $elength = '-'.date_intl(_("H:i"),mktime($ehour,$eminute+$calbar['length'],0,1,1,0)); } else { @@ -133,10 +133,10 @@ html_tag( 'td', "<font size=\"-1\"><nobr>\n" . "<a href=\"event_edit.php?year=$year&month=$month&day=$day&hour=". - substr($calfoo['key'],0,2)."&minute=".substr($calfoo['key'],2,2)."\">". + substr($key,0,2)."&minute=".substr($key,2,2)."\">". _("EDIT") . "</a> | \n" . "<a href=\"event_delete.php?dyear=$year&dmonth=$month&dday=$day&dhour=". - substr($calfoo['key'],0,2)."&dminute=".substr($calfoo['key'],2,2). + substr($key,0,2)."&dminute=".substr($key,2,2). "&year=$year&month=$month&day=$day\">" . _("DEL") . '</a>' . "</nobr></font>\n" , Modified: trunk/squirrelmail/plugins/calendar/functions.php =================================================================== --- trunk/squirrelmail/plugins/calendar/functions.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/plugins/calendar/functions.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -71,11 +71,11 @@ '360' => _("6 hr.") ); - while( $bar = each($eventlength)) { - if($bar['key']==$selected){ - echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n"; + foreach($eventlength as $key => $value) { + if($key==$selected){ + echo ' <option value="'.$key.'" selected="selected">'.$value."</option>\n"; } else { - echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n"; + echo ' <option value="'.$key.'">'.$value."</option>\n"; } } } @@ -103,11 +103,11 @@ '55'=>'55' ); - while ( $bar = each($eventminute)) { - if ($bar['key']==$selected){ - echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n"; + foreach ($eventminute as $key => $value) { + if ($key==$selected){ + echo ' <option value="'.$key.'" selected="selected">'.$value."</option>\n"; } else { - echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n"; + echo ' <option value="'.$key.'">'.$value."</option>\n"; } } } @@ -141,11 +141,11 @@ '1' => _("High"), ); - while( $bar = each($eventpriority)) { - if($bar['key']==$selected){ - echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n"; + foreach($eventpriority as $key => $value) { + if($key==$selected){ + echo ' <option value="'.$key.'" selected="selected">'.$value."</option>\n"; } else { - echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n"; + echo ' <option value="'.$key.'">'.$value."</option>\n"; } } } Modified: trunk/squirrelmail/plugins/squirrelspell/modules/check_me.mod =================================================================== --- trunk/squirrelmail/plugins/squirrelspell/modules/check_me.mod 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/plugins/squirrelspell/modules/check_me.mod 2021-01-16 09:42:31 UTC (rev 14881) @@ -201,7 +201,7 @@ */ $extrajs.= "var suggestions = new Array();\n"; $i=0; - while (list($word, $value) = each($misses)){ + foreach ($misses as $value){ if ($value=='_NONE') $value=''; $extrajs.= "suggestions[$i] = \"$value\";\n"; $i++; @@ -213,7 +213,7 @@ */ $extrajs.= "var locations= new Array();\n"; $i=0; - while (list($word, $value) = each($locations)){ + foreach ($locations as $value){ $extrajs.= "locations[$i] = \"$value\";\n"; $i++; } Modified: trunk/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod =================================================================== --- trunk/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod 2021-01-16 09:42:31 UTC (rev 14881) @@ -32,7 +32,7 @@ $add = '<p><label for="lang_default">' . _("Make this dictionary my default selection:") . "</label> <select name=\"lang_default\" id=\"lang_default\">\n"; -while (list($avail_lang, $junk) = each($SQSPELL_APP)){ +foreach ($SQSPELL_APP as $avail_lang => $ignore){ $msg .= "<input type=\"checkbox\" name=\"use_langs[]\" " . "value=\"$avail_lang\" id=\"use_langs_$avail_lang\""; if (in_array($avail_lang, $langs)) { Modified: trunk/squirrelmail/templates/util_addressbook.php =================================================================== --- trunk/squirrelmail/templates/util_addressbook.php 2021-01-16 03:48:14 UTC (rev 14880) +++ trunk/squirrelmail/templates/util_addressbook.php 2021-01-16 09:42:31 UTC (rev 14881) @@ -39,7 +39,7 @@ return array(); $contacts = array(); - while(list($undef,$row) = each($addresses)) { + foreach($addresses as $row) { $contact = array ( 'FirstName' => sm_encode_html_special_chars($row['firstname']), 'LastName' => sm_encode_html_special_chars($row['lastname']), @@ -150,7 +150,7 @@ $backends = array(); $backends['-1'] = _("All address books"); $ret = $abook->get_backend_list(); - while (list($undef,$v) = each($ret)) { + foreach ($ret as $v) { if ($v->btype == 'local' && !$v->listing) { continue; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-01-16 03:48:21
|
Revision: 14880 http://sourceforge.net/p/squirrelmail/code/14880 Author: pdontthink Date: 2021-01-16 03:48:14 +0000 (Sat, 16 Jan 2021) Log Message: ----------- Remove use of each() since it is deprecated Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/abook_database.php branches/SM-1_4-STABLE/squirrelmail/functions/addressbook.php branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php branches/SM-1_4-STABLE/squirrelmail/functions/mime.php branches/SM-1_4-STABLE/squirrelmail/plugins/calendar/calendar.php branches/SM-1_4-STABLE/squirrelmail/plugins/squirrelspell/modules/check_me.mod branches/SM-1_4-STABLE/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod branches/SM-1_4-STABLE/squirrelmail/src/addrbook_search.php branches/SM-1_4-STABLE/squirrelmail/src/addrbook_search_html.php branches/SM-1_4-STABLE/squirrelmail/src/addressbook.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/abook_database.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/abook_database.php 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/functions/abook_database.php 2021-01-16 03:48:14 UTC (rev 14880) @@ -656,7 +656,7 @@ $sepstr = ''; $where_clause = ''; $where_clause_args = array(); - while (list($undef, $nickname) = each($alias)) { + foreach ($alias as $nickname) { $where_clause .= $sepstr . $this->identifier_quote_char . 'nickname' . $this->identifier_quote_char . ' = ?'; $where_clause_args[] = $nickname; $sepstr = ' OR '; @@ -680,7 +680,7 @@ $this->table, $this->owner); $sepstr = ''; - while (list($undef, $nickname) = each($alias)) { + foreach ($alias as $nickname) { $query .= sprintf("%s nickname='%s' ", $sepstr, $this->dbh->quoteString($nickname)); $sepstr = 'OR'; Modified: branches/SM-1_4-STABLE/squirrelmail/functions/addressbook.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/addressbook.php 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/functions/addressbook.php 2021-01-16 03:48:14 UTC (rev 14880) @@ -136,7 +136,7 @@ /* Load configured LDAP servers (if PHP has LDAP support) */ if (isset($ldap_server) && is_array($ldap_server) && function_exists('ldap_connect')) { reset($ldap_server); - while (list($undef,$param) = each($ldap_server)) { + foreach ($ldap_server as $param) { if (is_array($param)) { $r = $abook->add_backend('ldap_server', $param); if (!$r && $showerr) { Modified: branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/functions/imap_general.php 2021-01-16 03:48:14 UTC (rev 14880) @@ -1061,7 +1061,7 @@ $pn = $data2[1]; $pna = explode(')(', $pn); $delnew = array(); - while (list($k, $v) = each($pna)) { + foreach ($pna as $v) { $lst = explode('"', $v); if (isset($lst[3])) { $delnew[$lst[1]] = $lst[3]; Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mime.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2021-01-16 03:48:14 UTC (rev 14880) @@ -1183,7 +1183,7 @@ $fulltag = '<' . $tagname; if (is_array($attary) && sizeof($attary)){ $atts = Array(); - while (list($attname, $attvalue) = each($attary)){ + foreach ($attary as $attname => $attvalue){ array_push($atts, "$attname=$attvalue"); } $fulltag .= ' ' . join(" ", $atts); @@ -1616,7 +1616,7 @@ $mailbox ){ $me = 'sq_fixatts'; - while (list($attname, $attvalue) = each($attary)){ + foreach ($attary as $attname => $attvalue){ /** * See if this attribute should be removed. */ Modified: branches/SM-1_4-STABLE/squirrelmail/plugins/calendar/calendar.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/plugins/calendar/calendar.php 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/plugins/calendar/calendar.php 2021-01-16 03:48:14 UTC (rev 14880) @@ -110,10 +110,10 @@ } if (isset($calendardata[$cdate])){ $i=0; - while ($calfoo = each($calendardata[$cdate])) { - $calbar = $calendardata[$cdate][$calfoo['key']]; + foreach ($calendardata[$cdate] as $key => $value) { + $calbar = $calendardata[$cdate][$key]; // FIXME: how to display multiline task - $title = '['. $calfoo['key']. '] ' . + $title = '['. $key. '] ' . str_replace(array("\r","\n"),array(' ',' '),sm_encode_html_special_chars($calbar['message'])); // FIXME: link to nowhere echo "<a href=\"#\" style=\"text-decoration:none; color: " @@ -177,4 +177,4 @@ endcalendar(); ?> -</body></html> \ No newline at end of file +</body></html> Modified: branches/SM-1_4-STABLE/squirrelmail/plugins/squirrelspell/modules/check_me.mod =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/plugins/squirrelspell/modules/check_me.mod 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/plugins/squirrelspell/modules/check_me.mod 2021-01-16 03:48:14 UTC (rev 14880) @@ -290,7 +290,7 @@ */ $extrajs.= "var suggestions = new Array();\n"; $i=0; - while (list($word, $value) = each($misses)){ + foreach ($misses as $value){ if ($value=='_NONE') $value=''; $extrajs.= "suggestions[$i] = \"$value\";\n"; $i++; @@ -302,7 +302,7 @@ */ $extrajs.= "var locations= new Array();\n"; $i=0; - while (list($word, $value) = each($locations)){ + foreach ($locations as $value){ $extrajs.= "locations[$i] = \"$value\";\n"; $i++; } Modified: branches/SM-1_4-STABLE/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/plugins/squirrelspell/modules/lang_setup.mod 2021-01-16 03:48:14 UTC (rev 14880) @@ -36,7 +36,7 @@ $add = '<p>' . _("Make this dictionary my default selection:") . " <select name=\"lang_default\">\n"; -while (list($avail_lang, $junk) = each($SQSPELL_APP)){ +foreach ($SQSPELL_APP as $avail_lang => $ignore){ $msg .= "<input type=\"checkbox\" name=\"use_langs[]\" " . "value=\"$avail_lang\""; if (in_array($avail_lang, $langs)) { Modified: branches/SM-1_4-STABLE/squirrelmail/src/addrbook_search.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/src/addrbook_search.php 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/src/addrbook_search.php 2021-01-16 03:48:14 UTC (rev 14880) @@ -137,7 +137,7 @@ } echo "</tr>\n"; - while (list($undef, $row) = each($res)) { + foreach ($res as $row) { $email = sm_encode_html_special_chars(addcslashes(AddressBook::full_address($row), "'"), ENT_QUOTES); if ($line % 2) { $tr_bgcolor = $color[12]; @@ -220,7 +220,7 @@ $selopts['-1'] = _("All address books"); $ret = $abook->get_backend_list(); - while (list($undef,$v) = each($ret)) { + foreach ($ret as $v) { $selopts[$v->bnum] = $v->sname; } echo addSelect('backend', $selopts, '-1', TRUE); @@ -303,4 +303,4 @@ } ?> -</body></html> \ No newline at end of file +</body></html> Modified: branches/SM-1_4-STABLE/squirrelmail/src/addrbook_search_html.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/src/addrbook_search_html.php 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/src/addrbook_search_html.php 2021-01-16 03:48:14 UTC (rev 14880) @@ -223,7 +223,7 @@ $selopts['-1'] = _("All address books"); $ret = $abook->get_backend_list(); - while (list($undef,$v) = each($ret)) { + foreach ($ret as $v) { $selopts[$v->bnum] = $v->sname; } echo addSelect('backend', $selopts, $backend, TRUE); Modified: branches/SM-1_4-STABLE/squirrelmail/src/addressbook.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/src/addressbook.php 2021-01-16 02:51:48 UTC (rev 14879) +++ branches/SM-1_4-STABLE/squirrelmail/src/addressbook.php 2021-01-16 03:48:14 UTC (rev 14880) @@ -132,7 +132,7 @@ if ( $abook->numbackends > 1 ) { $backends = $abook->get_backend_list(); $writeable_abooks=array(); - while (list($undef,$v) = each($backends)) { + foreach ($backends as $v) { if ($v->writeable) { // add each backend to array $writeable_abooks[$v->bnum]=$v->sname; @@ -439,7 +439,7 @@ $abook_fields = 5; } $count = 0; - while(list($undef,$row) = each($alist)) { + foreach ($alist as $row) { /* New table header for each backend */ if($prevbackend != $row['backend']) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-01-16 02:51:49
|
Revision: 14879 http://sourceforge.net/p/squirrelmail/code/14879 Author: pdontthink Date: 2021-01-16 02:51:48 +0000 (Sat, 16 Jan 2021) Log Message: ----------- Fix for unknown broken mailer using "UTC" in Date header Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/date.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/date.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/date.php 2021-01-16 02:51:18 UTC (rev 14878) +++ branches/SM-1_4-STABLE/squirrelmail/functions/date.php 2021-01-16 02:51:48 UTC (rev 14879) @@ -56,6 +56,7 @@ $tzc = '-0400'; break; case 'GMT': + case 'UTC': $tzc = '+0000'; break; case 'BST': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-01-16 02:51:25
|
Revision: 14878 http://sourceforge.net/p/squirrelmail/code/14878 Author: pdontthink Date: 2021-01-16 02:51:18 +0000 (Sat, 16 Jan 2021) Log Message: ----------- Fix for unknown broken mailer using "UTC" in Date header Modified Paths: -------------- trunk/squirrelmail/functions/date.php Modified: trunk/squirrelmail/functions/date.php =================================================================== --- trunk/squirrelmail/functions/date.php 2021-01-15 16:34:45 UTC (rev 14877) +++ trunk/squirrelmail/functions/date.php 2021-01-16 02:51:18 UTC (rev 14878) @@ -58,6 +58,7 @@ $tzc = '-0400'; break; case 'GMT': + case 'UTC': $tzc = '+0000'; break; case 'BST': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-01-15 16:34:48
|
Revision: 14877 http://sourceforge.net/p/squirrelmail/code/14877 Author: pdontthink Date: 2021-01-15 16:34:45 +0000 (Fri, 15 Jan 2021) Log Message: ----------- Give attribution Modified Paths: -------------- trunk/squirrelmail/doc/ChangeLog Modified: trunk/squirrelmail/doc/ChangeLog =================================================================== --- trunk/squirrelmail/doc/ChangeLog 2021-01-15 16:30:25 UTC (rev 14876) +++ trunk/squirrelmail/doc/ChangeLog 2021-01-15 16:34:45 UTC (rev 14877) @@ -441,7 +441,8 @@ $PHP_SELF does not resolve to what it should be for the real client. - Show more accurate filesize for uploaded files and base64-encoded attachments (when reading a message) - - Added fixes for PHP version 8 compatibility + - Added fixes for PHP version 8 compatibility (thanks to Marcel Pol for + bringing this to our attention) Version 1.5.1 (branched on 2006-02-12) -------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2021-01-15 16:30:26
|
Revision: 14876 http://sourceforge.net/p/squirrelmail/code/14876 Author: pdontthink Date: 2021-01-15 16:30:25 +0000 (Fri, 15 Jan 2021) Log Message: ----------- PHP 8 compatibility fix Modified Paths: -------------- trunk/squirrelmail/class/template/Template.class.php trunk/squirrelmail/doc/ChangeLog Modified: trunk/squirrelmail/class/template/Template.class.php =================================================================== --- trunk/squirrelmail/class/template/Template.class.php 2020-11-21 04:00:56 UTC (rev 14875) +++ trunk/squirrelmail/class/template/Template.class.php 2021-01-15 16:30:25 UTC (rev 14876) @@ -159,7 +159,7 @@ * @static * */ - function construct_template($template_set_id) { + static function construct_template($template_set_id) { $template = new Template($template_set_id); $template->override_plugins(); @@ -234,7 +234,7 @@ * @static * */ - function get_fallback_template_set($default='default') { + static function get_fallback_template_set($default='default') { // FIXME: do we want to place any restrictions on the ID such as // making sure no slashes included? @@ -285,7 +285,7 @@ * @static * */ - function get_default_template_set($default='default') { + static function get_default_template_set($default='default') { // FIXME: do we want to place any restrictions on the ID such as // making sure no slashes included? @@ -336,7 +336,7 @@ * @static * */ - function get_rpc_template_set($default='default_rpc') { + static function get_rpc_template_set($default='default_rpc') { // FIXME: do we want to place any restrictions on the ID such as // making sure no slashes included? @@ -475,7 +475,7 @@ * @static * */ - function calculate_template_file_directory($template_set_id) { + static function calculate_template_file_directory($template_set_id) { return 'templates/' . $template_set_id . '/'; @@ -493,7 +493,7 @@ * @static * */ - function calculate_template_images_directory($template_set_id) { + static function calculate_template_images_directory($template_set_id) { return 'templates/' . $template_set_id . '/images/'; @@ -592,7 +592,7 @@ * @static * */ - function get_template_config($template_set_id, $setting, + static function get_template_config($template_set_id, $setting, $default=NULL, $live_config=FALSE) { sqGetGlobalVar('template_configuration_settings', @@ -714,7 +714,7 @@ * @static * */ - function cache_template_file_hierarchy($template_set_id, + static function cache_template_file_hierarchy($template_set_id, $regenerate_cache=FALSE, $additional_files=array()) { @@ -793,7 +793,7 @@ * @static * */ - function catalog_template_files($template_set_id, $file_list=array(), $directory='') { + static function catalog_template_files($template_set_id, $file_list=array(), $directory='') { $template_base_dir = SM_PATH . Template::calculate_template_file_directory($template_set_id); Modified: trunk/squirrelmail/doc/ChangeLog =================================================================== --- trunk/squirrelmail/doc/ChangeLog 2020-11-21 04:00:56 UTC (rev 14875) +++ trunk/squirrelmail/doc/ChangeLog 2021-01-15 16:30:25 UTC (rev 14876) @@ -441,6 +441,7 @@ $PHP_SELF does not resolve to what it should be for the real client. - Show more accurate filesize for uploaded files and base64-encoded attachments (when reading a message) + - Added fixes for PHP version 8 compatibility Version 1.5.1 (branched on 2006-02-12) -------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-11-21 04:01:01
|
Revision: 14875 http://sourceforge.net/p/squirrelmail/code/14875 Author: pdontthink Date: 2020-11-21 04:00:56 +0000 (Sat, 21 Nov 2020) Log Message: ----------- Add default ability to view calendar attachments sent as application/ics Modified Paths: -------------- trunk/squirrelmail/functions/attachment_common.php Modified: trunk/squirrelmail/functions/attachment_common.php =================================================================== --- trunk/squirrelmail/functions/attachment_common.php 2020-11-21 03:58:51 UTC (rev 14874) +++ trunk/squirrelmail/functions/attachment_common.php 2020-11-21 04:00:56 UTC (rev 14875) @@ -93,6 +93,9 @@ register_attachment_common('text/x-vcard', 'link_vcard'); register_attachment_common('text/directory', 'link_vcard'); +/* Register ics (calendar) */ +register_attachment_common('application/ics', 'link_text'); + /* Register rules for general types. * These will be used if there isn't a more specific rule available. */ register_attachment_common('text/*', 'link_text'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-11-21 03:58:52
|
Revision: 14874 http://sourceforge.net/p/squirrelmail/code/14874 Author: pdontthink Date: 2020-11-21 03:58:51 +0000 (Sat, 21 Nov 2020) Log Message: ----------- Add default ability to view calendar attachments sent as application/ics Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/attachment_common.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/attachment_common.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/attachment_common.php 2020-11-03 20:17:15 UTC (rev 14873) +++ branches/SM-1_4-STABLE/squirrelmail/functions/attachment_common.php 2020-11-21 03:58:51 UTC (rev 14874) @@ -84,6 +84,9 @@ register_attachment_common('text/x-vcard', 'link_vcard'); register_attachment_common('text/directory', 'link_vcard'); +/* Register ics (calendar) */ +register_attachment_common('application/ics', 'link_text'); + /* Register rules for general types. * These will be used if there isn't a more specific rule available. */ register_attachment_common('text/*', 'link_text'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-11-03 20:17:28
|
Revision: 14873 http://sourceforge.net/p/squirrelmail/code/14873 Author: pdontthink Date: 2020-11-03 20:17:15 +0000 (Tue, 03 Nov 2020) Log Message: ----------- Fix what I think was a misunderstanding of what the "extra" attribute was supposed to be for the anchor links for attachment actions Modified Paths: -------------- trunk/squirrelmail/functions/mime.php trunk/squirrelmail/templates/default/read_attachments.tpl Modified: trunk/squirrelmail/functions/mime.php =================================================================== --- trunk/squirrelmail/functions/mime.php 2020-11-03 19:49:34 UTC (rev 14872) +++ trunk/squirrelmail/functions/mime.php 2020-11-03 20:17:15 UTC (rev 14873) @@ -656,12 +656,19 @@ $this_attachment['ViewHREF'] = $val['href']; continue; } - if (empty($val['text']) && empty($val['extra'])) + + // This makes no sense - If 'text' and 'extra' are just concatenated, + // there is no point in having 'extra'.... I am going to assume this + // was a mistake and am changing 'extra' to be what I think it was + // meant to be: additional tag attributes. However, I'm not checking + // extensively for plugins that were using this the wrong way (but why would they?) + if (empty($val['text'])) continue; $temp = array(); $temp['HREF'] = $val['href']; - $temp['Text'] = (empty($val['text']) ? '' : $val['text']) . (empty($val['extra']) ? '' : $val['extra']); + $temp['Text'] = $val['text']; + $temp['Extra'] = (empty($val['extra']) ? '' : $val['extra']); $this_attachment['OtherLinks'][] = $temp; } $attachments[] = $this_attachment; Modified: trunk/squirrelmail/templates/default/read_attachments.tpl =================================================================== --- trunk/squirrelmail/templates/default/read_attachments.tpl 2020-11-03 19:49:34 UTC (rev 14872) +++ trunk/squirrelmail/templates/default/read_attachments.tpl 2020-11-03 20:17:15 UTC (rev 14873) @@ -10,19 +10,20 @@ * $attachments - array containing info for all message attachments. Each * element in the array represents a separate attachment and * contains the following elements: - * $el['Name'] - The name of the attachment - * $el['Description'] - Description of the attachment - * $el['DefaultHREF'] - URL to the action that should occur when the name is clicked - * $el['DownloadHREF'] - URL to download the attachment - * $el['ViewHREF'] - URL to view the attachment. Empty if not available. - * $el['Size'] - Size of attachment in bytes. - * $el['ContentType'] - Content-Type of the attachment - * $el['OtherLinks'] - array containing links to any other actions - * available for this attachment that might be - * provided by plugins, for example. Each element represents - * a different action and contains the following elements: - * $link['HREF'] - URL to access the functionality - * $link['Text'] - Text representing the functionality. + * $el['Name'] - The name of the attachment + * $el['Description'] - Description of the attachment + * $el['DefaultHREF'] - URL to the action that should occur when the name is clicked + * $el['DownloadHREF'] - URL to download the attachment + * $el['ViewHREF'] - URL to view the attachment. Empty if not available. + * $el['Size'] - Size of attachment in bytes. + * $el['ContentType'] - Content-Type of the attachment + * $el['OtherLinks'] - array containing links to any other actions + * available for this attachment that might be + * provided by plugins, for example. Each element represents + * a different action and contains the following elements: + * $link['HREF'] - URL to access the functionality + * $link['Text'] - Text representing the functionality + * $link['Extra'] - Any extra anchor tag attributes provided by a plugin * * @copyright 1999-2020 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License @@ -82,7 +83,7 @@ foreach ($attachment['OtherLinks'] as $link) { ?> | - <a href="<?php echo $link['HREF']; ?>"><?php echo $link['Text']; ?></a> + <a href="<?php echo $link['HREF'] . '" ' . $link['Extra']; ?>><?php echo $link['Text']; ?></a> <?php } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-11-03 19:49:35
|
Revision: 14872 http://sourceforge.net/p/squirrelmail/code/14872 Author: pdontthink Date: 2020-11-03 19:49:34 +0000 (Tue, 03 Nov 2020) Log Message: ----------- Allow plugins to add JavaScript or other anchor link attributes Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mime.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2020-07-11 07:52:44 UTC (rev 14871) +++ branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2020-11-03 19:49:34 UTC (rev 14872) @@ -567,7 +567,9 @@ } else { $attachments .= ' | '; } - $attachments .= '<a href="' . $val['href'] . '">' . $val['text'] . '</a>'; + $attachments .= '<a href="' . $val['href'] . '" ' + . (!empty($val['extra']) ? $val['extra'] : '') + . '>' . $val['text'] . '</a>'; } unset($links); $attachments .= "</td></tr>\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-07-11 07:52:46
|
Revision: 14871 http://sourceforge.net/p/squirrelmail/code/14871 Author: pdontthink Date: 2020-07-11 07:52:44 +0000 (Sat, 11 Jul 2020) Log Message: ----------- Fix index value that was left over from 1.4.x Modified Paths: -------------- trunk/squirrelmail/functions/attachment_common.php Modified: trunk/squirrelmail/functions/attachment_common.php =================================================================== --- trunk/squirrelmail/functions/attachment_common.php 2020-07-11 07:08:51 UTC (rev 14870) +++ trunk/squirrelmail/functions/attachment_common.php 2020-07-11 07:52:44 UTC (rev 14871) @@ -265,7 +265,7 @@ //FIXME: or at least we can move this hook up to the top of this file where $FileExtensionToMimeType is defined. What else is this hook here for? What plugins use it? do_hook('attachment_common-load_mime_types', $null); - preg_match('/\.([^.]+)$/', $Args[7], $Regs); + preg_match('/\.([^.]+)$/', $Args[6], $Regs); $Ext = ''; if (is_array($Regs) && isset($Regs[1])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-07-11 07:08:52
|
Revision: 14870 http://sourceforge.net/p/squirrelmail/code/14870 Author: pdontthink Date: 2020-07-11 07:08:51 +0000 (Sat, 11 Jul 2020) Log Message: ----------- Allow plugins to provide their own view/download attachment links Modified Paths: -------------- trunk/squirrelmail/functions/mime.php Modified: trunk/squirrelmail/functions/mime.php =================================================================== --- trunk/squirrelmail/functions/mime.php 2020-07-11 06:12:50 UTC (rev 14869) +++ trunk/squirrelmail/functions/mime.php 2020-07-11 07:08:51 UTC (rev 14870) @@ -648,8 +648,14 @@ $this_attachment['ContentType'] = sm_encode_html_special_chars($type0 .'/'. $type1); $this_attachment['OtherLinks'] = array(); foreach ($links as $val) { - if ($val['text']==_("Download") || $val['text'] == _("View")) + if ($val['text']==_("Download")) { + $this_attachment['DownloadHREF'] = $val['href']; continue; + } + if ($val['text']==_("View")) { + $this_attachment['ViewHREF'] = $val['href']; + continue; + } if (empty($val['text']) && empty($val['extra'])) continue; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-07-11 06:12:51
|
Revision: 14869 http://sourceforge.net/p/squirrelmail/code/14869 Author: pdontthink Date: 2020-07-11 06:12:50 +0000 (Sat, 11 Jul 2020) Log Message: ----------- Fix previously incomplete commit Modified Paths: -------------- trunk/squirrelmail/functions/mime.php Modified: trunk/squirrelmail/functions/mime.php =================================================================== --- trunk/squirrelmail/functions/mime.php 2020-07-11 05:05:30 UTC (rev 14868) +++ trunk/squirrelmail/functions/mime.php 2020-07-11 06:12:50 UTC (rev 14869) @@ -599,7 +599,7 @@ arguments themselves. */ $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent, &$defaultlink, &$display_filename, &$where, &$what, - $type0, $temp1); + &$type0, &$type1); do_hook("attachment $type0/$type1", $temp); /* The API for this hook has changed as of 1.5.2 so that all plugin arguments are passed in an array instead of each their own plugin @@ -607,7 +607,8 @@ returning any changes, changes should simply be made to the original arguments themselves. */ $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent, - &$defaultlink, &$display_filename, &$where, &$what); + &$defaultlink, &$display_filename, &$where, &$what, + &$type0, &$type1); // Do not let a generic plugin change the default link if a more // specialized one already did it... if ($defaultlink != $defaultlink_orig) { @@ -621,7 +622,8 @@ returning any changes, changes should simply be made to the original arguments themselves. */ $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent, - &$defaultlink, &$display_filename, &$where, &$what); + &$defaultlink, &$display_filename, &$where, &$what, + &$type0, &$type1); // Do not let a generic plugin change the default link if a more // specialized one already did it... if ($defaultlink != $defaultlink_orig) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-07-11 05:05:32
|
Revision: 14868 http://sourceforge.net/p/squirrelmail/code/14868 Author: pdontthink Date: 2020-07-11 05:05:30 +0000 (Sat, 11 Jul 2020) Log Message: ----------- Add MIME type parameters ("type0", "type1") to the end of the plugin arguments for all attachment hooks Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mime.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2020-07-11 04:31:18 UTC (rev 14867) +++ branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2020-07-11 05:05:30 UTC (rev 14868) @@ -534,13 +534,13 @@ */ $hookresults = do_hook("attachment $type0/$type1", $links, $startMessage, $id, $urlMailbox, $ent, $defaultlink, - $display_filename, $where, $what); + $display_filename, $where, $what, $type0, $type1); $hookresults = do_hook("attachment $type0/*", $hookresults[1], $startMessage, $id, $urlMailbox, $ent, $hookresults[6], - $display_filename, $where, $what); + $display_filename, $where, $what, $type0, $type1); $hookresults = do_hook("attachment */*", $hookresults[1], $startMessage, $id, $urlMailbox, $ent, $hookresults[6], - $display_filename, $where, $what); + $display_filename, $where, $what, $type0, $type1); $links = $hookresults[1]; $defaultlink = $hookresults[6]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-07-11 04:31:19
|
Revision: 14867 http://sourceforge.net/p/squirrelmail/code/14867 Author: pdontthink Date: 2020-07-11 04:31:18 +0000 (Sat, 11 Jul 2020) Log Message: ----------- Add MIME type parameters ("type0", "type1") to the end of the plugin arguments for all attachment hooks Modified Paths: -------------- trunk/squirrelmail/functions/mime.php Modified: trunk/squirrelmail/functions/mime.php =================================================================== --- trunk/squirrelmail/functions/mime.php 2020-07-11 04:14:56 UTC (rev 14866) +++ trunk/squirrelmail/functions/mime.php 2020-07-11 04:31:18 UTC (rev 14867) @@ -598,7 +598,8 @@ returning any changes, changes should simply be made to the original arguments themselves. */ $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent, - &$defaultlink, &$display_filename, &$where, &$what); + &$defaultlink, &$display_filename, &$where, &$what, + $type0, $temp1); do_hook("attachment $type0/$type1", $temp); /* The API for this hook has changed as of 1.5.2 so that all plugin arguments are passed in an array instead of each their own plugin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-07-11 04:15:11
|
Revision: 14866 http://sourceforge.net/p/squirrelmail/code/14866 Author: pdontthink Date: 2020-07-11 04:14:56 +0000 (Sat, 11 Jul 2020) Log Message: ----------- Remove needless code Modified Paths: -------------- trunk/squirrelmail/functions/attachment_common.php Modified: trunk/squirrelmail/functions/attachment_common.php =================================================================== --- trunk/squirrelmail/functions/attachment_common.php 2020-07-11 04:13:53 UTC (rev 14865) +++ trunk/squirrelmail/functions/attachment_common.php 2020-07-11 04:14:56 UTC (rev 14866) @@ -269,7 +269,6 @@ $Ext = ''; if (is_array($Regs) && isset($Regs[1])) { - $Ext = $Regs[1]; $Ext = strtolower($Regs[1]); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pdo...@us...> - 2020-07-11 04:13:54
|
Revision: 14865 http://sourceforge.net/p/squirrelmail/code/14865 Author: pdontthink Date: 2020-07-11 04:13:53 +0000 (Sat, 11 Jul 2020) Log Message: ----------- Remove needless code Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/attachment_common.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/attachment_common.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/attachment_common.php 2020-05-25 05:04:52 UTC (rev 14864) +++ branches/SM-1_4-STABLE/squirrelmail/functions/attachment_common.php 2020-07-11 04:13:53 UTC (rev 14865) @@ -235,7 +235,6 @@ $Ext = ''; if (is_array($Regs) && isset($Regs[1])) { - $Ext = $Regs[1]; $Ext = strtolower($Regs[1]); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Paul L. <pa...@sq...> - 2020-05-25 05:22:32
|
James, SquirrelMail is not a service provider. SquirrelMail is webmail software that anyone can download and install, and your service provider has done just that. You'll need to contact them to resolve your issue. We are not affiliated with your service provider. See: http://squirrelmail.org/support/enduser.php If you have administrative access to your mail system and are looking for a consultant to help resolve a problem, I am available in that capacity, but usually, you just need to contact your provider and they can fix the issue. Good luck, Paul -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donate_paul_lesniewski.php On Sun, May 24, 2020 10:19 pm, JAMES sinclaire wrote: > hello , is it possible to recover a password from your email account > please? ind...@sq... > > On Sat, May 23, 2020 at 3:05 PM Paul Lesniewski <pa...@sq...> > wrote: > >> Barbara, >> >> You'll need to go here to unsubscribe yourself: >> >> https://sourceforge.net/projects/squirrelmail/lists/squirrelmail-cvs >> >> On Sat, May 23, 2020 6:58 pm, Barbara Thompson wrote: >> > I don't know what this is. >> > >> > --- >> > (¯`v´¯) >> > `*.¸.*´ Barbara >> > ¸.•´¸.•*¨) ¸.•*¨) >> > (¸.•´ (¸.•´ .•´ ¸¸.•¨¯`• >> > >> > On 2020-05-23 11:54, pdontthink--- via squirrelmail-cvs wrote: >> >> Revision: 14860 >> >> http://sourceforge.net/p/squirrelmail/code/14860 >> >> Author: pdontthink >> >> Date: 2020-05-23 18:54:31 +0000 (Sat, 23 May 2020) >> >> Log Message: >> >> ----------- >> >> Also fix printable page >> >> >> >> Modified Paths: >> >> -------------- >> >> branches/SM-1_4-STABLE/squirrelmail/functions/mime.php >> >> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php >> >> >> >> Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mime.php >> >> =================================================================== >> >> --- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php >> 2020-05-23 >> >> 18:46:03 UTC (rev 14859) >> >> +++ branches/SM-1_4-STABLE/squirrelmail/functions/mime.php >> 2020-05-23 >> >> 18:54:31 UTC (rev 14860) >> >> @@ -546,7 +546,7 @@ >> >> $defaultlink = $hookresults[6]; >> >> >> >> // base64 encoded file sizes are misleading, so approximate >> >> real size >> >> - if (!empty($header->encoding) && $header->encoding == >> >> 'base64') >> >> + if (!empty($header->encoding) && >> >> strtolower($header->encoding) == 'base64') >> >> $size = $header->size / 4 * 3; >> >> else >> >> $size = $header->size; >> >> >> >> Modified: >> >> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php >> >> =================================================================== >> >> --- >> >> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php >> 2020-05-23 >> >> 18:46:03 UTC (rev 14859) >> >> +++ >> >> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php >> 2020-05-23 >> >> 18:54:31 UTC (rev 14860) >> >> @@ -274,11 +274,17 @@ >> >> >> >> $display_filename = $filename; >> >> >> >> + // base64 encoded file sizes are misleading, so approximate >> >> real size >> >> + if (!empty($header->encoding) && >> >> strtolower($header->encoding) == 'base64') >> >> + $size = $header->size / 4 * 3; >> >> + else >> >> + $size = $header->size; >> >> + >> >> // TODO: maybe make it nicer? >> >> $attachments .= '<table cellpadding="0" cellspacing="0" >> >> border="1"><tr><th >> >> colspan="2">'.decodeHeader($display_filename).'</th></tr>' . >> >> '<tr border="0">'. >> >> html_tag( 'td',_("Size:"), 'right') . >> >> - html_tag( 'td',show_readable_size($header->size), >> 'left') >> >> . >> >> + html_tag( 'td',show_readable_size($size), 'left') . >> >> '</tr><tr>' . >> >> html_tag( 'td',_("Type:"), 'right') . >> >> html_tag( >> >> >> 'td',sm_encode_html_special_chars($type0).'/'.sm_encode_html_special_chars($type1), >> >> 'left') . >> >> >> >> This was sent by the SourceForge.net collaborative development >> >> platform, the world's largest Open Source development site. >> >> >> >> >> >> >> >> ----- >> >> squirrelmail-cvs mailing list >> >> List address: squ...@li... >> >> List info (subscribe/unsubscribe/change options): >> >> https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs >> >> Repository: http://squirrelmail.org/svn >> > >> > >> > ----- >> > squirrelmail-cvs mailing list >> > List address: squ...@li... >> > List info (subscribe/unsubscribe/change options): >> > https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs >> > Repository: http://squirrelmail.org/svn >> >> >> >> >> ----- >> squirrelmail-cvs mailing list >> List address: squ...@li... >> List info (subscribe/unsubscribe/change options): >> https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs >> Repository: http://squirrelmail.org/svn > |
From: <pdo...@us...> - 2020-05-25 05:04:53
|
Revision: 14864 http://sourceforge.net/p/squirrelmail/code/14864 Author: pdontthink Date: 2020-05-25 05:04:52 +0000 (Mon, 25 May 2020) Log Message: ----------- Fix overlooked default parameter value Modified Paths: -------------- trunk/squirrelmail/functions/strings.php Modified: trunk/squirrelmail/functions/strings.php =================================================================== --- trunk/squirrelmail/functions/strings.php 2020-05-23 19:42:53 UTC (rev 14863) +++ trunk/squirrelmail/functions/strings.php 2020-05-25 05:04:52 UTC (rev 14864) @@ -661,7 +661,7 @@ * @since 1.0 * */ -function show_readable_size($bytes, $filesize_divisor) { +function show_readable_size($bytes, $filesize_divisor=1024) { $bytes /= $filesize_divisor; $type = _("KiB"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: JAMES s. <aty...@gm...> - 2020-05-24 22:19:43
|
hello , is it possible to recover a password from your email account please? ind...@sq... On Sat, May 23, 2020 at 3:05 PM Paul Lesniewski <pa...@sq...> wrote: > Barbara, > > You'll need to go here to unsubscribe yourself: > > https://sourceforge.net/projects/squirrelmail/lists/squirrelmail-cvs > > On Sat, May 23, 2020 6:58 pm, Barbara Thompson wrote: > > I don't know what this is. > > > > --- > > (¯`v´¯) > > `*.¸.*´ Barbara > > ¸.•´¸.•*¨) ¸.•*¨) > > (¸.•´ (¸.•´ .•´ ¸¸.•¨¯`• > > > > On 2020-05-23 11:54, pdontthink--- via squirrelmail-cvs wrote: > >> Revision: 14860 > >> http://sourceforge.net/p/squirrelmail/code/14860 > >> Author: pdontthink > >> Date: 2020-05-23 18:54:31 +0000 (Sat, 23 May 2020) > >> Log Message: > >> ----------- > >> Also fix printable page > >> > >> Modified Paths: > >> -------------- > >> branches/SM-1_4-STABLE/squirrelmail/functions/mime.php > >> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php > >> > >> Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mime.php > >> =================================================================== > >> --- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2020-05-23 > >> 18:46:03 UTC (rev 14859) > >> +++ branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2020-05-23 > >> 18:54:31 UTC (rev 14860) > >> @@ -546,7 +546,7 @@ > >> $defaultlink = $hookresults[6]; > >> > >> // base64 encoded file sizes are misleading, so approximate > >> real size > >> - if (!empty($header->encoding) && $header->encoding == > >> 'base64') > >> + if (!empty($header->encoding) && > >> strtolower($header->encoding) == 'base64') > >> $size = $header->size / 4 * 3; > >> else > >> $size = $header->size; > >> > >> Modified: > >> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php > >> =================================================================== > >> --- > >> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php > 2020-05-23 > >> 18:46:03 UTC (rev 14859) > >> +++ > >> branches/SM-1_4-STABLE/squirrelmail/src/printer_friendly_bottom.php > 2020-05-23 > >> 18:54:31 UTC (rev 14860) > >> @@ -274,11 +274,17 @@ > >> > >> $display_filename = $filename; > >> > >> + // base64 encoded file sizes are misleading, so approximate > >> real size > >> + if (!empty($header->encoding) && > >> strtolower($header->encoding) == 'base64') > >> + $size = $header->size / 4 * 3; > >> + else > >> + $size = $header->size; > >> + > >> // TODO: maybe make it nicer? > >> $attachments .= '<table cellpadding="0" cellspacing="0" > >> border="1"><tr><th > >> colspan="2">'.decodeHeader($display_filename).'</th></tr>' . > >> '<tr border="0">'. > >> html_tag( 'td',_("Size:"), 'right') . > >> - html_tag( 'td',show_readable_size($header->size), 'left') > >> . > >> + html_tag( 'td',show_readable_size($size), 'left') . > >> '</tr><tr>' . > >> html_tag( 'td',_("Type:"), 'right') . > >> html_tag( > >> > 'td',sm_encode_html_special_chars($type0).'/'.sm_encode_html_special_chars($type1), > >> 'left') . > >> > >> This was sent by the SourceForge.net collaborative development > >> platform, the world's largest Open Source development site. > >> > >> > >> > >> ----- > >> squirrelmail-cvs mailing list > >> List address: squ...@li... > >> List info (subscribe/unsubscribe/change options): > >> https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs > >> Repository: http://squirrelmail.org/svn > > > > > > ----- > > squirrelmail-cvs mailing list > > List address: squ...@li... > > List info (subscribe/unsubscribe/change options): > > https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs > > Repository: http://squirrelmail.org/svn > > > > > ----- > squirrelmail-cvs mailing list > List address: squ...@li... > List info (subscribe/unsubscribe/change options): > https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs > Repository: http://squirrelmail.org/svn |
From: JAMES s. <aty...@gm...> - 2020-05-24 22:18:35
|
can i recover the password to my email account on your website? |