Changeset 7673 for trunk/expressoMail1_2
- Timestamp:
- 12/18/12 16:15:29 (11 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.db_functions.inc.php
r7655 r7673 181 181 182 182 function getAddrs($array_addrs) { 183 $array_addrs_final = array(); 184 185 for($i = 0; $i < count($array_addrs); ++$i){ 183 $array_addrs_final = array(); 184 185 $array_addrs_count = count($array_addrs); 186 for($i = 0; $i < $array_addrs_count; ++$i){ 186 187 $j = count($array_addrs_final); 187 188 -
trunk/expressoMail1_2/inc/class.exporteml.inc.php
r7655 r7673 123 123 if (is_array($files)) 124 124 { 125 for ($i=0; $i < count($files); ++$i) 125 $files_count = count($files); 126 for ($i=0; $i < $files_count; ++$i) 126 127 { 127 128 $files[$i] = escapeshellarg($files[$i]); … … 315 316 316 317 //cria um .zip com as mensagens selecionadas 317 for($i = 0; $i < count($msg_number); ++$i) 318 $msg_number_count = count($msg_number); 319 for($i = 0; $i < $msg_number_count; ++$i) 318 320 { 319 321 $header = $this-> getHeader($msg_number[$i]); … … 353 355 }else{ 354 356 $array_names_keys = array_keys($sorted_msgs); 355 356 for($i = 0; $i < count($array_names_keys); ++$i){ 357 358 $array_names_keys_count = count($array_names_keys); 359 for($i = 0; $i < $array_names_keys_count; ++$i){ 357 360 $this->folder = mb_convert_encoding($array_names_keys[$i], "UTF7-IMAP","UTF-8, ISO-8859-1, UTF7-IMAP"); 358 361 $msg_number = explode(',', $sorted_msgs[$array_names_keys[$i]]); 359 362 $tempDir = $this->tempDir; 360 363 $this->connectImap(); 361 362 for($j = 0; $j < count($msg_number); ++$j) 364 365 $msg_number_count = count($msg_number); 366 for($j = 0; $j < $msg_number_count; ++$j) 363 367 { 364 368 $header = $this-> getHeader($msg_number[$j]); … … 474 478 } 475 479 476 for($i = 0; $i < count($array_ids); ++$i) 480 $array_ids_count = count($array_ids); 481 for($i = 0; $i < $array_ids_count; ++$i) 477 482 { 478 483 $header = $this-> getHeader($array_ids[$i]); … … 796 801 797 802 $fileNames = Array(); 798 799 for ($i = 0; $i < count($attachments); ++$i)803 $attachments_count = count($attachments); 804 for ($i = 0; $i < $attachments_count; ++$i) 800 805 { 801 806 $attachments[$i]['name'] = $this->remove_accents($attachments[$i]['name']); … … 803 808 } 804 809 805 for ($i = 0; $i < count($attachments); ++$i) 810 $attachments_count = count($attachments); 811 for ($i = 0; $i < $attachments_count; ++$i) 806 812 { 807 813 $fileName = $attachments[$i]['name']; … … 811 817 if (count($result) > 1) 812 818 { 813 for ($j = 1; $j < count($result); ++$j) 819 $result_count = count($result); 820 for ($j = 1; $j < $result_count; ++$j) 814 821 { 815 822 $replacement = '('.$j.')$0'; -
trunk/expressoMail1_2/inc/class.functions.inc.php
r7655 r7673 126 126 $includeFiles[0] = null; 127 127 // End Bug fixed. 128 } 129 for($i = 0; $i < count($files); ++$i) { 128 } 129 $files_count = count($files); 130 for($i = 0; $i < $files_count; ++$i) { 130 131 if(count(explode('.js',$files[$i])) > 1) { 131 132 if($includeFiles && array_search(trim($files[$i]),$includeFiles)){ -
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r7655 r7673 245 245 array('filter' => $filter, 'criteria' => array('deepness' => '2')) 246 246 ); 247 for($i=0; $i<count($sort_array_msg); ++$i){ 247 $sort_array_msg_count = count($sort_array_msg); 248 for($i=0; $i<$sort_array_msg_count; ++$i){ 248 249 if(!isset($return[$i]['msg_number'])) 249 250 continue; … … 518 519 $elements = imap_mime_header_decode($string); 519 520 520 for($i = 0;$i < count($elements);++$i) 521 $elements_count = count($elements); 522 for($i = 0;$i < $elements_count;++$i) 521 523 { 522 524 $charset = strtolower($elements[$i]->charset); … … 785 787 $return = array(); 786 788 $array_names_keys = array_keys($sorted_msgs); 787 788 for($i = 0; $i < count($sorted_msgs); ++$i){ 789 790 $sorted_msgs_count = count($sorted_msgs); 791 for($i = 0; $i < $sorted_msgs_count; ++$i){ 789 792 790 793 $new_params = array(); … … 2559 2562 }else{ 2560 2563 $child = $base_path.$this->imap_delimiter; 2561 for($i =0; $i < count($test); ++$i){ 2564 $test_count = count($test); 2565 for($i =0; $i < $test_count; ++$i){ 2562 2566 $child .= ($test[$i] ? $test[$i] : $this->functions->getLang("New Folder")); 2563 2567 $namebox = mb_convert_encoding($child, "UTF7-IMAP", "UTF-8"); … … 3654 3658 return $returns; 3655 3659 }else{ 3656 for($i = 0; $i < count($array_names_keys); ++$i){ 3660 $array_names_keys_count = count($array_names_keys); 3661 for($i = 0; $i < $array_names_keys_count; ++$i){ 3657 3662 $param['folder'] = $array_names_keys[$i]; 3658 3663 $param['msgs_to_set'] = $sorted_msgs[$array_names_keys[$i]]; -
trunk/expressoMail1_2/inc/class.message_components.inc.php
r7655 r7673 107 107 } 108 108 109 for($p = 0, $i = 1; $p < count($parts); ++$n, ++$p, ++$i) 109 $parts_count = count($parts); 110 for($p = 0, $i = 1; $p < $parts_count; ++$n, ++$p, ++$i) 110 111 { 111 112 // Skip the following... -
trunk/expressoMail1_2/inc/class.phpmailer.php
r7655 r7673 472 472 function MailSend($header, $body) { 473 473 $to = ""; 474 for($i = 0; $i < count($this->to); ++$i) 474 $to_count = count($this->to); 475 for($i = 0; $i < $to_count; ++$i) 475 476 { 476 477 if($i != 0) { $to .= ", "; } … … 533 534 534 535 // Attempt to send attach all recipients 535 for($i = 0; $i < count($this->to); ++$i) 536 $to_count = count($this->to); 537 for($i = 0; $i < $to_count; ++$i) 536 538 { 537 539 if(!$this->smtp->Recipient($this->to[$i][0])) 538 540 $bad_rcpt[] = $this->to[$i][0]; 539 541 } 540 for($i = 0; $i < count($this->cc); ++$i) 542 $cc_count = count($this->cc); 543 for($i = 0; $i < $cc_count; ++$i) 541 544 { 542 545 if(!$this->smtp->Recipient($this->cc[$i][0])) 543 546 $bad_rcpt[] = $this->cc[$i][0]; 544 547 } 545 for($i = 0; $i < count($this->bcc); ++$i) 548 $bcc_count = count($this->bcc); 549 for($i = 0; $i < $bcc_count; ++$i) 546 550 { 547 551 if(!$this->smtp->Recipient($this->bcc[$i][0])) … … 563 567 //Postfix version 2.1.5-9 564 568 $array_error = explode(":", $this->smtp->error['smtp_msg']); 565 566 for($i = 0; $i < count($bad_rcpt); ++$i) 569 570 $bad_rcpt_count = count($bad_rcpt); 571 for($i = 0; $i < $bad_rcpt_count; ++$i) 567 572 { 568 573 if($i != 0) { $error .= ", "; } … … 826 831 if(count($addr) > 1) 827 832 { 828 for($i = 1; $i < count($addr); ++$i) 833 $addr_count = count($addr); 834 for($i = 1; $i < $addr_count; ++$i) 829 835 $addr_str .= ", " . $this->AddrFormat($addr[$i]); 830 836 } … … 867 873 $line = explode($this->LE, $message); 868 874 $message = ""; 869 for ($i=0 ;$i < count($line); ++$i) 875 $line_count = count($line); 876 for ($i=0 ;$i < $line_count; ++$i) 870 877 { 871 878 $line_part = explode(" ", $line[$i]); 872 879 $buf = ""; 873 for ($e = 0; $e<count($line_part); $e++) 880 $line_part_count = count($line_part); 881 for ($e = 0; $e<$line_part_count; $e++) 874 882 { 875 883 $word = $line_part[$e]; … … 1031 1039 1032 1040 // Add custom headers 1033 for($index = 0; $index < count($this->CustomHeader); ++$index) 1041 $CustomHeader_count = count($this->CustomHeader); 1042 for($index = 0; $index < $CustomHeader_count; ++$index) 1034 1043 { 1035 1044 $result .= $this->HeaderLine(trim($this->CustomHeader[$index][0]), … … 1265 1274 1266 1275 // Add all attachments 1267 for($i = 0; $i < count($this->attachment); ++$i) 1276 $attachment_count = count($this->attachment); 1277 for($i = 0; $i < $attachment_count; ++$i) 1268 1278 { 1269 1279 // Check for string attachment … … 1540 1550 function InlineImageExists() { 1541 1551 $result = false; 1542 for($i = 0; $i < count($this->attachment); ++$i) 1552 $attachment_count = count($this->attachment); 1553 for($i = 0; $i < $attachment_count; ++$i) 1543 1554 { 1544 1555 if($this->attachment[$i][6] == "inline") -
trunk/expressoMail1_2/login_offline.php
r7655 r7673 195 195 $obj_organization = CreateObject('phpgwapi.sector_search_ldap'); 196 196 $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 197 198 for ($i=0; $i<count($organizations); ++$i) 197 198 $organizations_count = count($organizations); 199 for ($i=0; $i<$organizations_count; ++$i) 199 200 { 200 201 $tmp_array[strtolower($organizations[$i])] = $organizations[$i];
Note: See TracChangeset
for help on using the changeset viewer.