Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.exporteml.inc.php

    r7414 r7655  
    123123                    if (is_array($files)) 
    124124                    { 
    125                         for ($i=0; $i < count($files); $i++) 
     125                        for ($i=0; $i < count($files); ++$i) 
    126126                        { 
    127127                            $files[$i] = escapeshellarg($files[$i]); 
     
    315315                         
    316316                        //cria um .zip com as mensagens selecionadas 
    317                         for($i = 0; $i < count($msg_number); $i++)  
     317                        for($i = 0; $i < count($msg_number); ++$i) 
    318318                        { 
    319319                                $header         = $this-> getHeader($msg_number[$i]);                                                                                    
     
    354354                        $array_names_keys = array_keys($sorted_msgs); 
    355355                         
    356                         for($i = 0; $i < count($array_names_keys); $i++){  
     356                        for($i = 0; $i < count($array_names_keys); ++$i){ 
    357357                                $this->folder = mb_convert_encoding($array_names_keys[$i], "UTF7-IMAP","UTF-8, ISO-8859-1, UTF7-IMAP"); 
    358358                                $msg_number = explode(',', $sorted_msgs[$array_names_keys[$i]]); 
     
    360360                                $this->connectImap(); 
    361361                                 
    362                                 for($j = 0; $j < count($msg_number); $j++)  
     362                                for($j = 0; $j < count($msg_number); ++$j) 
    363363                                { 
    364364                                        $header         = $this-> getHeader($msg_number[$j]);                                                                                    
     
    474474                        } 
    475475 
    476                         for($i = 0; $i < count($array_ids); $i++)  
     476                        for($i = 0; $i < count($array_ids); ++$i) 
    477477                        { 
    478478                                $header         = $this-> getHeader($array_ids[$i]);                                                                                    
     
    797797                $fileNames = Array(); 
    798798                         
    799                 for ($i = 0; $i < count($attachments); $i++) 
     799                for ($i = 0; $i < count($attachments); ++$i) 
    800800                { 
    801801                   $attachments[$i]['name'] = $this->remove_accents($attachments[$i]['name']); 
     
    803803                } 
    804804 
    805                 for ($i = 0; $i < count($attachments); $i++) 
     805                for ($i = 0; $i < count($attachments); ++$i) 
    806806                { 
    807807                        $fileName = $attachments[$i]['name']; 
     
    811811                        if (count($result) > 1) 
    812812                        { 
    813                             for ($j = 1; $j < count($result); $j++) 
     813                            for ($j = 1; $j < count($result); ++$j) 
    814814                            { 
    815815                                $replacement = '('.$j.')$0'; 
Note: See TracChangeset for help on using the changeset viewer.