Changeset 7655 for trunk/preferences


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/preferences
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/preferences/handlecertificate.php

    r4127 r7655  
    140140            { 
    141141                    $var_tokens = ''; 
    142                     for($ii = 1; $ii < 11; $ii++) 
     142                    for($ii = 1; $ii < 11; ++$ii) 
    143143                    { 
    144144                            if($GLOBALS['phpgw_info']['server']['test_token' . $ii . '1']) 
  • trunk/preferences/inc/class.uiaclprefs.inc.php

    r6057 r7655  
    8888                                { 
    8989                                        $just_owner_array[$cont] = $repository; 
    90                                         $cont++; 
     90                                        ++$cont; 
    9191                                } 
    9292                        } 
     
    113113                                } 
    114114                                 
    115                                 for($i=0;$i<count($to_remove);$i++) { 
     115                                for($i=0;$i<count($to_remove);++$i) { 
    116116                                         
    117117                                        if(!array_key_exists((int)$to_remove[$i],$keys_to_keep)) { 
  • trunk/preferences/inc/class.uicategories.inc.php

    r5129 r7655  
    8383                function cat_data($edata,$data) 
    8484                { 
    85                         for ($j=0;$j<count($edata);$j++) 
     85                        for ($j=0;$j<count($edata);++$j) 
    8686                        { 
    8787                                $td_data .= '<td>' . $data[$edata[$j]] . '</td>' . "\n"; 
     
    169169                        if (is_array($edata)) 
    170170                        { 
    171                                 for($i=0;$i<count($edata);$i++) 
     171                                for($i=0;$i<count($edata);++$i) 
    172172                                { 
    173173                                        $GLOBALS['phpgw']->template->set_var('th_data','<td bgcolor="' . $GLOBALS['phpgw_info']['theme']['th_bg'] . '">' . lang($edata[$i]) . '</td>'); 
     
    182182// -------------------------- end header declaration -------------------------------------- 
    183183 
    184                         for ($i=0;$i<count($cats);$i++) 
     184                        for ($i=0;$i<count($cats);++$i) 
    185185                        { 
    186186                                $this->nextmatchs->template_alternate_row_color($GLOBALS['phpgw']->template); 
     
    375375                        { 
    376376                                $edata = explode(',',$extra); 
    377                                 for($i=0;$i<count($edata);$i++) 
     377                                for($i=0;$i<count($edata);++$i) 
    378378                                { 
    379379                                        $GLOBALS['phpgw']->template->set_var('tr_color',$GLOBALS['phpgw']->nextmatchs->alternate_row_color()); 
     
    506506 
    507507                                $data = unserialize($cats[0]['data']); 
    508                                 for($i=0;$i<count($edata);$i++) 
     508                                for($i=0;$i<count($edata);++$i) 
    509509                                { 
    510510                                        $GLOBALS['phpgw']->template->set_var('td_data','<input name="cat_data[' . $edata[$i] . ']" size="50" value="' . $data[$edata[$i]] . '">'); 
  • trunk/preferences/inc/hook_settings.inc.php

    r143 r7655  
    4848                $format .= 'H:i'; 
    4949        } 
    50         for ($i = -23; $i<24; $i++) 
     50        for ($i = -23; $i<24; ++$i) 
    5151        { 
    5252                $t = time() + $i * 60*60; 
  • trunk/preferences/templates/classic/listUsers.php

    r3601 r7655  
    107107                $sr=ldap_list($ds, $user_context, ("(&(cn=*)(phpgwaccounttype=u))")); 
    108108                $info = ldap_get_entries($ds, $sr); 
    109                 for ($i=0; $i<$info["count"]; $i++) 
     109                for ($i=0; $i<$info["count"]; ++$i) 
    110110                        $users[$uids=$info[$i]["uidnumber"][0]] = Array('name'  =>      $uids=$info[$i]["cn"][0], 'type'        =>      u); 
    111111        } 
  • trunk/preferences/templates/default/changepassword_default.php

    r5928 r7655  
    3939                // Special Letters 
    4040                $speccial_letter = 0; 
    41                 for ($i=0; $i<strlen($n_passwd); $i++) 
     41                for ($i=0; $i<strlen($n_passwd); ++$i) 
    4242                { 
    4343                        $letter = $n_passwd[$i]; 
    4444                        if (!preg_match('/[a-zA-Z]/', $letter ) ) 
    45                                 $speccial_letter++; 
     45                                ++$speccial_letter; 
    4646                } 
    4747                if ($speccial_letter < $GLOBALS['phpgw_info']['server']['num_special_letters_userpass']) 
Note: See TracChangeset for help on using the changeset viewer.