Changeset 7673 for trunk/expressoAdmin1_2/inc
- Timestamp:
- 12/18/12 16:15:29 (11 years ago)
- Location:
- trunk/expressoAdmin1_2/inc
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
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 */
Note: See TracChangeset
for help on using the changeset viewer.