Changeset 7655 for trunk/preferences/inc


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/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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; 
Note: See TracChangeset for help on using the changeset viewer.