Changeset 7673 for trunk/expressoMail1_2/inc/class.exporteml.inc.php
- Timestamp:
- 12/18/12 16:15:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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';
Note: See TracChangeset
for help on using the changeset viewer.