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.phpmailer.php

    r5509 r7655  
    472472    function MailSend($header, $body) { 
    473473        $to = ""; 
    474         for($i = 0; $i < count($this->to); $i++) 
     474        for($i = 0; $i < count($this->to); ++$i) 
    475475        { 
    476476            if($i != 0) { $to .= ", "; } 
     
    533533 
    534534        // Attempt to send attach all recipients 
    535         for($i = 0; $i < count($this->to); $i++) 
     535        for($i = 0; $i < count($this->to); ++$i) 
    536536        { 
    537537                if(!$this->smtp->Recipient($this->to[$i][0])) 
    538538                        $bad_rcpt[] = $this->to[$i][0]; 
    539539        } 
    540         for($i = 0; $i < count($this->cc); $i++) 
     540        for($i = 0; $i < count($this->cc); ++$i) 
    541541        { 
    542542                if(!$this->smtp->Recipient($this->cc[$i][0])) 
    543543                        $bad_rcpt[] = $this->cc[$i][0]; 
    544544        } 
    545         for($i = 0; $i < count($this->bcc); $i++) 
     545        for($i = 0; $i < count($this->bcc); ++$i) 
    546546        { 
    547547                if(!$this->smtp->Recipient($this->bcc[$i][0])) 
     
    564564            $array_error = explode(":", $this->smtp->error['smtp_msg']); 
    565565             
    566             for($i = 0; $i < count($bad_rcpt); $i++) 
     566            for($i = 0; $i < count($bad_rcpt); ++$i) 
    567567            { 
    568568                if($i != 0) { $error .= ", "; } 
     
    765765                $connection = true; 
    766766            } 
    767             $index++; 
     767            ++$index; 
    768768        } 
    769769        if(!$connection) 
     
    826826        if(count($addr) > 1) 
    827827        { 
    828             for($i = 1; $i < count($addr); $i++) 
     828            for($i = 1; $i < count($addr); ++$i) 
    829829                $addr_str .= ", " . $this->AddrFormat($addr[$i]); 
    830830        } 
     
    867867        $line = explode($this->LE, $message); 
    868868        $message = ""; 
    869         for ($i=0 ;$i < count($line); $i++) 
     869        for ($i=0 ;$i < count($line); ++$i) 
    870870        { 
    871871          $line_part = explode(" ", $line[$i]); 
     
    10311031 
    10321032        // Add custom headers 
    1033         for($index = 0; $index < count($this->CustomHeader); $index++) 
     1033        for($index = 0; $index < count($this->CustomHeader); ++$index) 
    10341034        { 
    10351035            $result .= $this->HeaderLine(trim($this->CustomHeader[$index][0]),  
     
    12651265 
    12661266        // Add all attachments 
    1267         for($i = 0; $i < count($this->attachment); $i++) 
     1267        for($i = 0; $i < count($this->attachment); ++$i) 
    12681268        { 
    12691269            // Check for string attachment 
     
    15401540    function InlineImageExists() { 
    15411541        $result = false; 
    1542         for($i = 0; $i < count($this->attachment); $i++) 
     1542        for($i = 0; $i < count($this->attachment); ++$i) 
    15431543        { 
    15441544            if($this->attachment[$i][6] == "inline") 
Note: See TracChangeset for help on using the changeset viewer.