Changeset 7655 for trunk/phpgwapi/inc/common_functions.inc.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/common_functions.inc.php
r6057 r7655 208 208 /* the default values */ 209 209 $num = count($expected); 210 for ($i = 0; $i < $num; $i++)210 for ($i = 0; $i < $num; ++$i) 211 211 { 212 212 $args[$expected[$i]['name']] = $expected[$i]['default']; … … 224 224 if(!is_array($recieved[0])) 225 225 { 226 for ($i = 0; $i < $num; $i++)226 for ($i = 0; $i < $num; ++$i) 227 227 { 228 228 if(isset($recieved[$i]) && $recieved[$i] !== '##DEFAULT##') … … 244 244 else 245 245 { 246 for ($i = 0; $i < $num; $i++)246 for ($i = 0; $i < $num; ++$i) 247 247 { 248 248 $types[$expected[$i]['name']] = $expected[$i]['type']; … … 342 342 { 343 343 $octets = preg_split('/\./',$string); 344 for ($i=0; $i != count($octets); $i++)344 for ($i=0; $i != count($octets); ++$i) 345 345 { 346 346 if ($octets[$i] < 0 || $octets[$i] > 255) … … 408 408 if ($password_length >= $min_length) 409 409 { 410 for ($i=0; $i != $password_length; $i++)410 for ($i=0; $i != $password_length; ++$i) 411 411 { 412 412 $cur_test_string = substr($string, $i, 1); … … 475 475 } 476 476 $cnt = count($method); 477 for($i=0;$i<$cnt; $i++)477 for($i=0;$i<$cnt;++$i) 478 478 { 479 479 switch(strtoupper($method[$i])) … … 730 730 $kl=strlen($ky)<32?strlen($ky):32; 731 731 $k=array(); 732 for($i=0;$i<$kl; $i++)732 for($i=0;$i<$kl;++$i) 733 733 { 734 734 $k[$i]=ord($ky{$i})&0x1F; 735 735 } 736 736 $j=0; 737 for($i=0;$i<strlen($str); $i++)737 for($i=0;$i<strlen($str);++$i) 738 738 { 739 739 $e=ord($str{$i}); 740 740 $str{$i}=$e&0xE0?chr($e^$k[$j]):chr($e); 741 $j++;$j=$j==$kl?0:$j;741 ++$j;$j=$j==$kl?0:$j; 742 742 } 743 743 return $str; … … 814 814 $code .= '$p' . $i . ','; 815 815 } 816 $i++;816 ++$i; 817 817 } 818 818 $code = substr($code,0,-1) . ');'; … … 1083 1083 $less = 0; 1084 1084 1085 for ($i=0;$i<count($testa); $i++)1085 for ($i=0;$i<count($testa);++$i) 1086 1086 { 1087 1087 if ($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is less than ' . (int)$testb[$i] . ' ...'; } … … 1089 1089 { 1090 1090 if ($DEBUG) { echo ' yes.'; } 1091 $less++;1091 ++$less; 1092 1092 if ($i<3) 1093 1093 { … … 1163 1163 $less = 0; 1164 1164 1165 for ($i=0;$i<count($testa); $i++)1165 for ($i=0;$i<count($testa);++$i) 1166 1166 { 1167 1167 if ($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is more than ' . (int)$testb[$i] . ' ...'; } … … 1169 1169 { 1170 1170 if ($DEBUG) { echo ' yes.'; } 1171 $less++;1171 ++$less; 1172 1172 if ($i<3) 1173 1173 {
Note: See TracChangeset
for help on using the changeset viewer.