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/jabberit_messenger/jmessenger/inc/class.LdapIM.inc.php

    r3530 r7655  
    125125                        $confHosts      = $this->hostsJabber; 
    126126                         
    127                         for($i = 0; $i < count($confHosts); $i++ ) 
     127                        for($i = 0; $i < count($confHosts); ++$i ) 
    128128                        { 
    129129                                if( $pData['serverLdap'] == $confHosts[$i]['serverLdap'] ) 
     
    197197                                $count = count($members[$servers]); 
    198198                                 
    199                                 for( $i = 0; $i < $count; $i++ ) 
     199                                for( $i = 0; $i < $count; ++$i ) 
    200200                                { 
    201201                                        if ( ! $this->getMemberUid($groups, $members[$servers][$i]['uid'] ) ) 
     
    210210                                $confHosts      = $this->hostsJabber; 
    211211                         
    212                                 for($i = 0; $i < count($confHosts); $i++ ) 
     212                                for($i = 0; $i < count($confHosts); ++$i ) 
    213213                                { 
    214214                                        if( $this->ldap ) 
     
    279279                        $confHosts      = $this->hostsJabber; 
    280280                 
    281                         for($i = 0; $i < count($confHosts); $i++ ) 
     281                        for($i = 0; $i < count($confHosts); ++$i ) 
    282282                        { 
    283283                                if( $this->ldap ) 
     
    322322                        $confHosts      = $this->hostsJabber; 
    323323                         
    324                         for($i = 0; $i < count($confHosts); $i++ ) 
     324                        for($i = 0; $i < count($confHosts); ++$i ) 
    325325                        { 
    326326                                if( $pLdap_host == $confHosts[$i]['serverLdap'] ) 
     
    344344                        $info = ldap_get_entries($this->ldap, $search); 
    345345                 
    346                         for ($i=0; $i<$info["count"]; $i++) 
     346                        for ($i=0; $i<$info["count"]; ++$i) 
    347347                        { 
    348348                                $a_sectors[] = $info[$i]['dn']; 
     
    375375            else  
    376376            { 
    377                                 for( $i = 0; $i < $level; $i++) 
     377                                for( $i = 0; $i < $level; ++$i) 
    378378                                        $display .= '---'; 
    379379            } 
     
    399399                        $confHosts      = $this->hostsJabber;    
    400400 
    401                         for( $i = 0; $i < count($confHosts); $i++ ) 
     401                        for( $i = 0; $i < count($confHosts); ++$i ) 
    402402                        { 
    403403                                if( trim($host) === trim($confHosts[$i]['jabberName']) ) 
     
    427427                        $entry          = ldap_get_entries( $this->ldap, $search ); 
    428428                         
    429                         for( $i = 0 ; $i < $entry['count']; $i++ ) 
     429                        for( $i = 0 ; $i < $entry['count']; ++$i ) 
    430430                        { 
    431431                                if( $entry[$i]['jpegphoto'][0] && $entry[$i]['phpgwaccountvisible'][0] != '-1' ) 
     
    454454                $conn   = "";            
    455455 
    456                 for( $i = 0; $i < count($confHosts); $i++ ) 
     456                for( $i = 0; $i < count($confHosts); ++$i ) 
    457457                { 
    458458                        if( $pLdap && $pLdap == $confHosts[$i]['serverLdap'] ) 
     
    513513                $j              = 0; 
    514514                 
    515                 for( $i = 0 ; $i < $entry['count']; $i++ ) 
     515                for( $i = 0 ; $i < $entry['count']; ++$i ) 
    516516                { 
    517517                        if ( $entry[$i]['phpgwaccountvisible'][0] != '-1' ) 
Note: See TracChangeset for help on using the changeset viewer.