Changeset 7655 for trunk/prototype
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/prototype
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/library/tonic/examples/filesystem/filesystemcollection.php
r6528 r7655 50 50 $filename = 1; 51 51 while (file_exists($collection.DIRECTORY_SEPARATOR.$filename)) { 52 $filename++;52 ++$filename; 53 53 } 54 54 return $this->uriStub.substr($this->collection, strlen($this->path)).'/'.$filename; -
trunk/prototype/library/uuid/class.uuid.php
r5698 r7655 164 164 $uuid['time_mid'] = mt_rand(0, 0xffff); 165 165 $uuid['clock_seq_low'] = mt_rand(0, 255); 166 for ($i = 0; $i < 6; $i++)166 for ($i = 0; $i < 6; ++$i) 167 167 $uuid['node'][$i] = mt_rand(0, 255); 168 168 return ($uuid); … … 247 247 * we leave it for the user to supply the node. 248 248 */ 249 for ($i = 0; $i < 6; $i++)249 for ($i = 0; $i < 6; ++$i) 250 250 $uuid['node'][$i] = ord(substr($node, $i, 1)); 251 251 … … 266 266 $uuid[9] = $src['clock_seq_low']; 267 267 268 for ($i = 0; $i < 6; $i++)268 for ($i = 0; $i < 6; ++$i) 269 269 $uuid[10+$i] = $src['node'][$i]; 270 270 … … 296 296 $field['clock_seq_low'] = $uuid[9]; 297 297 298 for ($i = 0; $i < 6; $i++)298 for ($i = 0; $i < 6; ++$i) 299 299 $field['node'][$i] = $uuid[10+$i]; 300 300 return ($field); … … 321 321 $field['clock_seq_hi'] = ($parts[3] & 0xff00) >> 8; 322 322 $field['clock_seq_low'] = $parts[3] & 0x00ff; 323 for ($i = 0; $i < 6; $i++)323 for ($i = 0; $i < 6; ++$i) 324 324 $field['node'][$i] = $parts[4+$i]; 325 325 -
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r7595 r7655 1465 1465 $length = 6; 1466 1466 $str = null; 1467 for ($p = 0; $p < $length; $p++)1467 for ($p = 0; $p < $length; ++$p) 1468 1468 $unique .= $base{mt_rand($start, $end)}; 1469 1469 -
trunk/prototype/modules/catalog/interceptors/CatalogDBMapping.php
r6579 r7655 23 23 24 24 if(count($params)>0 && isset($params[0]['id'])){ 25 for($i=0; $i < count($params); $i++){25 for($i=0; $i < count($params); ++$i){ 26 26 //Retorna o telefone e o e-mail padrao de um determinado contato 27 27 $sql = ' SELECT phpgw_cc_contact_conns.id_typeof_contact_connection as type, phpgw_cc_connections.connection_value as value ' … … 55 55 $z = 0; 56 56 $count = count($params); 57 for($i=0; $i < $count; $i++){57 for($i=0; $i < $count; ++$i){ 58 58 //Retorna o telefone e o e-mail padrao de um determinado contato 59 59 $sql = 'SELECT contato.names_ordered as name, contato.id_contact as id, conexao.connection_value as value ' … … 78 78 $params[$i]['contacts'][$z]['name'] = $connection['name']; 79 79 $params[$i]['contacts'][$z][INDEX_EMAIL] = $connection['value']; 80 $z++;80 ++$z; 81 81 } 82 82 } -
trunk/prototype/modules/filters/interceptors/FilterMapping.php
r7375 r7655 113 113 $script_criteria = ""; 114 114 $require_fileinto = true; 115 $i++;115 ++$i; 116 116 continue; 117 117 } … … 270 270 271 271 if($data['id'] != "vacation") 272 $i++;272 ++$i; 273 273 $script_match = ""; 274 274 $script_criteria = ""; … … 395 395 $action_type[$i_action] = 'reject'; 396 396 $action_parameter[$i_action] = $array_rule[7]; 397 $i_action++;397 ++$i_action; 398 398 break; 399 399 case 'folder': 400 400 $action_type[$i_action] = 'fileinto'; 401 401 $action_parameter[$i_action] = $array_rule[7]; 402 $i_action++;402 ++$i_action; 403 403 break; 404 404 case 'flagged': 405 405 $action_type[$i_action] = 'setflag'; 406 406 $action_parameter[$i_action] = 'flagged'; 407 $i_action++;407 ++$i_action; 408 408 break; 409 409 case 'address': 410 410 $action_type[$i_action] = 'redirect'; 411 411 $action_parameter[$i_action] = $array_rule[7]; 412 $i_action++;412 ++$i_action; 413 413 break; 414 414 /* Somente para tratar casos em que a ação não é suportada */ … … 416 416 $action_type[$i_action] = 'setflag'; 417 417 $action_parameter[$i_action] = 'flagged'; 418 $i_action++;418 ++$i_action; 419 419 break; 420 420 // Recuperar o cyrus_delimiter para forçar um fileinto para INBOX/trash … … 429 429 $criteria_operator[$i_criteria] = '='; 430 430 $criteria_field[$i_criteria] = 'from'; 431 $i_criteria++;431 ++$i_criteria; 432 432 } 433 433 if($array_rule[4] != "") { … … 435 435 $criteria_operator[$i_criteria] = '='; 436 436 $criteria_field[$i_criteria] = 'to'; 437 $i_criteria++;437 ++$i_criteria; 438 438 } 439 439 if($array_rule[5] != "") { … … 441 441 $criteria_operator[$i_criteria] = '='; 442 442 $criteria_field[$i_criteria] = 'subject'; 443 $i_criteria++;443 ++$i_criteria; 444 444 } 445 445 $old_retorno = array(); … … 467 467 468 468 $old_rules[$i_return] = $old_retorno; 469 $i_return++;469 ++$i_return; 470 470 } 471 471 return $old_rules; … … 608 608 $i = 0; 609 609 610 for( ; isset($this->rules[$i]) && $this->rules[$i]['id'] !== $params['id']; $i++);610 for( ; isset($this->rules[$i]) && $this->rules[$i]['id'] !== $params['id']; ++$i ); 611 611 612 612 $this->rules[$i] = array_merge( ( isset($this->rules[$i]) ? $this->rules[$i] : array() ), $params ); -
trunk/prototype/plugins/davicalCliente/AWLUtilities.php
r5399 r7655 542 542 ); 543 543 544 for( $i=160; $i < 256; $i++) {544 for( $i=160; $i < 256; ++$i ) { 545 545 $ch = chr($i); 546 546 $byte_map[$ch] = iconv('ISO-8859-1', 'UTF-8', $ch); -
trunk/prototype/plugins/davicalCliente/XMLDocument.php
r5399 r7655 77 77 $i = ""; 78 78 if ( isset($this->prefixes[$prefix]) ) { 79 for ( $i=1; $i<10 && isset($this->prefixes["$prefix$i"]); $i++) {79 for ( $i=1; $i<10 && isset($this->prefixes["$prefix$i"]); ++$i ) { 80 80 } 81 81 } -
trunk/prototype/plugins/davicalCliente/XMLElement.php
r5399 r7655 318 318 if ( !isset($start_from) ) $start_from = 0; 319 319 320 for( $i=0; $i < 50000 && isset($xmltags[$start_from]); $i++) {320 for( $i=0; $i < 50000 && isset($xmltags[$start_from]); ++$i) { 321 321 $tagdata = $xmltags[$start_from++]; 322 322 if ( !isset($tagdata) || !isset($tagdata['tag']) || !isset($tagdata['type']) ) break; -
trunk/prototype/plugins/icalcreator/iCalUtilityFunctions.class.php
r5341 r7655 441 441 $output = array(); 442 442 $val = null; 443 for( $ix=0; $ix < strlen( $duration ); $ix++) {443 for( $ix=0; $ix < strlen( $duration ); ++$ix ) { 444 444 switch( strtoupper( substr( $duration, $ix, 1 ))) { 445 445 case 'W': … … 839 839 $yeardays = $weekno = 0; 840 840 $yeardaycnt = array(); 841 for( $m = 1; $m <= 12; $m++) { // count up and update up-counters841 for( $m = 1; $m <= 12; ++$m ) { // count up and update up-counters 842 842 $daycnts[$m] = array(); 843 843 $weekdaycnt = array(); … … 845 845 $yeardaycnt[$dn] = $weekdaycnt[$dn] = 0; 846 846 $mcnt = date( 't', mktime( 0, 0, 0, $m, 1, $wdate['year'] )); 847 for( $d = 1; $d <= $mcnt; $d++) {847 for( $d = 1; $d <= $mcnt; ++$d ) { 848 848 $daycnts[$m][$d] = array(); 849 849 if( isset( $recur['BYYEARDAY'] )) { 850 $yeardays++;850 ++$yeardays; 851 851 $daycnts[$m][$d]['yearcnt_up'] = $yeardays; 852 852 } … … 1026 1026 else { 1027 1027 /* update result array if BYSETPOS is set */ 1028 $countcnt++;1028 ++$countcnt; 1029 1029 if( $startdatets <= $wdatets ) { // only output within period 1030 1030 $result[$wdatets] = TRUE; … … 1089 1089 // echo " recur ".implode('-',iCalUtilityFunctions::_date_time_string(date('Y-m-d H:i:s',$bysetposarr1[$ix]),6)); // test ### 1090 1090 } 1091 $countcnt++;1091 ++$countcnt; 1092 1092 } 1093 1093 if( isset( $recur['COUNT'] ) && ( $countcnt >= $recur['COUNT'] )) -
trunk/prototype/plugins/icalcreator/iCalcreator.class.php
r5399 r7655 393 393 if( $propix != $xpropno ) 394 394 $reduced[$xpropkey] = $xpropvalue; 395 $xpropno++;395 ++$xpropno; 396 396 } 397 397 } … … 506 506 : array( $xpropkey, $this->xprop[$xpropkey]['value'] ); 507 507 else 508 $xpropno++;508 ++$xpropno; 509 509 } 510 510 unset( $this->propix[$propName] ); … … 829 829 return TRUE; 830 830 } 831 $cix1dC++;831 ++$cix1dC; 832 832 } 833 833 elseif( !$argType && ($arg1 == $component->getProperty( 'uid' ))) { … … 891 891 if( $index == $cix1gC ) 892 892 return $component->copy(); 893 $cix1gC++;893 ++$cix1gC; 894 894 } 895 895 elseif( is_array( $arg1 )) { // array( *[propertyName => propertyValue] ) … … 944 944 if( $index == $cix1gC ) 945 945 return $component->copy(); 946 $cix1gC++;946 ++$cix1gC; 947 947 } 948 948 } // end elseif( is_array( $arg1 )) { // array( *[propertyName => propertyValue] ) … … 950 950 if( $index == $cix1gC ) 951 951 return $component->copy(); 952 $cix1gC++;952 ++$cix1gC; 953 953 } 954 954 } // end foreach ( $this->components.. . … … 1436 1436 return TRUE; 1437 1437 } 1438 $cix1sC++;1438 ++$cix1sC; 1439 1439 } 1440 1440 elseif( !$argType && ( $arg1 == $component2->getProperty( 'uid' ))) { // UID insert/replace … … 1523 1523 elseif( 'vtimezone' == $b->objName ) return 1; 1524 1524 $sortkeys = array( 'year', 'month', 'day', 'hour', 'min', 'sec' ); 1525 for( $k = 0; $k < 4 ; $k++) {1525 for( $k = 0; $k < 4 ; ++$k ) { 1526 1526 if( empty( $a->srtk[$k] )) return -1; 1527 1527 elseif( empty( $b->srtk[$k] )) return 1; … … 1607 1607 continue; 1608 1608 if( 'BEGIN:VCALENDAR' == strtoupper( substr( $line, 0, 15 ))) { 1609 $calsync++;1609 ++$calsync; 1610 1610 continue; 1611 1611 } … … 1653 1653 if( $newProp ) { 1654 1654 $newProp = FALSE; 1655 $lastix++;1655 ++$lastix; 1656 1656 $proprows[$lastix] = $line; 1657 1657 } … … 1666 1666 /* get property name */ 1667 1667 $cix = $propname = null; 1668 for( $cix=0, $clen = strlen( $line ); $cix < $clen; $cix++) {1668 for( $cix=0, $clen = strlen( $line ); $cix < $clen; ++$cix ) { 1669 1669 if( in_array( $line[$cix], array( ':', ';' ))) 1670 1670 break; … … 1680 1680 $attrix = -1; 1681 1681 $strlen = strlen( $line ); 1682 for( $cix=0; $cix < $strlen; $cix++) {1682 for( $cix=0; $cix < $strlen; ++$cix ) { 1683 1683 if(( ':' == $line[$cix] ) && 1684 1684 ( '://' != substr( $line, $cix, 3 )) && … … 1720 1720 $content = explode( ',', $line ); 1721 1721 $clen = count( $content ); 1722 for( $cix = 0; $cix < $clen; $cix++) {1722 for( $cix = 0; $cix < $clen; ++$cix ) { 1723 1723 if( "\\" == substr( $content[$cix], -1 )) { 1724 1724 $content[$cix] .= ','.$content[$cix + 1]; 1725 1725 unset( $content[$cix + 1] ); 1726 $cix++; 1727 } 1726 ++$cix; } 1728 1727 } 1729 1728 if( 1 < count( $content )) { … … 2984 2983 if( $fno < $cnt ) 2985 2984 $content .= ','; 2986 $fno++;2985 ++$fno; 2987 2986 } 2988 2987 $output .= $this->_createElement( 'FREEBUSY', $attributes, $content ); … … 3368 3367 if( $rno < $cnt ) 3369 3368 $content .= ','; 3370 $rno++;3369 ++$rno; 3371 3370 } 3372 3371 $output .= $this->_createElement( 'RDATE', $attributes, $content ); … … 4593 4592 } 4594 4593 $content2 .= $content21.$content22; 4595 $bydaycnt++;4594 ++$bydaycnt; 4596 4595 } 4597 4596 else { … … 4601 4600 else { 4602 4601 $content22 .= $valuePart; 4603 $bydaycnt++;4602 ++$bydaycnt; 4604 4603 } 4605 4604 $content2 .= $content21.$content22; … … 5077 5076 if( $propix != $xpropno ) 5078 5077 $reduced[$xpropkey] = $xpropvalue; 5079 $xpropno++;5078 ++$xpropno; 5080 5079 } 5081 5080 } … … 5139 5138 $ak = ( is_array( $this->attach )) ? array_keys( $this->attach ) : array(); 5140 5139 while( is_array( $this->attach ) && !isset( $this->attach[$propix] ) && ( 0 < count( $this->attach )) && ( $propix < end( $ak ))) 5141 $propix++;5140 ++$propix; 5142 5141 if( !isset( $this->attach[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5143 5142 return ( $inclParam ) ? $this->attach[$propix] : $this->attach[$propix]['value']; … … 5146 5145 $ak = ( is_array( $this->attendee )) ? array_keys( $this->attendee ) : array(); 5147 5146 while( is_array( $this->attendee ) && !isset( $this->attendee[$propix] ) && ( 0 < count( $this->attendee )) && ( $propix < end( $ak ))) 5148 $propix++;5147 ++$propix; 5149 5148 if( !isset( $this->attendee[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5150 5149 return ( $inclParam ) ? $this->attendee[$propix] : $this->attendee[$propix]['value']; … … 5153 5152 $ak = ( is_array( $this->categories )) ? array_keys( $this->categories ) : array(); 5154 5153 while( is_array( $this->categories ) && !isset( $this->categories[$propix] ) && ( 0 < count( $this->categories )) && ( $propix < end( $ak ))) 5155 $propix++;5154 ++$propix; 5156 5155 if( !isset( $this->categories[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5157 5156 return ( $inclParam ) ? $this->categories[$propix] : $this->categories[$propix]['value']; … … 5163 5162 $ak = ( is_array( $this->comment )) ? array_keys( $this->comment ) : array(); 5164 5163 while( is_array( $this->comment ) && !isset( $this->comment[$propix] ) && ( 0 < count( $this->comment )) && ( $propix < end( $ak ))) 5165 $propix++;5164 ++$propix; 5166 5165 if( !isset( $this->comment[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5167 5166 return ( $inclParam ) ? $this->comment[$propix] : $this->comment[$propix]['value']; … … 5173 5172 $ak = ( is_array( $this->contact )) ? array_keys( $this->contact ) : array(); 5174 5173 while( is_array( $this->contact ) && !isset( $this->contact[$propix] ) && ( 0 < count( $this->contact )) && ( $propix < end( $ak ))) 5175 $propix++;5174 ++$propix; 5176 5175 if( !isset( $this->contact[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5177 5176 return ( $inclParam ) ? $this->contact[$propix] : $this->contact[$propix]['value']; … … 5183 5182 $ak = ( is_array( $this->description )) ? array_keys( $this->description ) : array(); 5184 5183 while( is_array( $this->description ) && !isset( $this->description[$propix] ) && ( 0 < count( $this->description )) && ( $propix < end( $ak ))) 5185 $propix++;5184 ++$propix; 5186 5185 if( !isset( $this->description[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5187 5186 return ( $inclParam ) ? $this->description[$propix] : $this->description[$propix]['value']; … … 5211 5210 $ak = ( is_array( $this->exdate )) ? array_keys( $this->exdate ) : array(); 5212 5211 while( is_array( $this->exdate ) && !isset( $this->exdate[$propix] ) && ( 0 < count( $this->exdate )) && ( $propix < end( $ak ))) 5213 $propix++;5212 ++$propix; 5214 5213 if( !isset( $this->exdate[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5215 5214 return ( $inclParam ) ? $this->exdate[$propix] : $this->exdate[$propix]['value']; … … 5218 5217 $ak = ( is_array( $this->exrule )) ? array_keys( $this->exrule ) : array(); 5219 5218 while( is_array( $this->exrule ) && !isset( $this->exrule[$propix] ) && ( 0 < count( $this->exrule )) && ( $propix < end( $ak ))) 5220 $propix++;5219 ++$propix; 5221 5220 if( !isset( $this->exrule[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5222 5221 return ( $inclParam ) ? $this->exrule[$propix] : $this->exrule[$propix]['value']; … … 5225 5224 $ak = ( is_array( $this->freebusy )) ? array_keys( $this->freebusy ) : array(); 5226 5225 while( is_array( $this->freebusy ) && !isset( $this->freebusy[$propix] ) && ( 0 < count( $this->freebusy )) && ( $propix < end( $ak ))) 5227 $propix++;5226 ++$propix; 5228 5227 if( !isset( $this->freebusy[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5229 5228 return ( $inclParam ) ? $this->freebusy[$propix] : $this->freebusy[$propix]['value']; … … 5270 5269 $ak = ( is_array( $this->requeststatus )) ? array_keys( $this->requeststatus ) : array(); 5271 5270 while( is_array( $this->requeststatus ) && !isset( $this->requeststatus[$propix] ) && ( 0 < count( $this->requeststatus )) && ( $propix < end( $ak ))) 5272 $propix++;5271 ++$propix; 5273 5272 if( !isset( $this->requeststatus[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5274 5273 return ( $inclParam ) ? $this->requeststatus[$propix] : $this->requeststatus[$propix]['value']; … … 5277 5276 $ak = ( is_array( $this->resources )) ? array_keys( $this->resources ) : array(); 5278 5277 while( is_array( $this->resources ) && !isset( $this->resources[$propix] ) && ( 0 < count( $this->resources )) && ( $propix < end( $ak ))) 5279 $propix++;5278 ++$propix; 5280 5279 if( !isset( $this->resources[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5281 5280 return ( $inclParam ) ? $this->resources[$propix] : $this->resources[$propix]['value']; … … 5284 5283 $ak = ( is_array( $this->rrule )) ? array_keys( $this->rrule ) : array(); 5285 5284 while( is_array( $this->rrule ) && !isset( $this->rrule[$propix] ) && ( 0 < count( $this->rrule )) && ( $propix < end( $ak ))) 5286 $propix++;5285 ++$propix; 5287 5286 if( !isset( $this->rrule[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5288 5287 return ( $inclParam ) ? $this->rrule[$propix] : $this->rrule[$propix]['value']; … … 5309 5308 $ak = ( is_array( $this->tzname )) ? array_keys( $this->tzname ) : array(); 5310 5309 while( is_array( $this->tzname ) && !isset( $this->tzname[$propix] ) && ( 0 < count( $this->tzname )) && ( $propix < end( $ak ))) 5311 $propix++;5310 ++$propix; 5312 5311 if( !isset( $this->tzname[$propix] )) { unset( $this->propix[$propName] ); return FALSE; } 5313 5312 return ( $inclParam ) ? $this->tzname[$propix] : $this->tzname[$propix]['value']; … … 5346 5345 : array( $xpropkey, $this->xprop[$xpropkey]['value'] ); 5347 5346 else 5348 $xpropno++;5347 ++$xpropno; 5349 5348 } 5350 5349 return FALSE; // not found ?? … … 5431 5430 return FALSE; 5432 5431 $arglist[0] = strtoupper( $arglist[0] ); 5433 for( $argix=$numargs; $argix < 12; $argix++) {5432 for( $argix=$numargs; $argix < 12; ++$argix ) { 5434 5433 if( !isset( $arglist[$argix] )) 5435 5434 $arglist[$argix] = null; … … 5613 5612 $proprows[$lastix] = $proprows[$lastix]; 5614 5613 $newProp = FALSE; 5615 $lastix++;5614 ++$lastix; 5616 5615 $proprows[$lastix] = $line; 5617 5616 } … … 5627 5626 /* get propname, (problem with x-properties, otherwise in previous loop) */ 5628 5627 $cix = $propname = null; 5629 for( $cix=0, $clen = strlen( $line ); $cix < $clen; $cix++) {5628 for( $cix=0, $clen = strlen( $line ); $cix < $clen; ++$cix ) { 5630 5629 if( in_array( $line[$cix], array( ':', ';' ))) 5631 5630 break; … … 5644 5643 $attrix = -1; 5645 5644 $clen = strlen( $line ); 5646 for( $cix=0; $cix < $clen; $cix++) {5645 for( $cix=0; $cix < $clen; ++$cix ) { 5647 5646 if(( ':' == $line[$cix] ) && 5648 5647 ( '://' != substr( $line, $cix, 3 )) && … … 5694 5693 $content = explode( ',', $line ); 5695 5694 $clen = count( $content ); 5696 for( $cix = 0; $cix < $clen; $cix++) {5695 for( $cix = 0; $cix < $clen; ++$cix ) { 5697 5696 if( "\\" == substr($content[$cix], -1)) { 5698 5697 $content[$cix] .= ','.$content[$cix + 1]; 5699 5698 unset($content[$cix + 1]); 5700 $cix++;5699 ++$cix; 5701 5700 } 5702 5701 } … … 5899 5898 return TRUE; 5900 5899 } 5901 $cix2dC++;5900 ++$cix2dC; 5902 5901 } 5903 5902 elseif( !$argType && ($arg1 == $component->getProperty( 'uid' ))) { … … 5950 5949 if( $index == $cix2gC ) 5951 5950 return $component->copy(); 5952 $cix2gC++;5951 ++$cix2gC; 5953 5952 } 5954 5953 elseif( !$argType && ( $arg1 == $component->getProperty( 'uid' ))) … … 6043 6042 return TRUE; 6044 6043 } 6045 $cix2sC++;6044 ++$cix2sC; 6046 6045 } 6047 6046 elseif( !$argType && ( $arg1 == $component2->getProperty( 'uid' ))) { // UID insert/replace … … 6130 6129 $bytecnt = strlen( $tmp ); 6131 6130 $charCnt = $ix = 0; 6132 for( $ix = 0; $ix < $bytecnt; $ix++) {6131 for( $ix = 0; $ix < $bytecnt; ++$ix ) { 6133 6132 if(( 73 < $charCnt ) && ( '\n' == substr( $tmp, $ix, $eolcharlen ))) { 6134 6133 $ix += $eolcharlen; -
trunk/prototype/plugins/when/When.php
r5341 r7655 551 551 while($run) 552 552 { 553 $_day++;553 ++$_day; 554 554 if($_day <= $days_in_month) 555 555 { … … 561 561 $tmp_date = new DateTime($year . '-' . $month . '-' . $overflow_count . ' ' . $timestamp); 562 562 $tmp_date->modify('+1 month'); 563 $overflow_count++;563 ++$overflow_count; 564 564 } 565 565 -
trunk/prototype/services/ImapServiceAdapter.php
r7622 r7655 171 171 if( $filter[0] !== 'msgNumber' ) 172 172 { 173 for( $i = 0; $i < count($filter); $i++)173 for( $i = 0; $i < count($filter); ++$i ) 174 174 { 175 175 if( count( $filter[$i] ) === 4 ) … … 184 184 $msgNumber = array(); 185 185 186 for( $i = $start; $i < $start + $limit && isset( $filter[2][$i] ); $i++)186 for( $i = $start; $i < $start + $limit && isset( $filter[2][$i] ); ++$i ) 187 187 $msgNumber[] = $filter[2][$i]; 188 188 … … 214 214 $response = array( "page" => $page, "total" => $total_pages, "records" => $count ); 215 215 216 for ($i=0; $i<count($result); $i++)216 for ($i=0; $i<count($result); ++$i) 217 217 { 218 218 $flags_enum = array('Unseen'=> 1, 'Answered'=> 1, 'Forwarded'=> 1, 'Flagged'=> 1, 'Recent'=> 1, 'Draft'=> 1 ); -
trunk/prototype/services/OpenLDAP.php
r6528 r7655 98 98 99 99 $return = array(); 100 for ($i=0; $i < $pEntries["count"]; $i++)100 for ($i=0; $i < $pEntries["count"]; ++$i) 101 101 { 102 102 $entrieTmp = array(); -
trunk/prototype/services/PostgreSQL.php
r6962 r7655 359 359 } 360 360 361 for($i=0; $i<count($order); $i++){361 for($i=0; $i<count($order); ++$i){ 362 362 $order[$i] .= ($orderDesc[$i] === true) ? ' DESC' : ''; 363 363 }
Note: See TracChangeset
for help on using the changeset viewer.