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/inc/class.ldap_im.inc.php

    r3530 r7655  
    126126                        $confHosts      = $this->hostsJabber; 
    127127                         
    128                         for($i = 0; $i < count($confHosts); $i++ ) 
     128                        for($i = 0; $i < count($confHosts); ++$i ) 
    129129                        { 
    130130                                if( $pData['serverLdap'] == $confHosts[$i]['serverLdap'] ) 
     
    198198                                $count = count($members[$servers]); 
    199199                                 
    200                                 for( $i = 0; $i < $count; $i++ ) 
     200                                for( $i = 0; $i < $count; ++$i ) 
    201201                                { 
    202202                                        if ( ! $this->getMemberUid($groups, $members[$servers][$i]['uid'] ) ) 
     
    211211                                $confHosts      = $this->hostsJabber; 
    212212                         
    213                                 for($i = 0; $i < count($confHosts); $i++ ) 
     213                                for($i = 0; $i < count($confHosts); ++$i ) 
    214214                                { 
    215215                                        if( $this->ldap ) 
     
    227227                                                $count = count($members[$servers]); 
    228228                                                 
    229                                                 for( $i = 0; $i < $count; $i++ ) 
     229                                                for( $i = 0; $i < $count; ++$i ) 
    230230                                                { 
    231231                                                        if ( ! $this->getMemberUid($groups, $members[$servers][$i]['uid'] ) ) 
     
    280280                        $confHosts      = $this->hostsJabber; 
    281281                 
    282                         for($i = 0; $i < count($confHosts); $i++ ) 
     282                        for($i = 0; $i < count($confHosts); ++$i ) 
    283283                        { 
    284284                                if( $this->ldap ) 
     
    323323                        $confHosts      = $this->hostsJabber; 
    324324                         
    325                         for($i = 0; $i < count($confHosts); $i++ ) 
     325                        for($i = 0; $i < count($confHosts); ++$i ) 
    326326                        { 
    327327                                if( $pLdap_host == $confHosts[$i]['serverLdap'] ) 
     
    345345                        $info = ldap_get_entries($this->ldap, $search); 
    346346                 
    347                         for ($i=0; $i<$info["count"]; $i++) 
     347                        for ($i=0; $i<$info["count"]; ++$i) 
    348348                        { 
    349349                                $a_sectors[] = $info[$i]['dn']; 
     
    376376            else  
    377377            { 
    378                                 for( $i = 0; $i < $level; $i++) 
     378                                for( $i = 0; $i < $level; ++$i) 
    379379                                        $display .= '---'; 
    380380            } 
     
    398398                $conn   = "";            
    399399 
    400                 for( $i = 0; $i < count($confHosts); $i++ ) 
     400                for( $i = 0; $i < count($confHosts); ++$i ) 
    401401                { 
    402402                        if( $pLdap && $pLdap == $confHosts[$i]['serverLdap'] ) 
     
    456456                $j              = 0; 
    457457                 
    458                 for( $i = 0 ; $i < $entry['count']; $i++ ) 
     458                for( $i = 0 ; $i < $entry['count']; ++$i ) 
    459459                { 
    460460                        if ( $entry[$i]['phpgwaccountvisible'][0] != '-1' ) 
Note: See TracChangeset for help on using the changeset viewer.