Changeset 7673
- Timestamp:
- 12/18/12 16:15:29 (10 years ago)
- Location:
- trunk
- Files:
-
- 102 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.html_tables.inc.php
r7655 r7673 142 142 $row = $rows[$rno]; 143 143 144 for($pc=0;$pc<count($row);++$pc) 144 $row_count = count($row); 145 for($pc=0;$pc<$row_count;++$pc) 145 146 { 146 147 $c = $row[$cols[$pc]]; -
trunk/admin/inc/class.solog.inc.php
r7655 r7673 40 40 /* fields from phpgw_log table */ 41 41 $clist = $this->db->metadata('phpgw_log'); 42 for ($i=0; $i<count($clist); ++$i) 42 $clist_count = count($clist); 43 for ($i=0; $i<$clist_count; ++$i) 43 44 { 44 45 $name = $clist[$i]['name']; … … 48 49 /* fields from phpgw_log_msg table */ 49 50 $clist = $this->db->metadata('phpgw_log_msg'); 50 for ($i=0; $i<count($clist); ++$i) 51 $clist_count = count($clist); 52 for ($i=0; $i<$clist_count; ++$i) 51 53 { 52 54 $name = $clist[$i]['name']; … … 66 68 /* Enhance with Columns for phpgw_accounts */ 67 69 $clist = $this->db->metadata('phpgw_accounts'); 68 for ($i=0; $i<count($clist); ++$i) 70 $clist_count = count($clist); 71 for ($i=0; $i<$clist_count; ++$i) 69 72 { 70 73 $name = $clist[$i]['name']; -
trunk/admin/inc/class.uiaccounts.inc.php
r7655 r7673 816 816 @reset($db_perms); 817 817 818 for ($i=0;$i<count($perm_display);++$i) 818 $perm_display_count = count($perm_display); 819 for ($i=0;$i<$perm_display_count;++$i) 819 820 { 820 821 if ($perm_display[$i]['title']) … … 955 956 956 957 $tr_color = $GLOBALS['phpgw_info']['theme']['row_off']; 957 for ($i=0;$i < count($perm_display);++$i) 958 $perm_display_count = count($perm_display); 959 for ($i=0;$i < $perm_display_count;++$i) 958 960 { 959 961 $app = $perm_display[$i][0]; … … 1182 1184 { 1183 1185 $groups_select .= '<option value="' . $value['account_id'] . '"'; 1184 for ($i=0; $i<count($userGroups); ++$i) 1186 $userGroups_count = count($userGroups); 1187 for ($i=0; $i<$userGroups_count; ++$i) 1185 1188 { 1186 1189 /* print "Los1:".$userData["account_id"].$userGroups[$i]['account_id']." : ".$value['account_id']."<br>"; */ -
trunk/admin/inc/class.uilog.inc.php
r7655 r7673 63 63 { 64 64 $c = array(); 65 for ($i=0;$i<count($_cols);++$i) 65 $cols_count = count($_cols); 66 for ($i=0;$i<$cols_count;++$i) 66 67 { 67 68 if (!in_array($i, $_delcol)) -
trunk/calendar/inc/class.bocalendar.inc.php
r7655 r7673 1252 1252 $minparts = min($l_participants); 1253 1253 $part = Array(); 1254 for($i=0;$i<count($parts);++$i) 1254 $parts_count = count($parts); 1255 for($i=0;$i<$parts_count;++$i) 1255 1256 { 1256 1257 if (($accept_type = substr($parts[$i],-1,1)) == '0' || (int)$accept_type > 0) … … 2137 2138 { 2138 2139 $exceptions = explode(',',$exception_str); 2139 for($exception_count=0;$exception_count<count($exceptions);++$exception_count) 2140 $exceptions_count = count($exceptions); 2141 for($exception_count=0;$exception_count<$exceptions_count;++$exception_count) 2140 2142 { 2141 2143 $exception[] = (int)$exceptions[$exception_count]; … … 2196 2198 } 2197 2199 2198 for($i=0;$i<count($this->cached_events[$date]);++$i) 2200 $cached_events_count = count($this->cached_events[$date]); 2201 for($i=0;$i<$cached_events_count;++$i) 2199 2202 { 2200 2203 if($this->cached_events[$date][$i]['id'] == $event['id'] || $this->cached_events[$date][$i]['reference'] == $event['id']) … … 2575 2578 { 2576 2579 echo '<!-- Total events found matching '.$search_date.' = '.count($this->cached_events[$search_date]).' -->'."\n"; 2577 for($i=0;$i<count($this->cached_events[$search_date]);++$i) 2580 $cached_events_count = count($this->cached_events[$search_date]); 2581 for($i=0;$i<$cached_events_count;++$i) 2578 2582 { 2579 2583 echo '<!-- Date: '.$search_date.' ['.$i.'] = '.$this->cached_events[$search_date][$i]['id'].' -->'."\n"; … … 2866 2870 2867 2871 //verifica se todos os participantes rejeitaram o evento 2868 for($i = 0; $i < count($sts); ++$i ){ 2872 $sts_count = count($sts); 2873 for($i = 0; $i < $sts_count; ++$i ){ 2869 2874 if( $sts[i] === "R") 2870 2875 unset( $sts[i] ); … … 4436 4441 { 4437 4442 $cal_grps = ''; 4438 for($i=0;$i<count($event['groups']);++$i) 4443 $event_groups_count = count($event['groups']); 4444 for($i=0;$i<$event_groups_count;++$i) 4439 4445 { 4440 4446 if($GLOBALS['phpgw']->accounts->exists($event['groups'][$i])) -
trunk/calendar/inc/class.boholiday.inc.php
r7655 r7673 364 364 { 365 365 $new_holidays = Array(); 366 for($i=0;$i<count($holidays);++$i) 366 $holidays_count = count($holidays); 367 for($i=0;$i<$holidays_count;++$i) 367 368 { 368 369 // echo "Setting Holidays Date : ".date('Ymd',$holidays[$i]['date'])."<br>\n"; … … 386 387 387 388 $temp_locale = $GLOBALS['phpgw_info']['user']['preferences']['common']['country']; 388 for($i=0;$i<count($holidays);++$i) 389 $holidays_count = count($holidays); 390 for($i=0;$i<$holidays_count;++$i) 389 391 { 390 392 $c = $i; -
trunk/calendar/inc/class.boicalendar.inc.php
r7655 r7673 1434 1434 //$this->debug('parse_parameters array return_value: '._debug_array($return_value,False)); 1435 1435 1436 for ($i = 0; $i < count($return_value); ++$i) { 1436 $return_value_count = count($return_value); 1437 for ($i = 0; $i < $return_value_count; ++$i) { 1437 1438 $name = strtolower($return_value[$i]['param']); 1438 1439 $value = $this->strip_quotes($return_value[$i]['value']); … … 1661 1662 if (!empty ($event[$value])) { 1662 1663 if ($multiples && $value != 'exdate') { 1663 for ($i = 0; $i < count($event[$value]); ++$i) { 1664 $event_value_count = count($event[$value]); 1665 for ($i = 0; $i < $event_value_count; ++$i) { 1664 1666 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value)); 1665 1667 } … … 1674 1676 case 'uri' : 1675 1677 if (!empty ($event[$value])) { 1676 for ($i = 0; $i < count($event[$value]); ++$i) { 1678 $event_value_count = count($event[$value]); 1679 for ($i = 0; $i < $event_value_count; ++$i) { 1677 1680 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $to_text)); 1678 1681 } … … 1682 1685 if (!empty ($event[$value])) { 1683 1686 if ($multiples) { 1684 for ($i = 0; $i < count($event[$value]); ++$i) { 1687 $event_value_count = count($event[$value]); 1688 for ($i = 0; $i < $event_value_count; ++$i) { 1685 1689 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value)); 1686 1690 } … … 1712 1716 if (@ $this->parameter[$key]['type'] != 'function') { 1713 1717 if ($multiples && count($event[$value]) > 1) { 1714 for ($i = 0; $i < count($event[$value]); ++$i) { 1718 $event_value_count = count($event[$value]); 1719 for ($i = 0; $i < $event_value_count; ++$i) { 1715 1720 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value)); 1716 1721 } … … 1721 1726 $function = $this->parameter[$value]['function']; 1722 1727 if ($multiples) { 1723 for ($i = 0; $i < count($event[$value]); ++$i) { 1728 $event_value_count = count($event[$value]); 1729 for ($i = 0; $i < $event_value_count; ++$i) { 1724 1730 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . ':' . $this-> $function ($event[$value][$i])); 1725 1731 } … … 1732 1738 case 'cal-address' : 1733 1739 if (is_array($event[$value][0])) { 1734 for ($j = 0; $j < count($event[$value]); ++$j) { 1740 $event_value_count = count($event[$value]); 1741 for ($j = 0; $j < $event_value_count; ++$j) { 1735 1742 $temp_output = $this->build_parameters($event[$value][$j], $value); 1736 1743 if ($temp_output) { … … 1748 1755 } 1749 1756 if (!empty ($event['x_type'])) { 1750 for ($i = 0; $i < count($event['x_type']); ++$i) { 1757 $event_x_type_count = count($event['x_type']); 1758 for ($i = 0; $i < $event_x_type_count; ++$i) { 1751 1759 $str .= $this->build_xtype($event['x_type'][$i], ':'); 1752 1760 } … … 1755 1763 if ($ical_item == 'vtimezone') { 1756 1764 if ($event['tzdata']) { 1757 for ($k = 0; $k < count($event['tzdata']); ++$k) { 1765 $event_tzdata_count = count($event['tzdata']); 1766 for ($k = 0; $k < $event_tzdata_count; ++$k) { 1758 1767 $str .= 'BEGIN:' . strtoupper($event['tzdata'][$k]['type']) . "\r\n"; 1759 1768 $str .= $this->build_card_internals(strtolower($event['tzdata'][$k]['type']), $event['tzdata'][$k]); … … 1763 1772 } 1764 1773 elseif ($event['alarm']) { 1765 for ($k = 0; $k < count($event['alarm']); ++$k) { 1774 $event_alarm_count = count($event['alarm']); 1775 for ($k = 0; $k < $event_alarm_count; ++$k) { 1766 1776 $str .= 'BEGIN:VALARM' . "\r\n"; 1767 1777 $str .= $this->build_card_internals('valarm', $event['alarm'][$k]); -
trunk/calendar/inc/class.socalendar.inc.php
r7655 r7673 179 179 $events = $this->list_events($startYear,$startMonth,$startDay,$endYear,$endMonth,$endDay); 180 180 $events_cached = Array(); 181 for($i=0;$i<count($events);++$i) 181 $events_count = count($events); 182 for($i=0;$i<$events_count;++$i) 182 183 { 183 184 $events_cached[] = $this->read_entry($events[$i]); -
trunk/calendar/inc/class.socalendar_sql.inc.php
r7655 r7673 597 597 { 598 598 $groups = explode(',',$this->stream->f('groups')); 599 for($j=1;$j<count($groups) - 1;++$j) 599 $groups_count = count($groups) - 1; 600 for($j=1;$j<$groups_count;++$j) 600 601 { 601 602 $this->add_attribute('groups',$groups[$j],$j-1); -
trunk/calendar/inc/class.uicalendar.inc.php
r7655 r7673 328 328 ); 329 329 } 330 for($l=0;$l<count($var);++$l) 330 $var_count = count($var); 331 for($l=0;$l<$var_count;++$l) 331 332 { 332 333 $this->output_template_array($mini_cal_tpl,'monthweek_day','mini_day',$var[$l]); … … 1331 1332 $str = ''; 1332 1333 1333 for($i=0;$i<count($event['recur_exception']);++$i) 1334 $event_count = count($event['recur_exception']); 1335 for($i=0;$i<$event_count;++$i) 1334 1336 { 1335 1337 $str .= ' <option value="'.$i.'">'.$GLOBALS['phpgw']->common->show_date($event['recur_exception'][$i]).'</option>'."\n"; … … 1457 1459 // Add participants 1458 1460 $participants = explode(";", $GLOBALS['phpgw']->session->appsession("participants") ); 1459 for($_f_part=0; $_f_part<count($participants); ++$_f_part) 1461 $participants_count = count($participants); 1462 for($_f_part=0; $_f_part<$participants_count; ++$_f_part) 1460 1463 { 1461 1464 $this->bo->add_attribute('participants','A',$participants[$_f_part]); … … 2809 2812 $accounts = $GLOBALS['phpgw']->acl->get_ids_for_location('run',1,'calendar'); 2810 2813 $users = Array(); 2811 for($i=0;$i<count($accounts);++$i) 2814 $accounts_count = count($accounts); 2815 for($i=0;$i<$accounts_count;++$i) 2812 2816 { 2813 2817 $user = $accounts[$i]; … … 2820 2824 if($group_members != False) 2821 2825 { 2822 for($j=0;$j<count($group_members);++$j) 2826 $group_members_count = count($group_members); 2827 for($j=0;$j<$group_members_count;++$j) 2823 2828 { 2824 2829 if(!isset($users[$group_members[$j]])) … … 2861 2866 ); 2862 2867 2863 for($i=0;$i<count($var);++$i) 2868 $var_count = count($var); 2869 for($i=0;$i<$var_count;++$i) 2864 2870 { 2865 2871 $this->output_template_array($p,'rows','list',$var[$i]); … … 3607 3613 3608 3614 $description = $this->bo->get_short_field($event,$is_private,'description'); 3609 for($i=0;$i<count($picture);++$i) 3615 $picture_count = count($picture); 3616 for($i=0;$i<$picture_count;++$i) 3610 3617 { 3611 3618 $var = Array( … … 3797 3804 3798 3805 $description = $this->bo->get_short_field($event,$is_private,'description'); 3799 for($i=0;$i<count($picture);++$i) 3806 $picture_count = count($picture); 3807 for($i=0;$i<$picture_count;++$i) 3800 3808 { 3801 3809 $var = Array( … … 3868 3876 3869 3877 $overlap = ''; 3870 for($i=0;$i<count($overlapping_events);++$i) 3878 $overlapping_events_count = count($overlapping_events); 3879 for($i=0;$i<$overlapping_events_count;++$i) 3871 3880 { 3872 3881 $overlapped_event = $this->bo->read_entry($overlapping_events[$i],True); … … 5734 5743 } 5735 5744 5736 for ($i=0; $i<count($control_data['part']); ++$i) 5745 $control_data_count = count($control_data['part']); 5746 for ($i=0; $i<$control_data_count; ++$i) 5737 5747 { 5738 5748 $id = $control_data['part'][$i]; … … 5745 5755 if ($control_data['action'] == lang('Delete selected contacts')) 5746 5756 { 5747 for ($i=0; $i<count($control_data['delete']); ++$i) 5757 $control_data_count = count($control_data['delete']); 5758 for ($i=0; $i<$control_data_count; ++$i) 5748 5759 { 5749 5760 $id = $control_data['delete'][$i]; … … 5970 5981 if($holidays) 5971 5982 { 5972 for($k=0;$k<count($holidays);++$k) 5983 $holidays_count = count($holidays); 5984 for($k=0;$k<$holidays_count;++$k) 5973 5985 { 5974 5986 $holiday_name[] = $holidays[$k]['name']; -
trunk/calendar/inc/class.uipublicview.inc.php
r7655 r7673 521 521 522 522 $description = $this->bo->get_short_field($event,$is_private,'description'); 523 for($i=0;$i<count($picture);++$i) 523 $picture_count = count($picture); 524 for($i=0;$i<$picture_count;++$i) 524 525 { 525 526 $var = Array( … … 946 947 if($holidays) 947 948 { 948 for($k=0;$k<count($holidays);++$k) 949 $holidays_count = count($holidays); 950 for($k=0;$k<$holidays_count;++$k) 949 951 { 950 952 $holiday_name[] = $holidays[$k]['name']; -
trunk/calendar/templates/default/header.inc.php
r7655 r7673 105 105 if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants']) 106 106 { 107 for ($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);++$i) 107 $globals_count = count($GLOBALS['HTTP_POST_VARS']['participants']); 108 for ($i=0;$i<$globals_count;++$i) 108 109 { 109 110 $base_hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n"; -
trunk/contactcenter/inc/class.bo_ldap_manager.inc.php
r7655 r7673 438 438 $referral = $this -> get_ldap_referrals($ds, $dn, $filter); 439 439 $sub_branches = array(); 440 441 for($i = 0; $i <count($referral); ++$i) { 440 441 $referral_count = count($referral); 442 for($i = 0; $i <$referral_count; ++$i) { 442 443 $dn = str_replace("??base","",preg_replace('!^(ldap://[^/]+)/(.*$)!', '\\2', $referral[$i])); 443 444 $dn = explode(",",$dn); -
trunk/contactcenter/inc/class.ui_data.inc.php
r7655 r7673 2118 2118 2119 2119 $actualCatalog = $this->get_actual_catalog(); 2120 for ($i = 0; $i < count($data['contact_in_list']); ++$i) 2120 $data_count = count($data['contact_in_list']); 2121 for ($i = 0; $i < $data_count; ++$i) 2121 2122 { 2122 2123 if (preg_match('/ldap:.*:.*/', $data['contact_in_list'][$i])) // from ldap … … 3789 3790 $contact['names_ordered'] = $info[0]['description']; 3790 3791 $filter = ""; 3791 for($z = 0; $z < count($member_uids); ++$z) { 3792 $member_uids_count = count($member_uids); 3793 for($z = 0; $z < $member_uids_count; ++$z) { 3792 3794 if($member_uids[$z]) 3793 3795 $filter.="(uid=".$member_uids[$z].")"; … … 4806 4808 if ($info) 4807 4809 { 4808 for ($i = 0; $i < count($justThese); ++$i) 4810 $justThese_count = count($justThese); 4811 for ($i = 0; $i < $justThese_count; ++$i) 4809 4812 { 4810 4813 $attr = array(); -
trunk/emailadmin/inc/class.ui.inc.php
r7655 r7673 240 240 if ($profileList) 241 241 { 242 for ($i=0; $i < count($profileList); ++$i) 242 $profileList_count = count($profileList); 243 for ($i=0; $i < $profileList_count; ++$i) 243 244 { 244 245 $linkData = array -
trunk/emailadmin/inc/class.uiuserdata.inc.php
r7655 r7673 78 78 { 79 79 $options_mailAlternateAddress = "<select size=\"6\" name=\"mailAlternateAddress\">\n"; 80 for ($i=0;$i < count($userData['mailAlternateAddress']); ++$i) 80 $userData_count = count($userData['mailAlternateAddress']); 81 for ($i=0;$i < $userData_count; ++$i) 81 82 { 82 83 $options_mailAlternateAddress .= "<option value=\"$i\">". … … 94 95 { 95 96 $options_mailRoutingAddress = "<select size=\"6\" name=\"mailRoutingAddress\">\n"; 96 for ($i=0;$i < count($userData['mailRoutingAddress']); ++$i) 97 $userData_count = count($userData['mailRoutingAddress']); 98 for ($i=0;$i < $userData_count; ++$i) 97 99 { 98 100 $options_mailRoutingAddress .= "<option value=\"$i\">". -
trunk/expressoAdmin1_2/inc/class.bomessages_size.inc.php
r7655 r7673 285 285 $rules_tr = ''; 286 286 287 for ($i = 0; $i<count($rules); ++$i) 287 $rules_count = count($rules); 288 for ($i = 0; $i<$rules_count; ++$i) 288 289 { 289 290 $name_link = (string)str_replace(" ", "%", $rules[$i]['email_recipient']); … … 311 312 $rules_tr = ''; 312 313 313 for ($i = 0; $i<count($rules); ++$i) 314 $rules_count = count($rules); 315 for ($i = 0; $i<$rules_count; ++$i) 314 316 { 315 317 $name_link = (string)str_replace(" ", "%", $rules[$i]['email_recipient']); -
trunk/expressoAdmin1_2/inc/class.bosectors.inc.php
r7655 r7673 162 162 $sector_users = $this->so->get_sector_users($sector_dn); 163 163 164 for ($i=0; $i<count($sector_users)-1; ++$i) 164 $sector_users_count = count($sector_users)-1; 165 for ($i=0; $i<$sector_users_count; ++$i) 165 166 { 166 167 //_debug_array($user); … … 174 175 175 176 $sector_groups = $this->so->get_sector_groups($sector_dn); 176 for ($i=0; $i<count($sector_groups)-1; ++$i) 177 $sector_groups_count = count($sector_groups)-1; 178 for ($i=0; $i<$sector_groups_count; ++$i) 177 179 { 178 180 $dn = $sector_groups[$i]['dn']; -
trunk/expressoAdmin1_2/inc/class.db_functions.inc.php
r7655 r7673 141 141 142 142 //Escrevre no Banco as aplicações que o gerente tem direito de disponibilizar aos seus usuarios. 143 for ($i=0; $i<count($aplications); ++$i) 143 $aplications_count = count($aplications); 144 for ($i=0; $i<$aplications_count; ++$i) 144 145 { 145 146 $sql = "INSERT INTO phpgw_expressoadmin_apps (manager_lid, context, app) " … … 415 416 while($this->db->next_record()) 416 417 $user_app[] = $this->db->row(); 417 418 for ($i=0; $i<count($user_app); ++$i) 418 419 $user_app_count = count($user_app); 420 for ($i=0; $i<$user_app_count; ++$i) 419 421 $return['groups'][] = $user_app[$i]['acl_location']; 420 422 -
trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r7655 r7673 1571 1571 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1572 1572 $sector_dn_array = explode(",", $entry[0]['dn']); 1573 for($i=1; $i<count($sector_dn_array); ++$i) 1573 $sector_dn_array_count = count($sector_dn_array); 1574 for($i=1; $i<$sector_dn_array_count; ++$i) 1574 1575 $sector_dn .= $sector_dn_array[$i] . ','; 1575 1576 //Retira ultimo pipe. … … 1698 1699 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1699 1700 $sector_dn_array = explode(",", $entry[0]['dn']); 1700 for($i=1; $i<count($sector_dn_array); ++$i) 1701 $sector_dn_array_count = count($sector_dn_array); 1702 for($i=1; $i<$sector_dn_array_count; ++$i) 1701 1703 $sector_dn .= $sector_dn_array[$i] . ','; 1702 1704 //Retira ultimo pipe. … … 1831 1833 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1832 1834 $sector_dn_array = explode(",", $entry[0]['dn']); 1833 for($i=1; $i<count($sector_dn_array); ++$i) 1835 $sector_dn_array_count = count($sector_dn_array); 1836 for($i=1; $i<$sector_dn_array_count; ++$i) 1834 1837 $sector_dn .= $sector_dn_array[$i] . ','; 1835 1838 //Retira ultimo pipe. … … 1929 1932 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1930 1933 $sector_dn_array = explode(",", $entry[0]['dn']); 1931 for($i=1; $i<count($sector_dn_array); ++$i) 1934 $sector_dn_array_count = count($sector_dn_array); 1935 for($i=1; $i<$sector_dn_array_count; ++$i) 1932 1936 $sector_dn .= $sector_dn_array[$i] . ','; 1933 1937 //Retira ultimo pipe. … … 2001 2005 $entry[0]['dn'] = strtolower($entry[0]['dn']); 2002 2006 $sector_dn_array = explode(",", $entry[0]['dn']); 2003 for($i=1; $i<count($sector_dn_array); ++$i) 2007 $sector_dn_array_count = count($sector_dn_array); 2008 for($i=1; $i<$sector_dn_array_count; ++$i) 2004 2009 $sector_dn .= $sector_dn_array[$i] . ','; 2005 2010 //Retira ultimo pipe. -
trunk/expressoAdmin1_2/inc/class.socomputers.inc.php
r7655 r7673 86 86 // Recupera o contexto do email_list 87 87 $tmp = explode(",", $computer_data['dn']); 88 for ($i = 1; $i < count($tmp); ++$i) 88 $tmp_count = count($tmp); 89 for ($i = 1; $i < $tmp_count; ++$i) 89 90 $computer_data['context'] .= $tmp[$i] . ','; 90 91 $computer_data['context'] = substr($computer_data['context'],0,(strlen($computer_data['context']) - 1)); -
trunk/expressoAdmin1_2/inc/class.uimessages_size.inc.php
r7655 r7673 114 114 $rules = ''; 115 115 $all_rules = $this->bo->get_all_rules(); 116 117 for ($i = 0; $i<count($all_rules); ++$i) 116 117 $all_rules_count = count($all_rules); 118 for ($i = 0; $i<$all_rules_count; ++$i) 118 119 { 119 120 /* Verificação para não listar a regra default */ -
trunk/expressoMail1_2/inc/class.db_functions.inc.php
r7655 r7673 181 181 182 182 function getAddrs($array_addrs) { 183 $array_addrs_final = array(); 184 185 for($i = 0; $i < count($array_addrs); ++$i){ 183 $array_addrs_final = array(); 184 185 $array_addrs_count = count($array_addrs); 186 for($i = 0; $i < $array_addrs_count; ++$i){ 186 187 $j = count($array_addrs_final); 187 188 -
trunk/expressoMail1_2/inc/class.exporteml.inc.php
r7655 r7673 123 123 if (is_array($files)) 124 124 { 125 for ($i=0; $i < count($files); ++$i) 125 $files_count = count($files); 126 for ($i=0; $i < $files_count; ++$i) 126 127 { 127 128 $files[$i] = escapeshellarg($files[$i]); … … 315 316 316 317 //cria um .zip com as mensagens selecionadas 317 for($i = 0; $i < count($msg_number); ++$i) 318 $msg_number_count = count($msg_number); 319 for($i = 0; $i < $msg_number_count; ++$i) 318 320 { 319 321 $header = $this-> getHeader($msg_number[$i]); … … 353 355 }else{ 354 356 $array_names_keys = array_keys($sorted_msgs); 355 356 for($i = 0; $i < count($array_names_keys); ++$i){ 357 358 $array_names_keys_count = count($array_names_keys); 359 for($i = 0; $i < $array_names_keys_count; ++$i){ 357 360 $this->folder = mb_convert_encoding($array_names_keys[$i], "UTF7-IMAP","UTF-8, ISO-8859-1, UTF7-IMAP"); 358 361 $msg_number = explode(',', $sorted_msgs[$array_names_keys[$i]]); 359 362 $tempDir = $this->tempDir; 360 363 $this->connectImap(); 361 362 for($j = 0; $j < count($msg_number); ++$j) 364 365 $msg_number_count = count($msg_number); 366 for($j = 0; $j < $msg_number_count; ++$j) 363 367 { 364 368 $header = $this-> getHeader($msg_number[$j]); … … 474 478 } 475 479 476 for($i = 0; $i < count($array_ids); ++$i) 480 $array_ids_count = count($array_ids); 481 for($i = 0; $i < $array_ids_count; ++$i) 477 482 { 478 483 $header = $this-> getHeader($array_ids[$i]); … … 796 801 797 802 $fileNames = Array(); 798 799 for ($i = 0; $i < count($attachments); ++$i)803 $attachments_count = count($attachments); 804 for ($i = 0; $i < $attachments_count; ++$i) 800 805 { 801 806 $attachments[$i]['name'] = $this->remove_accents($attachments[$i]['name']); … … 803 808 } 804 809 805 for ($i = 0; $i < count($attachments); ++$i) 810 $attachments_count = count($attachments); 811 for ($i = 0; $i < $attachments_count; ++$i) 806 812 { 807 813 $fileName = $attachments[$i]['name']; … … 811 817 if (count($result) > 1) 812 818 { 813 for ($j = 1; $j < count($result); ++$j) 819 $result_count = count($result); 820 for ($j = 1; $j < $result_count; ++$j) 814 821 { 815 822 $replacement = '('.$j.')$0'; -
trunk/expressoMail1_2/inc/class.functions.inc.php
r7655 r7673 126 126 $includeFiles[0] = null; 127 127 // End Bug fixed. 128 } 129 for($i = 0; $i < count($files); ++$i) { 128 } 129 $files_count = count($files); 130 for($i = 0; $i < $files_count; ++$i) { 130 131 if(count(explode('.js',$files[$i])) > 1) { 131 132 if($includeFiles && array_search(trim($files[$i]),$includeFiles)){ -
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r7655 r7673 245 245 array('filter' => $filter, 'criteria' => array('deepness' => '2')) 246 246 ); 247 for($i=0; $i<count($sort_array_msg); ++$i){ 247 $sort_array_msg_count = count($sort_array_msg); 248 for($i=0; $i<$sort_array_msg_count; ++$i){ 248 249 if(!isset($return[$i]['msg_number'])) 249 250 continue; … … 518 519 $elements = imap_mime_header_decode($string); 519 520 520 for($i = 0;$i < count($elements);++$i) 521 $elements_count = count($elements); 522 for($i = 0;$i < $elements_count;++$i) 521 523 { 522 524 $charset = strtolower($elements[$i]->charset); … … 785 787 $return = array(); 786 788 $array_names_keys = array_keys($sorted_msgs); 787 788 for($i = 0; $i < count($sorted_msgs); ++$i){ 789 790 $sorted_msgs_count = count($sorted_msgs); 791 for($i = 0; $i < $sorted_msgs_count; ++$i){ 789 792 790 793 $new_params = array(); … … 2559 2562 }else{ 2560 2563 $child = $base_path.$this->imap_delimiter; 2561 for($i =0; $i < count($test); ++$i){ 2564 $test_count = count($test); 2565 for($i =0; $i < $test_count; ++$i){ 2562 2566 $child .= ($test[$i] ? $test[$i] : $this->functions->getLang("New Folder")); 2563 2567 $namebox = mb_convert_encoding($child, "UTF7-IMAP", "UTF-8"); … … 3654 3658 return $returns; 3655 3659 }else{ 3656 for($i = 0; $i < count($array_names_keys); ++$i){ 3660 $array_names_keys_count = count($array_names_keys); 3661 for($i = 0; $i < $array_names_keys_count; ++$i){ 3657 3662 $param['folder'] = $array_names_keys[$i]; 3658 3663 $param['msgs_to_set'] = $sorted_msgs[$array_names_keys[$i]]; -
trunk/expressoMail1_2/inc/class.message_components.inc.php
r7655 r7673 107 107 } 108 108 109 for($p = 0, $i = 1; $p < count($parts); ++$n, ++$p, ++$i) 109 $parts_count = count($parts); 110 for($p = 0, $i = 1; $p < $parts_count; ++$n, ++$p, ++$i) 110 111 { 111 112 // Skip the following... -
trunk/expressoMail1_2/inc/class.phpmailer.php
r7655 r7673 472 472 function MailSend($header, $body) { 473 473 $to = ""; 474 for($i = 0; $i < count($this->to); ++$i) 474 $to_count = count($this->to); 475 for($i = 0; $i < $to_count; ++$i) 475 476 { 476 477 if($i != 0) { $to .= ", "; } … … 533 534 534 535 // Attempt to send attach all recipients 535 for($i = 0; $i < count($this->to); ++$i) 536 $to_count = count($this->to); 537 for($i = 0; $i < $to_count; ++$i) 536 538 { 537 539 if(!$this->smtp->Recipient($this->to[$i][0])) 538 540 $bad_rcpt[] = $this->to[$i][0]; 539 541 } 540 for($i = 0; $i < count($this->cc); ++$i) 542 $cc_count = count($this->cc); 543 for($i = 0; $i < $cc_count; ++$i) 541 544 { 542 545 if(!$this->smtp->Recipient($this->cc[$i][0])) 543 546 $bad_rcpt[] = $this->cc[$i][0]; 544 547 } 545 for($i = 0; $i < count($this->bcc); ++$i) 548 $bcc_count = count($this->bcc); 549 for($i = 0; $i < $bcc_count; ++$i) 546 550 { 547 551 if(!$this->smtp->Recipient($this->bcc[$i][0])) … … 563 567 //Postfix version 2.1.5-9 564 568 $array_error = explode(":", $this->smtp->error['smtp_msg']); 565 566 for($i = 0; $i < count($bad_rcpt); ++$i) 569 570 $bad_rcpt_count = count($bad_rcpt); 571 for($i = 0; $i < $bad_rcpt_count; ++$i) 567 572 { 568 573 if($i != 0) { $error .= ", "; } … … 826 831 if(count($addr) > 1) 827 832 { 828 for($i = 1; $i < count($addr); ++$i) 833 $addr_count = count($addr); 834 for($i = 1; $i < $addr_count; ++$i) 829 835 $addr_str .= ", " . $this->AddrFormat($addr[$i]); 830 836 } … … 867 873 $line = explode($this->LE, $message); 868 874 $message = ""; 869 for ($i=0 ;$i < count($line); ++$i) 875 $line_count = count($line); 876 for ($i=0 ;$i < $line_count; ++$i) 870 877 { 871 878 $line_part = explode(" ", $line[$i]); 872 879 $buf = ""; 873 for ($e = 0; $e<count($line_part); $e++) 880 $line_part_count = count($line_part); 881 for ($e = 0; $e<$line_part_count; $e++) 874 882 { 875 883 $word = $line_part[$e]; … … 1031 1039 1032 1040 // Add custom headers 1033 for($index = 0; $index < count($this->CustomHeader); ++$index) 1041 $CustomHeader_count = count($this->CustomHeader); 1042 for($index = 0; $index < $CustomHeader_count; ++$index) 1034 1043 { 1035 1044 $result .= $this->HeaderLine(trim($this->CustomHeader[$index][0]), … … 1265 1274 1266 1275 // Add all attachments 1267 for($i = 0; $i < count($this->attachment); ++$i) 1276 $attachment_count = count($this->attachment); 1277 for($i = 0; $i < $attachment_count; ++$i) 1268 1278 { 1269 1279 // Check for string attachment … … 1540 1550 function InlineImageExists() { 1541 1551 $result = false; 1542 for($i = 0; $i < count($this->attachment); ++$i) 1552 $attachment_count = count($this->attachment); 1553 for($i = 0; $i < $attachment_count; ++$i) 1543 1554 { 1544 1555 if($this->attachment[$i][6] == "inline") -
trunk/expressoMail1_2/login_offline.php
r7655 r7673 195 195 $obj_organization = CreateObject('phpgwapi.sector_search_ldap'); 196 196 $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 197 198 for ($i=0; $i<count($organizations); ++$i) 197 198 $organizations_count = count($organizations); 199 for ($i=0; $i<$organizations_count; ++$i) 199 200 { 200 201 $tmp_array[strtolower($organizations[$i])] = $organizations[$i]; -
trunk/filemanager/inc/class.notifications.inc.php
r7655 r7673 110 110 111 111 $email_to = explode( ",", $result[0]['email_to'] ); 112 113 for( $i = 0 ; $i < count($email_to); ++$i ) 112 113 $email_to_count = count($email_to); 114 for( $i = 0 ; $i < $email_to_count; ++$i ) 114 115 { 115 116 if($email_to[$i] == $emailTo) -
trunk/filemanager/inc/class.uiconfig.inc.php
r7655 r7673 272 272 $result = $notify->SearchId($_GET['editUser']); 273 273 $emails_to = explode(",", $result[0]['email_to']); 274 275 for( $i = 0 ; $i < count($emails_to); ++$i ) 274 275 $emails_to_count = count($emails_to); 276 for( $i = 0 ; $i < $emails_to_count; ++$i ) 276 277 { 277 278 $value_email_to .= "<tr>"; -
trunk/filemanager/inc/class.uifilemanager.inc.php
r7655 r7673 1211 1211 reset($this->files_array); 1212 1212 $this->readFilesInfo(); 1213 for ($i = 0; $i < count($this->files_array); ++$i) { 1213 $files_array_count = count($this->files_array); 1214 for ($i = 0; $i < $files_array_count; ++$i) { 1214 1215 $comment = strtoupper($this->files_array[$i]['comment']); 1215 1216 $name = strtoupper($this->files_array[$i]['name']); -
trunk/filemanager/tp/dompdf/include/cpdf_adapter.cls.php
r7655 r7673 570 570 571 571 // Adjust y values 572 for ( $i = 1; $i < count($points); $i += 2) 572 $points_count = count($points); 573 for ( $i = 1; $i < $points_count; $i += 2) 573 574 $points[$i] = $this->y($points[$i]); 574 575 -
trunk/filemanager/tp/dompdf/include/text_frame_reflower.cls.php
r6057 r7673 134 134 reset($words); 135 135 136 for ($i = 0; $i < count($words); $i += 2) { 136 $words_count = count($words); 137 for ($i = 0; $i < $words_count; $i += 2) { 137 138 $word = $words[$i] . (isset($words[$i+1]) ? $words[$i+1] : ""); 138 139 $word_width = Font_Metrics::get_text_width($word, $font, $size, $word_spacing); -
trunk/filemanager/tp/dompdf/lib/class.pdf.php
r7655 r7673 2615 2615 $dtmp[$bits2[0]] = array(); 2616 2616 2617 for ($i = 1;$i<count($bits2);++$i) { 2617 $bits2_count = count($bits2); 2618 for ($i = 1;$i<$bits2_count;++$i) { 2618 2619 2619 2620 $dtmp[$bits2[0]][] = $bits2[$i]; … … 2661 2662 $dtmp[$bits2[0]] = array(); 2662 2663 2663 for ($i = 1;$i<count($bits2);++$i) { 2664 $bits2_count = count($bits2); 2665 for ($i = 1;$i<$bits2_count;++$i) { 2664 2666 2665 2667 $dtmp[$bits2[0]][] = $bits2[$i]; -
trunk/home.php
r7655 r7673 108 108 $sorted_apps = array(); 109 109 $user_apps = $GLOBALS['phpgw_info']['user']['apps']; 110 @reset($user_apps); 111 for($i = 0; $i < count($default_apps);++$i) { 110 @reset($user_apps); 111 $default_apps_count = count($default_apps); 112 for($i = 0; $i < $default_apps_count;++$i) { 112 113 if(array_key_exists($default_apps[$i], $user_apps)){ 113 114 $sorted_apps[] = $default_apps[$i]; -
trunk/jabberit_messenger/inc/class.contacts_im.inc.php
r7655 r7673 92 92 93 93 if( is_array($users) ) 94 { 95 for($i = 0; $i < count($users); ++$i) 94 { 95 $users_count = count($users); 96 for($i = 0; $i < $users_count; ++$i) 96 97 { 97 98 if( is_array($hostsJabber) ) … … 225 226 226 227 $_restrict = array(); 227 228 for( $i = 0 ; $i < count($orgs) ; ++$i ) 229 { 230 for( $j = 0 ; $j < count($array_uids) ; ++$j ) 228 229 $orgs_count = count($orgs); 230 for( $i = 0 ; $i < $orgs_count; ++$i ) 231 { 232 $array_uids_count = count($array_uids); 233 for( $j = 0 ; $j < $array_uids_count; ++$j ) 231 234 { 232 235 if( trim($array_uids[$j]['ou']) === trim($orgs[$i]) ) … … 331 334 $posAll = $this->strallpos($ou_User, "OU=" ); 332 335 $orgs = array(); 333 334 for( $i = 0 ; $i < count($posAll); ++$i ) 336 337 $posAll_count = count($posAll); 338 for( $i = 0 ; $i < $posAll_count; ++$i ) 335 339 { 336 340 $pos = strpos($ou_User, ","); … … 369 373 $posAll = $this->strallpos($ou_User, "OU=" ); 370 374 $orgs = array(); 371 372 for( $i = 0 ; $i < count($posAll); ++$i ) 375 376 $posAll_count = count($posAll); 377 for( $i = 0 ; $i < $posAll_count; ++$i ) 373 378 { 374 379 $pos = strpos($ou_User, ","); -
trunk/jabberit_messenger/inc/class.db_im.inc.php
r7655 r7673 58 58 $hostsJabber = unserialize($this->getHostsJabber()); 59 59 $findHosts = explode(":", $pItem['item']); 60 $return = ""; 61 62 for( $i = 0 ; $i < count($hostsJabber); ++$i ) 60 $return = ""; 61 62 $hostsJabber_count = count($hostsJabber); 63 for( $i = 0 ; $i < $hostsJabber_count; ++$i ) 63 64 if( $hostsJabber[$i]['org'] == $findHosts[0] && $hostsJabber[$i]['jabberName'] == $findHosts[1] ) 64 65 { … … 517 518 $orgs = array(); 518 519 519 for( $i = 0 ; $i < count($posAll); ++$i ) 520 $posAll_count = count($posAll); 521 for( $i = 0 ; $i < $posAll_count; ++$i ) 520 522 { 521 523 $pos = strpos($organization, ","); … … 655 657 if( count($confHostsOrgs) > 0 ) 656 658 { 657 for( $i = 0; $i < count($confHostsOrgs); ++$i) 659 $confHostsOrgs_count = count($confHostsOrgs); 660 for( $i = 0; $i < $confHostsOrgs_count; ++$i) 658 661 if( $confHostsOrgs[$i]['org'] == $hosts[0] && $confHostsOrgs[$i]['jabberName'] == $hosts[1]) 659 662 $key = $i; -
trunk/jabberit_messenger/inc/class.ldap_im.inc.php
r7655 r7673 125 125 { 126 126 $confHosts = $this->hostsJabber; 127 128 for($i = 0; $i < count($confHosts); ++$i ) 127 128 $confHosts_count = count($confHosts); 129 for($i = 0; $i < $confHosts_count; ++$i ) 129 130 { 130 131 if( $pData['serverLdap'] == $confHosts[$i]['serverLdap'] ) … … 210 211 { 211 212 $confHosts = $this->hostsJabber; 212 213 for($i = 0; $i < count($confHosts); ++$i ) 213 214 $confHosts_count = count($confHosts); 215 for($i = 0; $i < $confHosts_count; ++$i ) 214 216 { 215 217 if( $this->ldap ) … … 279 281 { 280 282 $confHosts = $this->hostsJabber; 281 282 for($i = 0; $i < count($confHosts); ++$i ) 283 284 $confHosts_count = count($confHosts); 285 for($i = 0; $i < $confHosts_count; ++$i ) 283 286 { 284 287 if( $this->ldap ) … … 322 325 { 323 326 $confHosts = $this->hostsJabber; 324 325 for($i = 0; $i < count($confHosts); ++$i ) 327 328 $confHosts_count = count($confHosts); 329 for($i = 0; $i < $confHosts_count; ++$i ) 326 330 { 327 331 if( $pLdap_host == $confHosts[$i]['serverLdap'] ) … … 396 400 $result = array(); 397 401 $return = array(); 398 $conn = ""; 399 400 for( $i = 0; $i < count($confHosts); ++$i ) 402 $conn = ""; 403 404 $confHosts_count = count($confHosts); 405 for( $i = 0; $i < $confHosts_count; ++$i ) 401 406 { 402 407 if( $pLdap && $pLdap == $confHosts[$i]['serverLdap'] ) -
trunk/jabberit_messenger/inc/login.php
r7655 r7673 86 86 87 87 if( $voip_enabled ) 88 $pluginsJava[] = "callVoip.jar"; 89 90 for( $i = 0; $i < count($pluginsJava); ++$i ) 88 $pluginsJava[] = "callVoip.jar"; 89 90 $pluginsJava_count = count($pluginsJava); 91 for( $i = 0; $i < $pluginsJava_count; ++$i ) 91 92 { 92 93 $javaFiles .= $path . "plugins/" . $pluginsJava[$i] . ","; -
trunk/jabberit_messenger/jmessenger/inc/class.ContactsIm.inc.php
r7655 r7673 69 69 70 70 if( is_array($users) ) 71 { 72 for($i = 0; $i < count($users); ++$i) 71 { 72 $users_count = count($users); 73 for($i = 0; $i < $users_count; ++$i) 73 74 { 74 75 if( is_array($hostsJabber) ) … … 203 204 204 205 $_restrict = array(); 205 206 for( $i = 0 ; $i < count($orgs) ; ++$i ) 207 { 208 for( $j = 0 ; $j < count($array_uids) ; ++$j ) 206 207 $orgs_count = count($orgs); 208 for( $i = 0 ; $i < $orgs_count; ++$i ) 209 { 210 $array_uids_count = count($array_uids); 211 for( $j = 0 ; $j < $array_uids_count; ++$j ) 209 212 { 210 213 if( trim($array_uids[$j]['ou']) === trim($orgs[$i]) ) … … 331 334 $posAll = $this->strallpos($ou_User, "OU=" ); 332 335 $orgs = array(); 333 334 for( $i = 0 ; $i < count($posAll); ++$i ) 336 337 $posAll_count = count($posAll); 338 for( $i = 0 ; $i < $posAll_count; ++$i ) 335 339 { 336 340 $pos = strpos($ou_User, ","); … … 369 373 $posAll = $this->strallpos($ou_User, "OU=" ); 370 374 $orgs = array(); 371 372 for( $i = 0 ; $i < count($posAll); ++$i ) 375 376 $posAll_count = count($posAll); 377 for( $i = 0 ; $i < $posAll_count; ++$i ) 373 378 { 374 379 $pos = strpos($ou_User, ","); -
trunk/jabberit_messenger/jmessenger/inc/class.DataBaseIM.inc.php
r7655 r7673 57 57 $hostsJabber = unserialize($this->getHostsJabber()); 58 58 $findHosts = explode(":", $pItem['item']); 59 $return = ""; 60 61 for( $i = 0 ; $i < count($hostsJabber); ++$i ) 59 $return = ""; 60 61 $hostsJabber_count = count($hostsJabber); 62 for( $i = 0 ; $i < $hostsJabber_count; ++$i ) 62 63 if( $hostsJabber[$i]['org'] == $findHosts[0] && $hostsJabber[$i]['jabberName'] == $findHosts[1] ) 63 64 { … … 490 491 $orgs = array(); 491 492 492 for( $i = 0 ; $i < count($posAll); ++$i ) 493 $posAll_count = count($posAll); 494 for( $i = 0 ; $i < $posAll_count; ++$i ) 493 495 { 494 496 $pos = strpos($organization, ","); … … 628 630 if( count($confHostsOrgs) > 0 ) 629 631 { 630 for( $i = 0; $i < count($confHostsOrgs); ++$i) 632 $confHostsOrgs_count = count($confHostsOrgs); 633 for( $i = 0; $i < $confHostsOrgs_count; ++$i) 631 634 if( $confHostsOrgs[$i]['org'] == $hosts[0] && $confHostsOrgs[$i]['jabberName'] == $hosts[1]) 632 635 $key = $i; -
trunk/jabberit_messenger/jmessenger/inc/class.LdapIM.inc.php
r7655 r7673 124 124 { 125 125 $confHosts = $this->hostsJabber; 126 127 for($i = 0; $i < count($confHosts); ++$i ) 126 127 $confHosts_count = count($confHosts); 128 for($i = 0; $i < $confHosts_count; ++$i ) 128 129 { 129 130 if( $pData['serverLdap'] == $confHosts[$i]['serverLdap'] ) … … 209 210 { 210 211 $confHosts = $this->hostsJabber; 211 212 for($i = 0; $i < count($confHosts); ++$i ) 212 213 $confHosts_count = count($confHosts); 214 for($i = 0; $i < $confHosts_count; ++$i ) 213 215 { 214 216 if( $this->ldap ) … … 278 280 { 279 281 $confHosts = $this->hostsJabber; 280 281 for($i = 0; $i < count($confHosts); ++$i ) 282 283 $confHosts_count = count($confHosts); 284 for($i = 0; $i < $confHosts_count; ++$i ) 282 285 { 283 286 if( $this->ldap ) … … 321 324 { 322 325 $confHosts = $this->hostsJabber; 323 324 for($i = 0; $i < count($confHosts); ++$i ) 326 327 $confHosts_count = count($confHosts); 328 for($i = 0; $i < $confHosts_count; ++$i ) 325 329 { 326 330 if( $pLdap_host == $confHosts[$i]['serverLdap'] ) … … 399 403 $confHosts = $this->hostsJabber; 400 404 401 for( $i = 0; $i < count($confHosts); ++$i ) 405 $confHosts_count = count($confHosts); 406 for( $i = 0; $i < $confHosts_count; ++$i ) 402 407 { 403 408 if( trim($host) === trim($confHosts[$i]['jabberName']) ) … … 452 457 $result = array(); 453 458 $return = array(); 454 $conn = ""; 455 456 for( $i = 0; $i < count($confHosts); ++$i ) 459 $conn = ""; 460 461 $confHosts_count = count($confHosts); 462 for( $i = 0; $i < $confHosts_count; ++$i ) 457 463 { 458 464 if( $pLdap && $pLdap == $confHosts[$i]['serverLdap'] ) -
trunk/library/Mail/Mail/RFC822.php
r7655 r7673 332 332 $string = $parts[0]; 333 333 334 for ($i = 0; $i < count($parts); ++$i) { 334 $parts_count = count($parts); 335 for ($i = 0; $i < $parts_count; ++$i) { 335 336 if ($this->_hasUnclosedQuotes($string) 336 337 || $this->_hasUnclosedBrackets($string, '<>') … … 426 427 { 427 428 $parts = explode($char, $string); 428 for ($i = 0; $i < count($parts); ++$i){ 429 $parts_count = count($parts); 430 for ($i = 0; $i < $parts_count; ++$i){ 429 431 if (substr($parts[$i], -1) == '\\' || $this->_hasUnclosedQuotes($parts[$i])) 430 432 $num--; … … 500 502 // geezer 501 503 // ... or any other format valid by RFC 822. 502 for ($i = 0; $i < count($addresses); ++$i) { 504 $addresses_count = count($addresses); 505 for ($i = 0; $i < $addresses_count; ++$i) { 503 506 if (!$this->validateMailbox($addresses[$i])) { 504 507 if (empty($this->error)) { -
trunk/library/Mail/Mail/smtpmx.php
r5146 r7673 436 436 return false; 437 437 } 438 for ($i = 0; $i < count($mxHost); ++$i) { 438 $mxHost_count = count($mxHost); 439 for ($i = 0; $i < $mxHost_count; ++$i) { 439 440 $mx[$mxHost[$i]] = $mxWeight[$i]; 440 441 } -
trunk/library/Net/Sieve.php
r7655 r7673 929 929 $data = preg_split('/\r?\n/', $this->_toUpper($data), -1, PREG_SPLIT_NO_EMPTY); 930 930 931 for ($i = 0; $i < count($data); ++$i) { 931 $data_count = count($data); 932 for ($i = 0; $i < $data_count; ++$i) { 932 933 if (!preg_match('/^"([A-Z]+)"( "(.*)")?$/', $data[$i], $matches)) { 933 934 continue; -
trunk/library/PEAR/PEAR/Frontend/CLI.php
r7655 r7673 579 579 { 580 580 $highest = 1; 581 for ($i = 0; $i < count($columns); ++$i) { 581 $columns_count = count($columns); 582 for ($i = 0; $i < $columns_count; ++$i) { 582 583 $col = &$columns[$i]; 583 584 if (isset($colparams[$i]) && !empty($colparams[$i]['wrap'])) { … … 672 673 } 673 674 674 for ($i = 0; $i < count($table_data); ++$i) { 675 $table_data_count = count($table_data); 676 for ($i = 0; $i < $table_data_count; ++$i) { 675 677 extract($table_data[$i]); 676 678 if (!is_array($rowparams)) { … … 684 686 $rowlines = array(); 685 687 if ($height > 1) { 686 for ($c = 0; $c < count($data); $c++) { 688 $data_count = count($data); 689 for ($c = 0; $c < $data_count; $c++) { 687 690 $rowlines[$c] = preg_split('/(\r?\n|\r)/', $data[$c]); 688 691 if (count($rowlines[$c]) < $height) { … … 691 694 } 692 695 } else { 693 for ($c = 0; $c < count($data); ++$c) { 696 $data_count = count($data); 697 for ($c = 0; $c < $data_count; ++$c) { 694 698 $rowlines[$c] = array($data[$c]); 695 699 } … … 698 702 for ($r = 0; $r < $height; ++$r) { 699 703 $rowtext = ''; 700 for ($c = 0; $c < count($data); ++$c) { 704 $data_count = count($data); 705 for ($c = 0; $c < $data_count; ++$c) { 701 706 if (isset($colparams[$c])) { 702 707 $attribs = array_merge($rowparams, $colparams); -
trunk/library/PEAR/PEAR/PackageFile/v2.php
r7655 r7673 329 329 $mymaintainers = $this->getMaintainers(); 330 330 $yourmaintainers = $pf1->getMaintainers(); 331 for ($i1 = 0; $i1 < count($yourmaintainers); ++$i1) { 331 $yourmaintainers_count = count($yourmaintainers); 332 for ($i1 = 0; $i1 < $yourmaintainers_count; ++$i1) { 332 333 $reset = false; 333 for ($i2 = 0; $i2 < count($mymaintainers); ++$i2) { 334 $mymaintainers_count = count($mymaintainers); 335 for ($i2 = 0; $i2 < $mymaintainers_count; ++$i2) { 334 336 if ($mymaintainers[$i2]['handle'] == $yourmaintainers[$i1]['handle']) { 335 337 if ($mymaintainers[$i2]['role'] != $yourmaintainers[$i1]['role']) { … … 1213 1215 } 1214 1216 1215 for ($i = 0; $i < count($releases['configureoption']); ++$i) { 1217 $releases_count = count($releases['configureoption']); 1218 for ($i = 0; $i < $releases_count; ++$i) { 1216 1219 $releases['configureoption'][$i] = $releases['configureoption'][$i]['attribs']; 1217 1220 } -
trunk/library/ckeditor/plugins/aspell/spellerpages/server-scripts/spellchecker.php
r7655 r7673 82 82 # open temp file, add the submitted text. 83 83 if( $fh = fopen( $tempfile, 'w' )) { 84 for( $i = 0; $i < count( $textinputs ); ++$i ) { 84 $textinputs_count = count( $textinputs ); 85 for( $i = 0; $i < $textinputs_count; ++$i ) { 85 86 $text = urldecode( $textinputs[$i] ); 86 87 $text = html_entity_decode ($text , ENT_QUOTES , 'UTF-8' ); -
trunk/library/csstidy/class.csstidy.php
r7655 r7673 419 419 $template = explode('|',$content); 420 420 421 for ($i = 0; $i < count($template); ++$i ) 421 $template_count = count($template); 422 for ($i = 0; $i < $template_count; ++$i ) 422 423 { 423 424 $this->template[$i] = $template[$i]; -
trunk/library/csstidy/class.csstidy_optimise.php
r7655 r7673 302 302 $color_tmp = substr($color,4,strlen($color)-5); 303 303 $color_tmp = explode(',',$color_tmp); 304 for ( $i = 0; $i < count($color_tmp); ++$i ) 304 $color_tmp_count = count($color_tmp); 305 for ( $i = 0; $i < $color_tmp_count; ++$i ) 305 306 { 306 307 $color_tmp[$i] = trim ($color_tmp[$i]); … … 383 384 $temp = array($subvalue); 384 385 } 385 for ($l = 0; $l < count($temp); ++$l) 386 $temp_count = count($temp); 387 for ($l = 0; $l < $temp_count; ++$l) 386 388 { 387 389 // continue if no numeric value … … 665 667 666 668 $str_value = csstidy_optimise::explode_ws(',',$str_value); 667 for($i = 0; $i < count($str_value); ++$i) 669 $str_value_count = count($str_value); 670 for($i = 0; $i < $str_value_count; ++$i) 668 671 { 669 672 $have['clip'] = FALSE; $have['pos'] = FALSE; … … 672 675 $str_value[$i] = csstidy_optimise::explode_ws(' ',trim($str_value[$i])); 673 676 674 for($j = 0; $j < count($str_value[$i]); ++$j) 677 $str_value_count = count($str_value[$i]); 678 for($j = 0; $j < $str_value_count; ++$j) 675 679 { 676 680 if($have['bg'] === FALSE && (substr($str_value[$i][$j],0,4) == 'url(' || $str_value[$i][$j] === 'none')) -
trunk/library/csstidy/css_optimiser.php
r7655 r7673 322 322 { 323 323 echo '<dt>'.$line.'</dt>'; 324 for($i = 0; $i < count($array); ++$i) 324 $array_count = count($array); 325 for($i = 0; $i < $array_count; ++$i) 325 326 { 326 327 echo '<dd class="'.$array[$i]['t'].'">'.$array[$i]['m'].'</dd>'; -
trunk/library/mime/mime.php
r7655 r7673 895 895 case !$text && !$html && $attachments: 896 896 $message =& $this->_addMixedPart(); 897 for ($i = 0; $i < count($this->_parts); ++$i) { 897 $parts_count = count($this->_parts); 898 for ($i = 0; $i < $parts_count; ++$i) { 898 899 $this->_addAttachmentPart($message, $this->_parts[$i]); 899 900 } … … 903 904 $message =& $this->_addMixedPart(); 904 905 $this->_addTextPart($message, $this->_txtbody); 905 for ($i = 0; $i < count($this->_parts); ++$i) { 906 $parts_count = count($this->_parts); 907 for ($i = 0; $i < $parts_count; ++$i) { 906 908 $this->_addAttachmentPart($message, $this->_parts[$i]); 907 909 } … … 930 932 $ht =& $this->_addRelatedPart($message); 931 933 $this->_addHtmlPart($ht); 932 for ($i = 0; $i < count($this->_html_images); ++$i) { 934 $html_images_count = count($this->_html_images); 935 for ($i = 0; $i < $html_images_count; ++$i) { 933 936 $this->_addHtmlImagePart($ht, $this->_html_images[$i]); 934 937 } … … 939 942 $message =& $this->_addRelatedPart($null); 940 943 $this->_addHtmlPart($message); 941 for ($i = 0; $i < count($this->_html_images); ++$i) { 944 $html_images_count = count($this->_html_images); 945 for ($i = 0; $i < $html_images_count; ++$i) { 942 946 $this->_addHtmlImagePart($message, $this->_html_images[$i]); 943 947 } … … 958 962 $this->_addHtmlPart($message); 959 963 } 960 for ($i = 0; $i < count($this->_html_images); ++$i) { 964 $html_images_count = count($this->_html_images); 965 for ($i = 0; $i < $html_images_count; ++$i) { 961 966 $this->_addHtmlImagePart($message, $this->_html_images[$i]); 962 967 } … … 973 978 $this->_addHtmlPart($message); 974 979 } 975 for ($i = 0; $i < count($this->_parts); ++$i) { 980 $parts_count = count($this->_parts); 981 for ($i = 0; $i < $parts_count; ++$i) { 976 982 $this->_addAttachmentPart($message, $this->_parts[$i]); 977 983 } … … 989 995 } 990 996 $this->_addHtmlPart($rel); 991 for ($i = 0; $i < count($this->_html_images); ++$i) { 997 $html_images_count = count($this->_html_images); 998 for ($i = 0; $i < $html_images_count; ++$i) { 992 999 $this->_addHtmlImagePart($rel, $this->_html_images[$i]); 993 1000 } 994 for ($i = 0; $i < count($this->_parts); ++$i) { 1001 $parts_count = count($this->_parts); 1002 for ($i = 0; $i < $parts_count; ++$i) { 995 1003 $this->_addAttachmentPart($message, $this->_parts[$i]); 996 1004 } … … 1008 1016 $this->_addHtmlPart($message); 1009 1017 } 1010 1011 for ($i = 0; $i < count($this->_html_images); ++$i) { 1018 1019 $html_images_count = count($this->_html_images); 1020 for ($i = 0; $i < $html_images_count; ++$i) { 1012 1021 $this->_addHtmlImagePart($message, $this->_html_images[$i]); 1013 1022 } 1014 for ($i = 0; $i < count($this->_parts); ++$i) { 1023 $parts_count = count($this->_parts); 1024 for ($i = 0; $i < $parts_count; ++$i) { 1015 1025 $this->_addAttachmentPart($message, $this->_parts[$i]); 1016 1026 } -
trunk/library/mime/mimeDecode.php
r7655 r7673 326 326 327 327 $parts = $this->_boundarySplit($body, $content_type['other']['boundary']); 328 for ($i = 0; $i < count($parts); ++$i) { 328 $parts_count = count($parts); 329 for ($i = 0; $i < $parts_count; ++$i) { 329 330 list($part_header, $part_body) = $this->_splitBodyHeader($parts[$i]); 330 331 $part = $this->_decode($part_header, $part_body, $default_ctype); … … 386 387 $return[$prepend . $mime_number] = &$structure; 387 388 } 388 for ($i = 0; $i < count($structure->parts); ++$i) {389 389 $structure_parts_count = count($structure->parts); 390 for ($i = 0; $i < $structure_parts_count; ++$i) { 390 391 391 392 if (!empty($structure->headers['content-type']) AND substr(strtolower($structure->headers['content-type']), 0, 8) == 'message/') { … … 792 793 preg_match_all("/begin ([0-7]{3}) (.+)\r?\n(.+)\r?\nend/Us", $input, $matches); 793 794 794 for ($j = 0; $j < count($matches[3]); ++$j) { 795 $matches_count = count($matches[3]); 796 for ($j = 0; $j < $matches_count; ++$j) { 795 797 796 798 $str = $matches[3][$j]; … … 943 945 // Multiple headers with this name 944 946 if (is_array($headers[$hdr_name])) { 945 for ($i = 0; $i < count($hdr_value); ++$i) { 947 $hdr_value_count = count($hdr_value); 948 for ($i = 0; $i < $hdr_value_count; ++$i) { 946 949 $output .= Mail_mimeDecode::_getXML_helper($hdr_name, $hdr_value[$i], $indent); 947 950 } … … 954 957 955 958 if (!empty($input->parts)) { 956 for ($i = 0; $i < count($input->parts); ++$i) { 959 $parts_count = count($input->parts); 960 for ($i = 0; $i < $parts_count; ++$i) { 957 961 $output .= $crlf . str_repeat($htab, $indent) . '<mimepart>' . $crlf . 958 962 Mail_mimeDecode::_getXML($input->parts[$i], $indent+1) . -
trunk/library/mime/mimePart.php
r7655 r7673 283 283 $encoded['body'] = ''; 284 284 285 for ($i = 0; $i < count($this->_subparts); ++$i) { 285 $subparts_count = count($this->_subparts); 286 for ($i = 0; $i < $subparts_count; ++$i) { 286 287 $encoded['body'] .= '--' . $boundary . $eol; 287 288 $tmp = $this->_subparts[$i]->encode(); … … 393 394 394 395 if (count($this->_subparts)) { 395 for ($i = 0; $i < count($this->_subparts); ++$i) { 396 $subparts_count = count($this->_subparts); 397 for ($i = 0; $i < $subparts_count; ++$i) { 396 398 fwrite($fh, $f_eol . '--' . $boundary . $eol); 397 399 $res = $this->_subparts[$i]->_encodePartToFile($fh); -
trunk/listAdmin/inc/class.db_functions.inc.php
r7655 r7673 282 282 while($this->db->next_record()) 283 283 $user_app[] = $this->db->row(); 284 285 for ($i=0; $i<count($user_app); ++$i) 284 285 $user_app_count = count($user_app); 286 for ($i=0; $i<$user_app_count; ++$i) 286 287 $return['groups'][] = $user_app[$i]['acl_location']; 287 288 -
trunk/listAdmin/inc/class.ldap_functions.inc.php
r7655 r7673 746 746 $entry[0]['dn'] = strtolower($entry[0]['dn']); 747 747 $sector_dn_array = explode(",", $entry[0]['dn']); 748 for($i=1; $i<count($sector_dn_array); ++$i) 748 $sector_dn_array_count = count($sector_dn_array); 749 for($i=1; $i<$sector_dn_array_count; ++$i) 749 750 $sector_dn .= $sector_dn_array[$i] . ','; 750 751 //Retira ultimo pipe. … … 844 845 $entry[0]['dn'] = strtolower($entry[0]['dn']); 845 846 $sector_dn_array = explode(",", $entry[0]['dn']); 846 for($i=1; $i<count($sector_dn_array); ++$i) 847 $sector_dn_array_count = count($sector_dn_array); 848 for($i=1; $i<$sector_dn_array_count; ++$i) 847 849 $sector_dn .= $sector_dn_array[$i] . ','; 848 850 //Retira ultimo pipe. … … 925 927 $entry[0]['dn'] = strtolower($entry[0]['dn']); 926 928 $sector_dn_array = explode(",", $entry[0]['dn']); 927 for($i=1; $i<count($sector_dn_array); ++$i) 929 $sector_dn_array_count = count($sector_dn_array); 930 for($i=1; $i<$sector_dn_array_count; ++$i) 928 931 $sector_dn .= $sector_dn_array[$i] . ','; 929 932 //Retira ultimo pipe. … … 1006 1009 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1007 1010 $sector_dn_array = explode(",", $entry[0]['dn']); 1008 for($i=1; $i<count($sector_dn_array); ++$i) 1011 $sector_dn_array_count = count($sector_dn_array); 1012 for($i=1; $i<$sector_dn_array_count; ++$i) 1009 1013 $sector_dn .= $sector_dn_array[$i] . ','; 1010 1014 //Retira ultimo pipe. … … 1086 1090 $entry[0]['dn'] = strtolower($entry[0]['dn']); 1087 1091 $sector_dn_array = explode(",", $entry[0]['dn']); 1088 for($i=1; $i<count($sector_dn_array); ++$i) 1092 $sector_dn_array_count = count($sector_dn_array); 1093 for($i=1; $i<$sector_dn_array_count; ++$i) 1089 1094 $sector_dn .= $sector_dn_array[$i] . ','; 1090 1095 //Retira ultimo pipe. -
trunk/phpgwapi/inc/adodb/session/adodb-session.php
r6057 r7673 48 48 $variables = array( ); 49 49 $a = preg_split( '/(\w+)\|/', $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); 50 for( $i = 0; $i < count( $a ); $i = $i+2 ) { 50 $a_count = count( $a ); 51 for( $i = 0; $i < $a_count; $i = $i+2 ) { 51 52 $variables[$a[$i]] = unserialize( $a[$i+1] ); 52 53 } -
trunk/phpgwapi/inc/adodb/session/adodb-session2.php
r6057 r7673 78 78 $variables = array( ); 79 79 $a = preg_split( '/(\w+)\|/', $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); 80 for( $i = 0; $i < count( $a ); $i = $i+2 ) { 80 $a_count = count( $a ); 81 for( $i = 0; $i < $a_count; $i = $i+2 ) { 81 82 $variables[$a[$i]] = unserialize( $a[$i+1] ); 82 83 } -
trunk/phpgwapi/inc/class.accounts.inc.php
r7655 r7673 436 436 $this->memberships = Array(); 437 437 438 for ($idx=0; $idx<count($security_equals); ++$idx) 438 $security_equals_count = count($security_equals); 439 for ($idx=0; $idx<$security_equals_count; ++$idx) 439 440 { 440 441 $groups = (int)$security_equals[$idx]; … … 463 464 } 464 465 465 for ($idx=0; $idx<count($security_equals); ++$idx) 466 $security_equals_count = count($security_equals); 467 for ($idx=0; $idx<$security_equals_count; ++$idx) 466 468 { 467 469 $name = $this->id2name((int)$security_equals[$idx]); -
trunk/phpgwapi/inc/class.accounts_contacts.inc.php
r7655 r7673 172 172 173 173 /* get user information for each user/group */ 174 for($i=0;$i<count($allValues);++$i) 174 $allValues_count = count($allValues); 175 for($i=0;$i<$allValues_count;++$i) 175 176 { 176 177 $accounts[] = Array( -
trunk/phpgwapi/inc/class.accounts_ldap.inc.php
r7655 r7673 277 277 $members = $this->member($this->account_id); 278 278 $newData['memberuid'] = array(); 279 for($i=0;$i<count($members);++$i) 279 $members_count = count($members); 280 for($i=0;$i<$members_count;++$i) 280 281 { 281 282 $currname = $this->id2name($members[$i]['account_id']); … … 308 309 #_debug_array($members); 309 310 $newData['memberuid'] = array(); 310 for($i=0;$i<count($members);++$i) 311 $members_count = count($members); 312 for($i=0;$i<$members_count;++$i) 311 313 { 312 314 $currname = $this->id2name($members[$i]['account_id']); -
trunk/phpgwapi/inc/class.categories.inc.php
r7655 r7673 422 422 if($self) 423 423 { 424 for ($i=0;$i<count($cats);++$i) 424 $cats_count = count($cats); 425 for ($i=0;$i<$cats_count;++$i) 425 426 { 426 427 if ($cats[$i]['id'] == $self) … … 467 468 if ($this->total_records > 0) 468 469 { 469 for ($i=0;$i<count($cats);++$i) 470 $cats_count = count($cats); 471 for ($i=0;$i<$cats_count;++$i) 470 472 { 471 473 $image_set = ' '; … … 576 578 $new_parent = $this->id2name($cat_id,'parent'); 577 579 578 for ($i=0;$i<count($cats);++$i) 580 $cats_count = count($cats); 581 for ($i=0;$i<$cats_count;++$i) 579 582 { 580 583 if ($cats[$i]['level'] == 1) -
trunk/phpgwapi/inc/class.common.inc.php
r7655 r7673 435 435 $html_error = '<table border="0" width="100%"><tr><td align="right"><b>' . lang($text) 436 436 . '</b>: </td><td align="left">' . $errors[0] . '</td></tr>'; 437 for ($i=1; $i<count($errors); ++$i) 437 $errors_count = count($errors); 438 for ($i=1; $i<$errors_count; ++$i) 438 439 { 439 440 $html_error .= '<tr><td> </td><td align="left">' . $errors[$i] . '</td></tr>'; -
trunk/phpgwapi/inc/class.contacts_ldap.inc.php
r7655 r7673 328 328 { 329 329 $i=0; 330 for($i=0;$i<count($filterarray);++$i) 330 $filterarray_count = count($filterarray); 331 for($i=0;$i<$filterarray_count;++$i) 331 332 { 332 333 list($name,$value) = preg_split('/=/',$filterarray[$i]); -
trunk/phpgwapi/inc/class.errorlog.inc.php
r7655 r7673 124 124 125 125 $errorstack = $this->errorstack; 126 for ($i = 0; $i < count($errorstack); ++$i) 126 $errorstack_count = count($errorstack); 127 for ($i = 0; $i < $errorstack_count; ++$i) 127 128 { 128 129 $err = $errorstack[$i]; … … 153 154 $new = array(); 154 155 reset($this->errorstack); 155 for ($i = 0; $i < count($this->errorstack); ++$i) 156 $errorstack_count = count($this->errorstack); 157 for ($i = 0; $i < $errorstack_count; ++$i) 156 158 { 157 159 $err = $this->errorstack[$i]; … … 182 184 183 185 $errorstack = $this->errorstack; 184 for ($i = 0; $i < count($errorstack); ++$i) 186 $errorstack_count = count($errorstack); 187 for ($i = 0; $i < $errorstack_count; ++$i) 185 188 { 186 189 $err = $errorstack[$i]; -
trunk/phpgwapi/inc/class.gdgraph.inc.php
r7655 r7673 274 274 $linespace = ($this->graph_height - $this->margin_top - $this->margin_bottom) / ($this->num_lines_y - 1); 275 275 $space = 1; 276 for ($i = 0;$i<count($this->data);++$i) 276 $data_count = count($this->data); 277 for ($i = 0;$i<$data_count;++$i) 277 278 { 278 279 $y = $this->graph_height - $this->margin_bottom - ($space * $linespace) - 7; -
trunk/phpgwapi/inc/class.http.inc.php
r5912 r7673 265 265 return('5 it was not specified a valid POST method values array'); 266 266 } 267 for($request_body = '',Reset($values),$value=0;$value<count($values);Next($values),$value++) 267 $values_count = count($values); 268 for($request_body = '',Reset($values),$value=0;$value<$values_count;Next($values),$value++) 268 269 { 269 270 if($value>0) … … 296 297 if(@is_array($header_value)) 297 298 { 298 for(Reset($header_value),$value=0;$value<count($header_value);Next($header_value),$value++) 299 $header_value_count = count($header_value); 300 for(Reset($header_value),$value=0;$value<$header_value_count;Next($header_value),$value++) 299 301 { 300 302 if(!$success = $this->PutLine("$header_name: ".$header_value[Key($header_value)])) … … 327 329 { 328 330 $now = gmdate('Y-m-d H-i-s'); 329 for($cookies = array(),$domain=0,Reset($this->cookies[0]);$domain<count($this->cookies[0]);Next($this->cookies[0]),$domain++) 331 $cookies_count = count($this->cookies[0]); 332 for($cookies = array(),$domain=0,Reset($this->cookies[0]);$domain<$cookies_count;Next($this->cookies[0]),$domain++) 330 333 { 331 334 $domain_pattern = Key($this->cookies[0]); … … 335 338 ($match == 0 || $domain_pattern[0] == '.' || $this->request_host[$match-1] == '.')) 336 339 { 337 for(Reset($this->cookies[0][$domain_pattern]),$path_part=0;$path_part<count($this->cookies[0][$domain_pattern]);Next($this->cookies[0][$domain_pattern]),$path_part++) 340 $cookies_count = count($this->cookies[0][$domain_pattern]); 341 for(Reset($this->cookies[0][$domain_pattern]),$path_part=0;$path_part<$cookies_count;Next($this->cookies[0][$domain_pattern]),$path_part++) 338 342 { 339 343 $path = Key($this->cookies[0][$domain_pattern]); 340 344 if(strlen($this->request_uri) >= strlen($path) && substr($this->request_uri,0,strlen($path)) == $path) 341 345 { 342 for(Reset($this->cookies[0][$domain_pattern][$path]),$cookie = 0;$cookie<count($this->cookies[0][$domain_pattern][$path]);Next($this->cookies[0][$domain_pattern][$path]),$cookie++) 346 $cookies_count = count($this->cookies[0][$domain_pattern][$path]); 347 for(Reset($this->cookies[0][$domain_pattern][$path]),$cookie = 0;$cookie<$cookies_count;Next($this->cookies[0][$domain_pattern][$path]),$cookie++) 343 348 { 344 349 $cookie_name = Key($this->cookies[0][$domain_pattern][$path]); … … 353 358 } 354 359 } 355 for(Reset($cookies),$cookie=0;$cookie<count($cookies);Next($cookies),$cookie++) 360 $cookies_count = count($cookies); 361 for(Reset($cookies),$cookie=0;$cookie<$cookies_count;Next($cookies),$cookie++) 356 362 { 357 363 $cookie_name = Key($cookies); … … 525 531 { 526 532 $secure = Key($this->cookies); 527 for($domain = 0,Reset($this->cookies[$secure]);$domain<count($this->cookies[$secure]);Next($this->cookies[$secure]),$domain++) 533 $cookies_count = count($this->cookies[$secure]); 534 for($domain = 0,Reset($this->cookies[$secure]);$domain<$cookies_count;Next($this->cookies[$secure]),$domain++) 528 535 { 529 536 $domain_pattern = Key($this->cookies[$secure]); 530 for(Reset($this->cookies[$secure][$domain_pattern]),$path_part=0;$path_part<count($this->cookies[$secure][$domain_pattern]);Next($this->cookies[$secure][$domain_pattern]),$path_part++) 537 $cookies_count = count($this->cookies[$secure][$domain_pattern]); 538 for(Reset($this->cookies[$secure][$domain_pattern]),$path_part=0;$path_part<$cookies_count;Next($this->cookies[$secure][$domain_pattern]),$path_part++) 531 539 { 532 540 $path=Key($this->cookies[$secure][$domain_pattern]); 533 for(Reset($this->cookies[$secure][$domain_pattern][$path]),$cookie=0;$cookie<count($this->cookies[$secure][$domain_pattern][$path]);Next($this->cookies[$secure][$domain_pattern][$path]),$cookie++) 541 $cookies_count = count($this->cookies[$secure][$domain_pattern][$path]); 542 for(Reset($this->cookies[$secure][$domain_pattern][$path]),$cookie=0;$cookie<$cookies_count;Next($this->cookies[$secure][$domain_pattern][$path]),$cookie++) 534 543 { 535 544 $cookie_name = Key($this->cookies[$secure][$domain_pattern][$path]); -
trunk/phpgwapi/inc/class.listbox.inc.php
r7655 r7673 72 72 $this->p->parse('row','portal_listbox_header',True); 73 73 74 for ($x = 0; $x < count($this->data); ++$x) 74 $data_count = count($this->data); 75 for ($x = 0; $x < $data_count; ++$x) 75 76 { 76 77 $var = Array( -
trunk/phpgwapi/inc/class.log.inc.php
r7655 r7673 92 92 93 93 $errorstack = $this->errorstack; 94 for ($i = 0; $i < count($errorstack); ++$i) 94 $errorstack_count = count($errorstack); 95 for ($i = 0; $i < $errorstack_count; ++$i) 95 96 { 96 97 $err = $errorstack[$i]; … … 115 116 $new = array(); 116 117 reset($this->errorstack); 117 for ($i = 0; $i < count($this->errorstack); ++$i) 118 $errorstack_count = count($this->errorstack); 119 for ($i = 0; $i < $errorstack_count; ++$i) 118 120 { 119 121 $err = $this->errorstack[$i]; … … 141 143 142 144 $errorstack = $this->errorstack; 143 for ($i = 0; $i < count($errorstack); ++$i) 145 $errorstack_count = count($errorstack); 146 for ($i = 0; $i < $errorstack_count; ++$i) 144 147 { 145 148 $err = $errorstack[$i]; -
trunk/phpgwapi/inc/class.phpmailer.inc.php
r7655 r7673 443 443 function MailSend($header, $body) { 444 444 $to = ""; 445 for($i = 0; $i < count($this->to); ++$i) 445 $to_count = count($this->to); 446 for($i = 0; $i < $to_count; ++$i) 446 447 { 447 448 if($i != 0) { $to .= ", "; } … … 497 498 498 499 // Attempt to send attach all recipients 499 for($i = 0; $i < count($this->to); ++$i) 500 $to_count = count($this->to); 501 for($i = 0; $i < $to_count; ++$i) 500 502 { 501 503 if(!$this->smtp->Recipient($this->to[$i][0])) 502 504 $bad_rcpt[] = $this->to[$i][0]; 503 505 } 504 for($i = 0; $i < count($this->cc); ++$i) 506 $cc_count = count($this->cc); 507 for($i = 0; $i < $cc_count; ++$i) 505 508 { 506 509 if(!$this->smtp->Recipient($this->cc[$i][0])) 507 510 $bad_rcpt[] = $this->cc[$i][0]; 508 511 } 509 for($i = 0; $i < count($this->bcc); ++$i) 512 $bcc_count = count($this->bcc); 513 for($i = 0; $i < $bcc_count; ++$i) 510 514 { 511 515 if(!$this->smtp->Recipient($this->bcc[$i][0])) … … 515 519 if(count($bad_rcpt) > 0) // Create error message 516 520 { 517 for($i = 0; $i < count($bad_rcpt); ++$i) 521 $bad_rcpt_count = count($bad_rcpt); 522 for($i = 0; $i < $bad_rcpt_count; ++$i) 518 523 { 519 524 if($i != 0) { $error .= ", "; } … … 645 650 if(count($addr) > 1) 646 651 { 647 for($i = 1; $i < count($addr); ++$i) 652 $addr_count = count($addr); 653 for($i = 1; $i < $addr_count; ++$i) 648 654 $addr_str .= ", " . $this->AddrFormat($addr[$i]); 649 655 } … … 686 692 $line = explode($this->LE, $message); 687 693 $message = ""; 688 for ($i=0 ;$i < count($line); ++$i) 694 $line_count = count($line); 695 for ($i=0 ;$i < $line_count; ++$i) 689 696 { 690 697 $line_part = explode(" ", $line[$i]); 691 698 $buf = ""; 692 for ($e = 0; $e<count($line_part); ++$e) 699 $line_part_count = count($line_part); 700 for ($e = 0; $e<$line_part_count; ++$e) 693 701 { 694 702 $word = $line_part[$e]; … … 830 838 831 839 // Add custom headers 832 for($index = 0; $index < count($this->CustomHeader); ++$index) 840 $CustomHeader_count = count($this->CustomHeader); 841 for($index = 0; $index < $CustomHeader_count; ++$index) 833 842 { 834 843 $result .= $this->HeaderLine(trim($this->CustomHeader[$index][0]), … … 1053 1062 1054 1063 // Add all attachments 1055 for($i = 0; $i < count($this->attachment); ++$i) 1064 $attachment_count = count($this->attachment); 1065 for($i = 0; $i < $attachment_count; ++$i) 1056 1066 { 1057 1067 // Check for string attachment … … 1326 1336 function InlineImageExists() { 1327 1337 $result = false; 1328 for($i = 0; $i < count($this->attachment); ++$i) 1338 $attachment_count = count($this->attachment); 1339 for($i = 0; $i < $attachment_count; ++$i) 1329 1340 { 1330 1341 if($this->attachment[$i][6] == "inline") -
trunk/phpgwapi/inc/class.resultbox.inc.php
r7655 r7673 54 54 echo '<table border="0" cellpadding="0" cellspacing="0" width="'.$this->getvar('innerwidth') 55 55 . '" bgcolor="' . $this->getvar('innerbgcolor') . '">'; 56 for ($x = 0; $x < count($this->data); ++$x) 56 $data_count = count($this->data); 57 for ($x = 0; $x < $data_count; ++$x) 57 58 { 58 59 echo '<tr>'; -
trunk/phpgwapi/inc/class.sbox.inc.php
r7655 r7673 139 139 { 140 140 $out = ''; 141 for($i=0;$i<count($this->weekdays);++$i) 141 $weekdays_count = count($this->weekdays); 142 for($i=0;$i<$weekdays_count;++$i) 142 143 { 143 144 $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($this->weekdays[$i]!=''?lang($this->weekdays[$i]):'').'</option>'."\n"; … … 148 149 function nr2weekday($selected = 0) 149 150 { 150 for($i=0;$i<count($this->weekdays);++$i) 151 $weekdays_count = count($this->weekdays); 152 for($i=0;$i<$weekdays_count;++$i) 151 153 { 152 154 if ($selected > 0 && $selected == $i) … … 251 253 $out = '<select name="' . $name . '">'; 252 254 253 for($i=1;$i<count($arr);++$i) 255 $arr_count = count($arr); 256 for($i=1;$i<$arr_count;++$i) 254 257 { 255 258 $out .= "<option value=\""; … … 304 307 if(@is_array($selected)) 305 308 { 306 for($i=0;$i<count($selected);++$i) 309 $selected_count = count($selected); 310 for($i=0;$i<$selected_count;++$i) 307 311 { 308 312 if ($group['account_id'] == $selected[$i]) -
trunk/phpgwapi/inc/class.setup.inc.php
r7655 r7673 302 302 } 303 303 $values = explode('.',$value); 304 for($i = 0; $i < count($values); ++$i) 304 $values_count = count($values); 305 for($i = 0; $i < $values_count; ++$i) 305 306 { 306 307 if ((int) $values[$i] != (int) $remotes[$i]) … … 710 711 $less = 0; 711 712 712 for($i=0;$i<count($testa);++$i) 713 $testa_count = count($testa); 714 for($i=0;$i<$testa_count;++$i) 713 715 { 714 716 if($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is less than ' . (int)$testb[$i] . ' ...'; } … … 792 794 $less = 0; 793 795 794 for($i=0;$i<count($testa);++$i) 796 $testa_count = count($testa); 797 for($i=0;$i<$testa_count;++$i) 795 798 { 796 799 if($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is more than ' . (int)$testb[$i] . ' ...'; } -
trunk/phpgwapi/inc/class.soap_server.inc.php
r7655 r7673 359 359 } 360 360 // validate each param's type 361 for($i=0; $i < count($p); ++$i) 361 $p_count = count($p); 362 for($i=0; $i < $p_count; ++$i) 362 363 { 363 364 // type not match -
trunk/phpgwapi/inc/class.vcard.inc.php
r7655 r7673 624 624 // Takes an array of contacts class fields/values, turns it into a vcard string: 625 625 // 626 // for($i=0;$i<count($buffer);++$i) 626 // $buffer_count = count($buffer); 627 // for($i=0;$i<$buffer_count;++$i) 627 628 // { 628 629 // $vcards .= $this->vcard->out($buffer[$i]); -
trunk/phpgwapi/inc/common_functions.inc.php
r7655 r7673 1083 1083 $less = 0; 1084 1084 1085 for ($i=0;$i<count($testa);++$i) 1085 $testa_count = count($testa); 1086 for ($i=0;$i<$testa_count;++$i) 1086 1087 { 1087 1088 if ($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is less than ' . (int)$testb[$i] . ' ...'; } … … 1163 1164 $less = 0; 1164 1165 1165 for ($i=0;$i<count($testa);++$i) 1166 $testa_count = count($testa); 1167 for ($i=0;$i<$testa_count;++$i) 1166 1168 { 1167 1169 if ($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is more than ' . (int)$testb[$i] . ' ...'; } -
trunk/phpgwapi/inc/csstidy/class.csstidy.php
r7655 r7673 419 419 $template = explode('|',$content); 420 420 421 for ($i = 0; $i < count($template); ++$i ) 421 $template_count = count($template); 422 for ($i = 0; $i < $template_count; ++$i ) 422 423 { 423 424 $this->template[$i] = $template[$i]; -
trunk/phpgwapi/inc/csstidy/class.csstidy_optimise.php
r7655 r7673 302 302 $color_tmp = substr($color,4,strlen($color)-5); 303 303 $color_tmp = explode(',',$color_tmp); 304 for ( $i = 0; $i < count($color_tmp); ++$i ) 304 $color_tmp_count = count($color_tmp); 305 for ( $i = 0; $i < $color_tmp_count; ++$i ) 305 306 { 306 307 $color_tmp[$i] = trim ($color_tmp[$i]); … … 383 384 $temp = array($subvalue); 384 385 } 385 for ($l = 0; $l < count($temp);++$l) 386 $temp_count = count($temp); 387 for ($l = 0; $l < $temp_count;++$l) 386 388 { 387 389 // continue if no numeric value … … 665 667 666 668 $str_value = csstidy_optimise::explode_ws(',',$str_value); 667 for($i = 0; $i < count($str_value); ++$i) 669 $str_value_count = count($str_value); 670 for($i = 0; $i < $str_value_count; ++$i) 668 671 { 669 672 $have['clip'] = FALSE; $have['pos'] = FALSE; … … 672 675 $str_value[$i] = csstidy_optimise::explode_ws(' ',trim($str_value[$i])); 673 676 674 for($j = 0; $j < count($str_value[$i]); ++$j) 677 $str_value_count = count($str_value[$i]); 678 for($j = 0; $j < $str_value_count; ++$j) 675 679 { 676 680 if($have['bg'] === FALSE && (substr($str_value[$i][$j],0,4) == 'url(' || $str_value[$i][$j] === 'none')) -
trunk/phpgwapi/inc/fpdf/fpdf.php
r7655 r7673 1283 1283 { 1284 1284 $trns=''; 1285 for($i=0;$i<count($info['trns']);++$i) 1285 $info_trns_count = count($info['trns']); 1286 for($i=0;$i<$info_trns_count;++$i) 1286 1287 $trns.=$info['trns'][$i].' '.$info['trns'][$i].' '; 1287 1288 $this->_out('/Mask ['.$trns.']'); -
trunk/phpgwapi/inc/fpdf/tutorial/tuto5.php
r7655 r7673 38 38 $w=array(40,35,40,45); 39 39 //Header 40 for($i=0;$i<count($header);++$i) 40 $header_count = count($header); 41 for($i=0;$i<$header_count;++$i) 41 42 $this->Cell($w[$i],7,$header[$i],1,0,'C'); 42 43 $this->Ln(); … … 65 66 //Header 66 67 $w=array(40,35,40,45); 67 for($i=0;$i<count($header);++$i) 68 $header_count = count($header); 69 for($i=0;$i<$header_count;++$i) 68 70 $this->Cell($w[$i],7,$header[$i],1,0,'C',1); 69 71 $this->Ln(); -
trunk/phpgwapi/templates/classic/login_classic.php
r7655 r7673 238 238 $obj_organization = CreateObject('phpgwapi.sector_search_ldap'); 239 239 $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 240 241 for ($i=0; $i<count($organizations); ++$i) 240 241 $organizations_count = count($organizations); 242 for ($i=0; $i<$organizations_count; ++$i) 242 243 { 243 244 $tmp_array[strtolower($organizations[$i])] = $organizations[$i]; -
trunk/phpgwapi/templates/default/login_default.php
r7655 r7673 350 350 $obj_organization = CreateObject('phpgwapi.sector_search_ldap'); 351 351 $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 352 353 for ($i=0; $i<count($organizations); ++$i) 352 353 $organizations_count = count($organizations); 354 for ($i=0; $i<$organizations_count; ++$i) 354 355 { 355 356 $tmp_array[strtolower($organizations[$i])] = $organizations[$i]; -
trunk/phpgwapi/templates/news/login_news.php
r7655 r7673 286 286 $obj_organization = CreateObject('phpgwapi.sector_search_ldap'); 287 287 $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 288 289 for ($i=0; $i<count($organizations); ++$i) 288 289 $organizations_count = count($organizations); 290 for ($i=0; $i<$organizations_count; ++$i) 290 291 { 291 292 $tmp_array[strtolower($organizations[$i])] = $organizations[$i]; -
trunk/preferences/inc/class.uiaclprefs.inc.php
r7655 r7673 112 112 } 113 113 } 114 115 for($i=0;$i<count($to_remove);++$i) { 114 115 $to_remove_count = count($to_remove); 116 for($i=0;$i<$to_remove_count;++$i) { 116 117 117 118 if(!array_key_exists((int)$to_remove[$i],$keys_to_keep)) { -
trunk/preferences/inc/class.uicategories.inc.php
r7655 r7673 83 83 function cat_data($edata,$data) 84 84 { 85 for ($j=0;$j<count($edata);++$j) 85 $edata_count = count($edata); 86 for ($j=0;$j<$edata_count;++$j) 86 87 { 87 88 $td_data .= '<td>' . $data[$edata[$j]] . '</td>' . "\n"; … … 169 170 if (is_array($edata)) 170 171 { 171 for($i=0;$i<count($edata);++$i) 172 $edata_count = count($edata); 173 for($i=0;$i<$edata_count;++$i) 172 174 { 173 175 $GLOBALS['phpgw']->template->set_var('th_data','<td bgcolor="' . $GLOBALS['phpgw_info']['theme']['th_bg'] . '">' . lang($edata[$i]) . '</td>'); … … 181 183 182 184 // -------------------------- end header declaration -------------------------------------- 183 184 for ($i=0;$i< count($cats);++$i)185 $cats_count = count($cats); 186 for ($i=0;$i<$cats_count;++$i) 185 187 { 186 188 $this->nextmatchs->template_alternate_row_color($GLOBALS['phpgw']->template); … … 375 377 { 376 378 $edata = explode(',',$extra); 377 for($i=0;$i<count($edata);++$i) 379 $edata_count = count($edata); 380 for($i=0;$i<$edata_count;++$i) 378 381 { 379 382 $GLOBALS['phpgw']->template->set_var('tr_color',$GLOBALS['phpgw']->nextmatchs->alternate_row_color()); … … 506 509 507 510 $data = unserialize($cats[0]['data']); 508 for($i=0;$i<count($edata);++$i) 511 $edata_count = count($edata); 512 for($i=0;$i<$edata_count;++$i) 509 513 { 510 514 $GLOBALS['phpgw']->template->set_var('td_data','<input name="cat_data[' . $edata[$i] . ']" size="50" value="' . $data[$edata[$i]] . '">'); -
trunk/prototype/modules/catalog/interceptors/CatalogDBMapping.php
r7655 r7673 23 23 24 24 if(count($params)>0 && isset($params[0]['id'])){ 25 for($i=0; $i < count($params); ++$i){ 25 $params_count = count($params); 26 for($i=0; $i < $params_count; ++$i){ 26 27 //Retorna o telefone e o e-mail padrao de um determinado contato 27 28 $sql = ' SELECT phpgw_cc_contact_conns.id_typeof_contact_connection as type, phpgw_cc_connections.connection_value as value ' -
trunk/prototype/services/ImapServiceAdapter.php
r7655 r7673 171 171 if( $filter[0] !== 'msgNumber' ) 172 172 { 173 for( $i = 0; $i < count($filter); ++$i ) 174 { 175 if( count( $filter[$i] ) === 4 ) 176 $criteria['isExact'] = ( array_shift( $filter[$i] ) === 'AND' ); 177 178 $criteria[ $filter[$i][0] ] = array( 'criteria' => $filter[$i][2], 'filter' => $filter[$i][1] ); 179 } 180 181 return $this->searchSieveRule($criteria); 173 $filter_count = count($filter); 174 for( $i = 0; $i < $filter_count; ++$i ) 175 { 176 if( count( $filter[$i] ) === 4 ) 177 $criteria['isExact'] = ( array_shift( $filter[$i] ) === 'AND' ); 178 179 $criteria[ $filter[$i][0] ] = array( 'criteria' => $filter[$i][2], 'filter' => $filter[$i][1] ); 180 } 181 182 return $this->searchSieveRule($criteria); 182 183 } 183 184 … … 188 189 189 190 if( empty( $msgNumber ) ) 190 return( false );191 return( false ); 191 192 192 193 $result = $this->get_info_msgs( array( 'folder' => $folder_name, … … 213 214 214 215 $response = array( "page" => $page, "total" => $total_pages, "records" => $count ); 215 216 for ($i=0; $i< count($result); ++$i)216 $result_count = count($result); 217 for ($i=0; $i<$result_count; ++$i) 217 218 { 218 219 $flags_enum = array('Unseen'=> 1, 'Answered'=> 1, 'Forwarded'=> 1, 'Flagged'=> 1, 'Recent'=> 1, 'Draft'=> 1 ); -
trunk/prototype/services/PostgreSQL.php
r7655 r7673 358 358 $orderDesc = array( $orderDesc ); 359 359 } 360 361 for($i=0; $i< count($order); ++$i){360 $order_count = count($order); 361 for($i=0; $i<$order_count; ++$i){ 362 362 $order[$i] .= ($orderDesc[$i] === true) ? ' DESC' : ''; 363 363 } -
trunk/reports/inc/class.fpdf.inc.php
r7655 r7673 1589 1589 { 1590 1590 $trns=''; 1591 for($i=0;$i<count($info['trns']);++$i) 1591 $info_trns_count = count($info['trns']); 1592 for($i=0;$i<$info_trns_count;++$i) 1592 1593 $trns.=$info['trns'][$i].' '.$info['trns'][$i].' '; 1593 1594 $this->_out('/Mask ['.$trns.']'); -
trunk/reports/inc/class.ldap_functions.inc.php
r7655 r7673 136 136 $entry[0]['dn'] = strtolower($entry[0]['dn']); 137 137 $sector_dn_array = explode(",", $entry[0]['dn']); 138 for($i=1; $i<count($sector_dn_array); ++$i) 138 $sector_dn_array_count = count($sector_dn_array); 139 for($i=1; $i<$sector_dn_array_count; ++$i) 139 140 $sector_dn .= $sector_dn_array[$i] . ','; 140 141 //Retira ultimo pipe. … … 268 269 $entry[0]['dn'] = strtolower($entry[0]['dn']); 269 270 $sector_dn_array = explode(",", $entry[0]['dn']); 270 for($i=1; $i<count($sector_dn_array); ++$i) 271 $sector_dn_array_count = count($sector_dn_array); 272 for($i=1; $i<$sector_dn_array_count; ++$i) 271 273 $sector_dn .= $sector_dn_array[$i] . ','; 272 274 //Retira ultimo pipe. … … 366 368 $entry[0]['dn'] = strtolower($entry[0]['dn']); 367 369 $sector_dn_array = explode(",", $entry[0]['dn']); 368 for($i=1; $i<count($sector_dn_array); ++$i) 370 $sector_dn_array_count = count($sector_dn_array); 371 for($i=1; $i<$sector_dn_array_count; ++$i) 369 372 $sector_dn .= $sector_dn_array[$i] . ','; 370 373 //Retira ultimo pipe. -
trunk/reports/inc/class.uireports_fpdf.inc.php
r7655 r7673 38 38 //Calculate the height of the row 39 39 $nb=0; 40 for($i=0;$i< count($data);++$i) 40 $data_count = count($data); 41 for($i=0;$i< $data_count;++$i) 41 42 $nb=max($nb,$this->NbLines($this->widths[$i],$data[$i])); 42 43 $h=5*$nb; … … 44 45 $this->CheckPageBreak($h); 45 46 //Draw the cells of the row 46 for($i=0;$i< count($data);++$i) 47 $data_count = count($data); 48 for($i=0;$i< $data_count;++$i) 47 49 { 48 50 $w=$this->widths[$i]; -
trunk/security/classes/funcoes_auxiliares.php
r7655 r7673 242 242 $n = 0; 243 243 $b = 0; 244 for($n = 0; $n < count($partes); ++$n) 244 $partes_count = count($partes); 245 for($n = 0; $n < $partes_count; ++$n) 245 246 { 246 247 if($n==0) … … 1498 1499 if(count($partes)>1) 1499 1500 { 1500 for($i=1;$i<count($partes);++$i) 1501 $partes_count = count($partes); 1502 for($i=1;$i<$partes_count;++$i) 1501 1503 { 1502 1504 //O inicio da seq pode estar a 3 ou 2 digitos antes do inicio da oid .... depende do numero de bytes usados para tamanho da seq. … … 1580 1582 $esta_oid = $oids[$oid]; 1581 1583 $p = 0; 1582 for($i=1;$i < count($esta_oid) + 1; ++$i) 1584 $esta_oid_count = count($esta_oid); 1585 for($i=1;$i < $esta_oid_count + 1; ++$i) 1583 1586 { 1584 1587 if($esta_oid[$i][1] == 0) -
trunk/setup/ldapimport.php
r7655 r7673 216 216 // This is typically an exception to apps for run rights 217 217 // as a group member. 218 for($a=0;$a<count($admins);++$a) 218 $admins_count = count($admins); 219 for($a=0;$a<$admins_count;++$a) 219 220 { 220 221 if($admins[$a] == $thisacctlid) -
trunk/workflow/inc/class.BrowserInfo.inc.php
r7655 r7673 304 304 $required = explode('.', $version); 305 305 $current = explode('.', $this->getBrowserVersion()); 306 for ($i = 0; $i < count($required); ++$i) 306 $required_count = count($required); 307 for ($i = 0; $i < $required_count; ++$i) 307 308 { 308 309 $subRequired = (int) $required[$i]; -
trunk/workflow/inc/class.Paging.inc.php
r7655 r7673 224 224 $links[] = $tmp; 225 225 } 226 227 for ($i = 0; $i < count($paginationLinks); ++$i)226 $paginationLinks_count = count($paginationLinks); 227 for ($i = 0; $i < $paginationLinks_count; ++$i) 228 228 { 229 229 $tmp = $paginationLinks[$i]; -
trunk/workflow/inc/class.bo_userinterface.inc.php
r7655 r7673 846 846 847 847 $areas = $this->so->getAreaList($this->organizationInfo['organizacao_id']); 848 for ($i = 0; $i < count($areas); ++$i) 848 $areas_count = count($areas); 849 for ($i = 0; $i < $areas_count; ++$i) 849 850 { 850 851 $areas[$i]['children'] = false; -
trunk/workflow/inc/class.so_external_applications.inc.php
r7655 r7673 148 148 149 149 $output = $result->GetArray(-1); 150 for ($i = 0; $i < count($output); ++$i) 150 $output_count = count($output); 151 for ($i = 0; $i < $output_count; ++$i) 151 152 for ($j = 0; $j < $result->_numOfFields; ++$j) 152 153 unset($output[$i][$j]); … … 170 171 171 172 $output = $result->GetArray(-1); 172 for ($i = 0; $i < count($output); ++$i) 173 $output_count = count($output); 174 for ($i = 0; $i < $output_count; ++$i) 173 175 for ($j = 0; $j < $result->_numOfFields; ++$j) 174 176 unset($output[$i][$j]); -
trunk/workflow/inc/class.so_orgchart.inc.php
r7655 r7673 152 152 153 153 $output = $result->GetArray(-1); 154 for ($i = 0; $i < count($output); ++$i) 154 $output_count = count($output); 155 for ($i = 0; $i < $output_count; ++$i) 155 156 for ($j = 0; $j < $result->_numOfFields; ++$j) 156 157 unset($output[$i][$j]); … … 385 386 386 387 $output = $result->GetArray(-1); 387 for ($i = 0; $i < count($output); ++$i) 388 $output_count = count($output); 389 for ($i = 0; $i < $output_count; ++$i) 388 390 for ($j = 0; $j < $result->_numOfFields; ++$j) 389 391 unset($output[$i][$j]); … … 462 464 463 465 $output = $result->GetArray(-1); 464 for ($i = 0; $i < count($output); ++$i) 466 $output_count = count($output); 467 for ($i = 0; $i < $output_count; ++$i) 465 468 for ($j = 0; $j < $result->_numOfFields; ++$j) 466 469 unset($output[$i][$j]); … … 541 544 542 545 $output = $result->GetArray(-1); 543 for ($i = 0; $i < count($output); ++$i) 546 $output_count = count($output); 547 for ($i = 0; $i < $output_count; ++$i) 544 548 for ($j = 0; $j < $result->_numOfFields; ++$j) 545 549 unset($output[$i][$j]); … … 623 627 624 628 $output = $result->GetArray(-1); 625 for ($i = 0; $i < count($output); ++$i){ 629 $output_count = count($output); 630 for ($i = 0; $i < $output_count; ++$i){ 626 631 for ($j = 0; $j < $result->_numOfFields; ++$j) 627 632 unset($output[$i][$j]); … … 714 719 $cachedLDAP = Factory::newInstance('CachedLDAP'); 715 720 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_LDAP_DATABASE); 716 for ($i = 0; $i < count($output); ++$i) 721 $output_count = count($output); 722 for ($i = 0; $i < $output_count; ++$i) 717 723 { 718 724 $output[$i]['funcionario_id_desc'] = ''; … … 790 796 791 797 $output = $result->GetArray(-1); 792 for ($i = 0; $i < count($output); ++$i) 798 $output_count = count($output); 799 for ($i = 0; $i < $output_count; ++$i) 793 800 { 794 801 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 1003 1010 1004 1011 $output = $result->GetArray(-1); 1005 for ($i = 0; $i < count($output); ++$i) 1012 $output_count = count($output); 1013 for ($i = 0; $i < $output_count; ++$i) 1006 1014 { 1007 1015 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 1384 1392 1385 1393 $output = $result->GetArray(-1); 1386 for ($i = 0; $i < count($output); ++$i) 1394 $output_count = count($output); 1395 for ($i = 0; $i < $output_count; ++$i) 1387 1396 for ($j = 0; $j < $result->_numOfFields; ++$j) 1388 1397 unset($output[$i][$j]); … … 1586 1595 1587 1596 $output = $result->GetArray(-1); 1588 for ($i = 0; $i < count($output); ++$i) { 1597 $output_count = count($output); 1598 for ($i = 0; $i < $output_count; ++$i) { 1589 1599 for ($j = 0; $j < $result->_numOfFields; ++$j) 1590 1600 unset($output[$i][$j]); -
trunk/workflow/inc/class.so_userinterface.inc.php
r7655 r7673 123 123 124 124 /* keep only associative elments and check if the user can access an intranet application */ 125 for ($i = 0; $i < count($preOutput); ++$i) 125 $preOutput_count = count($preOutput); 126 for ($i = 0; $i < $preOutput_count; ++$i) 126 127 { 127 128 if (($preOutput[$i]['intranet_only'] == '1') && (!$showIntranetApplications)) … … 169 170 170 171 $output = $result->GetArray(-1); 171 for ($i = 0; $i < count($output); ++$i) 172 $output_count = count($output); 173 for ($i = 0; $i < $output_count; ++$i) 172 174 for ($j = 0; $j < $result->_numOfFields; ++$j) 173 175 unset($output[$i][$j]); … … 196 198 197 199 $output = $result->GetArray(-1); 198 for ($i = 0; $i < count($output); ++$i) 200 $output_count = count($output); 201 for ($i = 0; $i < $output_count; ++$i) 199 202 { 200 203 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 218 221 219 222 $output = $result->GetArray(-1); 220 for ($i = 0; $i < count($output); ++$i) 223 $output_count = count($output); 224 for ($i = 0; $i < $output_count; ++$i) 221 225 for ($j = 0; $j < $result->_numOfFields; ++$j) 222 226 unset($output[$i][$j]); … … 296 300 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 297 301 $categoriesCount = array(); 298 for ($i = 0; $i < count($employees); ++$i) 302 $employees_count = count($employees); 303 for ($i = 0; $i < $employees_count; ++$i) 299 304 { 300 305 /* remove numeric fields */ … … 396 401 $cachedLDAP = Factory::newInstance('CachedLDAP'); 397 402 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 398 for ($i = 0; $i < count($employees); ++$i) 403 $employees_count = count($employees); 404 for ($i = 0; $i < $employees_count; ++$i) 399 405 { 400 406 /* remove numeric fields */ … … 434 440 435 441 if (count($searchTermExploded) > 0){ 436 for ($i=1; $i<count($searchTermExploded); ++$i) { 442 $searchTermExploded_count = count($searchTermExploded); 443 for ($i=1; $i<$searchTermExploded_count; ++$i) { 437 444 if (strlen($searchTermExploded[$i]) > 2) { 438 445 $fullSearch = true; … … 481 488 482 489 /* filling return array with employee's information */ 483 for ($i = 0; $i < count($result); ++$i) { 490 $result_count = count($result); 491 for ($i = 0; $i < $result_count; ++$i) { 484 492 $employees []= array( 485 493 'area' => $result[$i]['area'], … … 536 544 /* creating the ldap query */ 537 545 $ldap_query = '(&(|'; 538 for ($i = 0; $i < count($result); ++$i) { 546 $result_count = count($result); 547 for ($i = 0; $i < $result_count; ++$i) { 539 548 $ldap_query .= '(uidNumber=' . $result[$i]['funcionario_id'] . ')'; 540 549 } … … 556 565 /* filling return array with employee's information */ 557 566 $employees = array(); 558 for ($i = 0; $i < count($result); ++$i) { 567 $result_count = count($result); 568 for ($i = 0; $i < $result_count; ++$i) { 559 569 560 570 $employee = array(); … … 642 652 643 653 /* filling return array with employee's information */ 644 for ($i = 0; $i < count($result); ++$i) { 654 $result_count = count($result); 655 for ($i = 0; $i < $result_count; ++$i) { 645 656 $employees []= array( 646 657 'area' => $result[$i]['area'], … … 707 718 708 719 $output = $result->GetArray(-1); 709 for ($i = 0; $i < count($output); ++$i) 720 $output_count = count($output); 721 for ($i = 0; $i < $output_count; ++$i) 710 722 for ($j = 0; $j < $result->_numOfFields; ++$j) 711 723 unset($output[$i][$j]); … … 728 740 729 741 $output = $result->GetArray(-1); 730 for ( $i = 0; $i < count($output); ++$i ) 742 $output_count = count($output); 743 for ( $i = 0; $i < $output_count; ++$i ) 731 744 { 732 745 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 759 772 760 773 $output = $result->GetArray( -1 ); 761 for ( $i = 0; $i < count($output); ++$i ) 774 $output_count = count($output); 775 for ( $i = 0; $i < $output_count; ++$i ) 762 776 for ($j = 0; $j < $result->_numOfFields; ++$j) 763 777 unset($output[$i][$j]); … … 795 809 796 810 $categoriesCount = array( ); 797 for ( $i = 0; $i < count( $employees ); ++$i ) 811 $employees_count = count( $employees ); 812 for ( $i = 0; $i < $employees_count; ++$i ) 798 813 { 799 814 // remove numeric fields … … 867 882 868 883 $categoriesCount = array( ); 869 for ( $i = 0; $i < count( $employees ); ++$i ) 884 $employees_count = count( $employees ); 885 for ( $i = 0; $i < $employees_count; ++$i ) 870 886 { 871 887 // remove numeric fields … … 893 909 894 910 // count the number of employees in each category 895 for ( $i = 0; $i < count( $employees ); ++$i ) 911 $employees_count = count( $employees ); 912 for ( $i = 0; $i < $employees_count; ++$i ) 896 913 { 897 914 $categoryID = $employees[ $i ][ 'funcionario_categoria_id' ]; -
trunk/workflow/inc/class.ui_orgchart.inc.php
r7655 r7673 152 152 153 153 $ldap = &Factory::getInstance('WorkflowLDAP'); 154 for ($i = 0; $i < count($output); ++$i) 154 $output_count = count($output); 155 for ($i = 0; $i < $output_count; ++$i) 155 156 { 156 157 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 162 163 $supervisorArray = explode(' ', $supervisor); 163 164 $supervisorName = ''; 164 for ($j = 0; $j < count($supervisorArray); ++$j) 165 $supervisorArray_count = count($supervisorArray); 166 for ($j = 0; $j < $supervisorArray_count; ++$j) 165 167 $supervisorName .= (($j == 0) || ($j == count($supervisorArray) - 1)) ? $supervisorArray[$j] . ' ' : $supervisorArray[$j][0] . '. '; 166 168 $supervisorName = trim(str_replace("Junior", "Jr", $supervisorName)); -
trunk/workflow/inc/class.utils.security.php
r7655 r7673 68 68 function SecurityUtils($tagsArray = array(), $attrArray = array(), $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1) { 69 69 // make sure user defined arrays are in lowercase 70 for ($i = 0; $i < count($tagsArray); ++$i) $tagsArray[$i] = strtolower($tagsArray[$i]); 71 for ($i = 0; $i < count($attrArray); ++$i) $attrArray[$i] = strtolower($attrArray[$i]); 70 $tagsArray_count = count($tagsArray); 71 for ($i = 0; $i < $tagsArray_count; ++$i) 72 $tagsArray[$i] = strtolower($tagsArray[$i]); 73 $attrArray_count = count($attrArray); 74 for ($i = 0; $i < $attrArray_count; ++$i) 75 $attrArray[$i] = strtolower($attrArray[$i]); 72 76 // assign to member vars 73 77 $this->tagsArray = (array) $tagsArray; … … 135 139 $newSet = array(); 136 140 // process attributes 137 for ($i = 0; $i <count($attrSet); ++$i) { 141 $attrSet_count = count($attrSet); 142 for ($i = 0; $i < $attrSet_count; ++$i) { 138 143 // skip blank spaces in tag 139 144 if (!$attrSet[$i]) continue;
Note: See TracChangeset
for help on using the changeset viewer.