Changeset 7655 for trunk/setup


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

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

Location:
trunk/setup
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup/applications.php

    r6528 r7655  
    327327                                        list($depapp,$depver) = parsedep($setup_info[$resolve]['depends'],False); 
    328328                                $depapp_count = count($depapp); 
    329                                         for ($i=0; $i<$depapp_count; $i++) 
     329                                        for ($i=0; $i<$depapp_count; ++$i) 
    330330                                        { 
    331331                                                echo '<br>' . $depapp[$i] . ': '; 
  • trunk/setup/config.php

    r5781 r7655  
    241241                                        $newvals = explode(' ',$newval); 
    242242                                        $setting = end($newvals); 
    243                                         for($i=0;$i<(count($newvals) - 1); $i++) 
     243                                        for($i=0;$i<(count($newvals) - 1); ++$i) 
    244244                                        { 
    245245                                                $configs[] = $newvals[$i]; 
  • trunk/setup/ldapimport.php

    r328 r7655  
    9090        $tmp = ''; 
    9191 
    92         for($i=0; $i<$info['count']; $i++) 
     92        for($i=0; $i<$info['count']; ++$i) 
    9393        { 
    9494                if(!$phpgw_info['server']['global_denied_users'][$info[$i]['uid'][0]]) 
     
    109109                $tmp = ''; 
    110110 
    111                 for($i=0; $i<$info['count']; $i++) 
     111                for($i=0; $i<$info['count']; ++$i) 
    112112                { 
    113113                        if(!$phpgw_info['server']['global_denied_groups'][$info[$i]['cn'][0]] && 
     
    216216                                                // This is typically an exception to apps for run rights 
    217217                                                //  as a group member. 
    218                                                 for($a=0;$a<count($admins);$a++) 
     218                                                for($a=0;$a<count($admins);++$a) 
    219219                                                { 
    220220                                                        if($admins[$a] == $thisacctlid) 
  • trunk/setup/ldapmodify.php

    r3664 r7655  
    8484 
    8585        $account_info = array( ); 
    86         for ( $i = 0; $i < $info[ 'count' ]; $i++ ) 
     86        for ( $i = 0; $i < $info[ 'count' ]; ++$i ) 
    8787                if ( ! array_key_exists( $info[ $i ][ 'uid' ][ 0 ], $phpgw_info[ 'server' ][ 'global_denied_users' ] ) ) 
    8888                        $account_info[ $info[ $i ][ 'dn' ] ] = $info[ $i ]; 
     
    9797                $tmp = ''; 
    9898 
    99                 for ( $i = 0; $i < $info[ 'count' ]; $i++ ) 
     99                for ( $i = 0; $i < $info[ 'count' ]; ++$i ) 
    100100                        if ( ! array_key_exists( $info[ $i ][ 'cn' ][ 0 ], $phpgw_info[ 'server' ][ 'global_denied_groups' ] ) ) 
    101101                                $group_info[ $info[ $i ][ 'dn' ] ] = $info[ $i ]; 
     
    269269                                                if ( !empty($thisacctid) && !empty($thisacctlid)) 
    270270                                                { 
    271                                                         $users_process++; 
     271                            ++$users_process; 
    272272 
    273273                                                        $add = array( ); 
     
    310310                                                        $acl -> save_repository( ); 
    311311 
    312                                                         $new_uidnumber++; 
     312                            ++$new_uidnumber; 
    313313                                                } 
    314314 
  • trunk/setup/manageheader.php

    r6164 r7655  
    507507                                ); 
    508508 
    509                                 for($i=0; $i<30; $i++) 
     509                                for($i=0; $i<30; ++$i) 
    510510                                { 
    511511                                        $GLOBALS['phpgw_info']['server']['mcrypt_iv'] .= $random_char[rand(1,count($random_char))]; 
  • trunk/setup/sqltoarray.php

    r2 r7655  
    189189                        while(list($key,$table) = @each($tables)) 
    190190                        { 
    191                                 $i++; 
     191                ++$i; 
    192192                                if($i == $tbls) 
    193193                                { 
Note: See TracChangeset for help on using the changeset viewer.