Changeset 7655 for trunk/phpgwapi
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/phpgwapi
- Files:
-
- 60 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.accounts.inc.php
r5141 r7655 283 283 $account_search[$serial]['data'][$id] = $data; 284 284 } 285 $n++;285 ++$n; 286 286 } 287 287 $account_search[$serial]['total'] = $this->total; … … 436 436 $this->memberships = Array(); 437 437 438 for ($idx=0; $idx<count($security_equals); $idx++)438 for ($idx=0; $idx<count($security_equals); ++$idx) 439 439 { 440 440 $groups = (int)$security_equals[$idx]; … … 463 463 } 464 464 465 for ($idx=0; $idx<count($security_equals); $idx++)465 for ($idx=0; $idx<count($security_equals); ++$idx) 466 466 { 467 467 $name = $this->id2name((int)$security_equals[$idx]); -
trunk/phpgwapi/inc/class.accounts_contacts.inc.php
r547 r7655 172 172 173 173 /* get user information for each user/group */ 174 for($i=0;$i<count($allValues); $i++)174 for($i=0;$i<count($allValues);++$i) 175 175 { 176 176 $accounts[] = Array( -
trunk/phpgwapi/inc/class.accounts_ldap.inc.php
r5141 r7655 277 277 $members = $this->member($this->account_id); 278 278 $newData['memberuid'] = array(); 279 for($i=0;$i<count($members); $i++)279 for($i=0;$i<count($members);++$i) 280 280 { 281 281 $currname = $this->id2name($members[$i]['account_id']); … … 308 308 #_debug_array($members); 309 309 $newData['memberuid'] = array(); 310 for($i=0;$i<count($members); $i++)310 for($i=0;$i<count($members);++$i) 311 311 { 312 312 $currname = $this->id2name($members[$i]['account_id']); -
trunk/phpgwapi/inc/class.auth.inc.php
r2 r7655 55 55 } 56 56 57 for ($i=0; $i<$size; $i++)57 for ($i=0; $i<$size; ++$i) 58 58 { 59 59 $s .= $random_char[mt_rand(1,61)]; -
trunk/phpgwapi/inc/class.categories.inc.php
r4786 r7655 289 289 $cats[$i]['data'] = $this->db->f('cat_data'); 290 290 291 $i++;291 ++$i; 292 292 } 293 293 294 294 $num_cats = count($cats); 295 for ($i=0;$i < $num_cats; $i++)295 for ($i=0;$i < $num_cats;++$i) 296 296 { 297 297 $sub_select = ' AND cat_parent=' . $cats[$i]['id'] . ' AND cat_level=' . ($cats[$i]['level']+1); … … 313 313 $subcats[$j]['description'] = $this->db->f('cat_description'); 314 314 $subcats[$j]['data'] = $this->db->f('cat_data'); 315 $j++;315 ++$j; 316 316 } 317 317 … … 320 320 { 321 321 $newcats = array(); 322 for ($k = 0; $k <= $i; $k++)322 for ($k = 0; $k <= $i; ++$k) 323 323 { 324 324 $newcats[$k] = $cats[$k]; 325 325 } 326 for ($k = 0; $k < $num_subcats; $k++)326 for ($k = 0; $k < $num_subcats; ++$k) 327 327 { 328 328 $newcats[$k+$i+1] = $subcats[$k]; 329 329 } 330 for ($k = $i+1; $k < $num_cats; $k++)330 for ($k = $i+1; $k < $num_cats; ++$k) 331 331 { 332 332 $newcats[$k+$num_subcats] = $cats[$k]; … … 422 422 if($self) 423 423 { 424 for ($i=0;$i<count($cats); $i++)424 for ($i=0;$i<count($cats);++$i) 425 425 { 426 426 if ($cats[$i]['id'] == $self) … … 441 441 } 442 442 $s .= '>'; 443 for ($j=0;$j<$cat['level']; $j++)443 for ($j=0;$j<$cat['level'];++$j) 444 444 { 445 445 $s .= ' '; … … 467 467 if ($this->total_records > 0) 468 468 { 469 for ($i=0;$i<count($cats); $i++)469 for ($i=0;$i<count($cats);++$i) 470 470 { 471 471 $image_set = ' '; … … 576 576 $new_parent = $this->id2name($cat_id,'parent'); 577 577 578 for ($i=0;$i<count($cats); $i++)578 for ($i=0;$i<count($cats);++$i) 579 579 { 580 580 if ($cats[$i]['level'] == 1) -
trunk/phpgwapi/inc/class.common.inc.php
r5928 r7655 62 62 if($debug) { echo "<br>$regs[0] - $regs2[0]"; } 63 63 64 for($i=1;$i<5; $i++)64 for($i=1;$i<5;++$i) 65 65 { 66 66 if($debug) { echo "<br>$i: $regs[$i] - $regs2[$i]"; } … … 93 93 if($debug) { echo "<br>$regs[0] - $regs2[0]"; } 94 94 95 for($i=1;$i<6; $i++)95 for($i=1;$i<6;++$i) 96 96 { 97 97 if($debug) { echo "<br>$i: $regs[$i] - $regs2[$i]"; } … … 408 408 ); 409 409 410 for ($i=0; $i<$size; $i++)410 for ($i=0; $i<$size; ++$i) 411 411 { 412 412 $s .= $random_char[rand(1,61)]; … … 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 for ($i=1; $i<count($errors); ++$i) 438 438 { 439 439 $html_error .= '<tr><td> </td><td align="left">' . $errors[$i] . '</td></tr>'; … … 624 624 } 625 625 } 626 $i++;626 ++$i; 627 627 $output_text .= "\n"; 628 628 } -
trunk/phpgwapi/inc/class.contacts.inc.php
r2 r7655 262 262 } 263 263 264 for ($index = 0; $index < strlen ($s1); $index++)264 for ($index = 0; $index < strlen ($s1); ++$index) 265 265 { 266 266 /* $s1 comes after $s2 */ … … 286 286 { 287 287 $lastindex = count($sortarray) - 2; 288 for ($subindex = 0; $subindex < $lastindex; $subindex++)288 for ($subindex = 0; $subindex < $lastindex; ++$subindex) 289 289 { 290 290 $lastiteration = $lastindex - $subindex; 291 for ($iteration = 0; $iteration < $lastiteration; $iteration++)291 for ($iteration = 0; $iteration < $lastiteration; ++$iteration) 292 292 { 293 293 $nextchar = 0; -
trunk/phpgwapi/inc/class.contacts_ldap.inc.php
r6065 r7655 328 328 { 329 329 $i=0; 330 for($i=0;$i<count($filterarray); $i++)330 for($i=0;$i<count($filterarray);++$i) 331 331 { 332 332 list($name,$value) = preg_split('/=/',$filterarray[$i]); … … 482 482 @reset($ldap_fields); 483 483 $j = 0; 484 for($i=$start;$i<$limit; $i++)484 for($i=$start;$i<$limit;++$i) 485 485 { 486 486 if($i<$this->total_records && $ldap_fields[$i]['uid'][0]) … … 510 510 } 511 511 } 512 $j++;512 ++$j; 513 513 } 514 514 } -
trunk/phpgwapi/inc/class.contacts_sql.inc.php
r2 r7655 614 614 } 615 615 } 616 $i++;616 ++$i; 617 617 } 618 618 return $return_fields; -
trunk/phpgwapi/inc/class.crypto.inc.php
r2 r7655 101 101 $x = strlen($iv); 102 102 $this->iv = ''; 103 for($i = 0; $i < $ivsize; $i++)103 for($i = 0; $i < $ivsize; ++$i) 104 104 { 105 105 $this->iv .= $iv[$i % $x]; … … 109 109 $x = strlen($key); 110 110 $this->key = ''; 111 for($i = 0; $i < $keysize; $i++)111 for($i = 0; $i < $keysize; ++$i) 112 112 { 113 113 $this->key .= $key[$i % $x]; -
trunk/phpgwapi/inc/class.date_time.inc.php
r2 r7655 383 383 if($month > 2 && $this->is_leap_year($year)) 384 384 { 385 $julian++;385 ++$julian; 386 386 } 387 387 return($julian); -
trunk/phpgwapi/inc/class.error.inc.php
r5281 r7655 43 43 $etext = $parms['text']; 44 44 $parray = Array(); 45 for($counter=1;$counter<=10; $counter++)45 for($counter=1;$counter<=10;++$counter) 46 46 { 47 47 $str = 'p_'.$counter; -
trunk/phpgwapi/inc/class.errorlog.inc.php
r370 r7655 124 124 125 125 $errorstack = $this->errorstack; 126 for ($i = 0; $i < count($errorstack); $i++)126 for ($i = 0; $i < count($errorstack); ++$i) 127 127 { 128 128 $err = $errorstack[$i]; … … 153 153 $new = array(); 154 154 reset($this->errorstack); 155 for ($i = 0; $i < count($this->errorstack); $i++)155 for ($i = 0; $i < count($this->errorstack); ++$i) 156 156 { 157 157 $err = $this->errorstack[$i]; … … 182 182 183 183 $errorstack = $this->errorstack; 184 for ($i = 0; $i < count($errorstack); $i++)184 for ($i = 0; $i < count($errorstack); ++$i) 185 185 { 186 186 $err = $errorstack[$i]; -
trunk/phpgwapi/inc/class.gdgraph.inc.php
r2 r7655 119 119 // Draw dashed lines for x axis 120 120 $linespace = ($this->graph_width - $this->margin_left - $this->margin_right) / ($this->num_lines_x - 1); 121 for ($i = 1; $i < $this->num_lines_x; $i++)121 for ($i = 1; $i < $this->num_lines_x; ++$i) 122 122 { 123 123 $x = $i * $linespace + $this->margin_left; … … 130 130 // Draw dashed lines for y axis 131 131 $linespace = ($this->graph_height - $this->margin_top - $this->margin_bottom) / ($this->num_lines_y - 1); 132 for ($i = 1; $i < $this->num_lines_y; $i++)132 for ($i = 1; $i < $this->num_lines_y; ++$i) 133 133 { 134 134 $y = $this->graph_height - $this->margin_bottom - ($i * $linespace); … … 174 174 $this->img->MoveTo($i * $linespace + $this->margin_left, $this->graph_height - $this->margin_bottom + 8); 175 175 $this->img->DrawText(array('text' => $text['date_formatted'])); 176 $i++;176 ++$i; 177 177 } 178 178 … … 223 223 } 224 224 225 for($y=0;$y<$largest; $y++)225 for($y=0;$y<$largest;++$y) 226 226 { 227 227 if($line['sdate'] == $this->line_captions_x[$y]['date']) … … 249 249 elseif($line['edate'] <= $this->line_captions_x[$largest]['date'] && $line['edate'] >= $this->line_captions_x[0]['date']) 250 250 { 251 for($y=0;$y<$largest; $y++)251 for($y=0;$y<$largest;++$y) 252 252 { 253 253 if($line['edate'] == $this->line_captions_x[$y]['date']) … … 262 262 } 263 263 264 for ($w = -3; $w < 4; $w++)264 for ($w = -3; $w < 4; ++$w) 265 265 { 266 266 $this->img->Line(1+$x1,$y1+$w,$x2,$y2+$w); 267 267 } 268 $color_index++;269 $i++;268 ++$color_index; 269 ++$i; 270 270 } 271 271 // Draw the y axis text … … 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 for ($i = 0;$i<count($this->data);++$i) 277 277 { 278 278 $y = $this->graph_height - $this->margin_bottom - ($space * $linespace) - 7; 279 279 $this->img->MoveTo($this->margin_left - 6, $y); 280 280 $this->img->DrawText(array('text' => $this->data[$i]['title'],'justification' => 'right','margin_left' => $this->margin_left)); 281 $space++;281 ++$space; 282 282 } 283 283 -
trunk/phpgwapi/inc/class.jscalendar.inc.php
r6063 r7655 162 162 { 163 163 $partcial_match = 0; 164 for($i = 1; $i <= 12; $i++)164 for($i = 1; $i <= 12; ++$i) 165 165 { 166 166 $long_name = lang(adodb_date('F',mktime(12,0,0,$i,1,2000))); -
trunk/phpgwapi/inc/class.listbox.inc.php
r2 r7655 72 72 $this->p->parse('row','portal_listbox_header',True); 73 73 74 for ($x = 0; $x < count($this->data); $x++)74 for ($x = 0; $x < count($this->data); ++$x) 75 75 { 76 76 $var = Array( -
trunk/phpgwapi/inc/class.log.inc.php
r2 r7655 92 92 93 93 $errorstack = $this->errorstack; 94 for ($i = 0; $i < count($errorstack); $i++)94 for ($i = 0; $i < count($errorstack); ++$i) 95 95 { 96 96 $err = $errorstack[$i]; … … 115 115 $new = array(); 116 116 reset($this->errorstack); 117 for ($i = 0; $i < count($this->errorstack); $i++)117 for ($i = 0; $i < count($this->errorstack); ++$i) 118 118 { 119 119 $err = $this->errorstack[$i]; … … 141 141 142 142 $errorstack = $this->errorstack; 143 for ($i = 0; $i < count($errorstack); $i++)143 for ($i = 0; $i < count($errorstack); ++$i) 144 144 { 145 145 $err = $errorstack[$i]; -
trunk/phpgwapi/inc/class.matrixview.inc.php
r2 r7655 61 61 function matrixview ($month_int = 0, $year_int = 0) 62 62 { 63 for($i;$i<32; $i++)63 for($i;$i<32;++$i) 64 64 { 65 65 if(checkdate($month_int,$i,$year_int)) $days++; … … 131 131 $go = 0; 132 132 } 133 $i++;133 ++$i; 134 134 } 135 135 … … 211 211 212 212 // loop through number of items 213 for($z=0;$z<$this->items_count; $z++)213 for($z=0;$z<$this->items_count;++$z) 214 214 { 215 215 // seperate color and name from first array element … … 222 222 223 223 // loop through days of desired month 224 for($r=1;$r<$this->sumdays+1; $r++)224 for($r=1;$r<$this->sumdays+1;++$r) 225 225 { 226 226 if($this->items_content[$z][$r] == 'x') … … 258 258 echo '<td>' . lang('Title') . '</td>' . "\n"; 259 259 260 for($i=1;$i<$this->sumdays+1; $i++)260 for($i=1;$i<$this->sumdays+1;++$i) 261 261 { 262 262 echo '<td bgcolor="'; echo $this->color_headerfield; echo '">' . sprintf("%02d",$i) . '</td>' . "\n"; … … 302 302 echo '<select name="month"'; 303 303 304 for($i=0;$i<13; $i++)304 for($i=0;$i<13;++$i) 305 305 { 306 306 if ($this->month == $i) … … 318 318 echo '<select name="year"'; 319 319 320 for($i = date('Y') -2;$i<date('Y')+5; $i++)320 for($i = date('Y') -2;$i<date('Y')+5;++$i) 321 321 { 322 322 if($this->year == $i) -
trunk/phpgwapi/inc/class.net_http_client.inc.php
r6057 r7655 816 816 817 817 sleep(0.1); 818 $failureCount++;818 ++$failureCount; 819 819 //print "elapsed ".(time()-$ts)."<br>"; 820 820 } -
trunk/phpgwapi/inc/class.network.inc.php
r5915 r7655 221 221 } 222 222 $lines[] = $line; 223 $i++;223 ++$i; 224 224 } 225 225 $this->close_port(); -
trunk/phpgwapi/inc/class.nextmatchs.inc.php
r3893 r7655 434 434 while($GLOBALS['phpgw']->db->next_record()) 435 435 { 436 $index++;436 ++$index; 437 437 $filter_obj[$index][0] = $GLOBALS['phpgw']->db->f($idxfieldname); 438 438 $filter_obj[$index][1] = $GLOBALS['phpgw']->db->f($strfieldname); … … 453 453 { 454 454 $indexlimit = count($search_obj); 455 for ($index=0; $index<$indexlimit; $index++)455 for ($index=0; $index<$indexlimit; ++$index) 456 456 { 457 457 if ($this->_qfield == '') … … 510 510 } 511 511 512 for ($index=0; $index<$indexlimit; $index++)512 for ($index=0; $index<$indexlimit; ++$index) 513 513 { 514 514 $filter_obj[2+$index][0] = $user_groups[$index]['account_id']; … … 523 523 $indexlimit = count($filter_obj); 524 524 525 for ($index=0; $index<$indexlimit; $index++)525 for ($index=0; $index<$indexlimit; ++$index) 526 526 { 527 527 if ($this->_filter == '') … … 583 583 $indexlimit = count($filter_obj); 584 584 585 for($index=0; $index<$indexlimit; $index++)585 for($index=0; $index<$indexlimit; ++$index) 586 586 { 587 587 if($filter == '') -
trunk/phpgwapi/inc/class.phpmailer.inc.php
r5509 r7655 443 443 function MailSend($header, $body) { 444 444 $to = ""; 445 for($i = 0; $i < count($this->to); $i++)445 for($i = 0; $i < count($this->to); ++$i) 446 446 { 447 447 if($i != 0) { $to .= ", "; } … … 497 497 498 498 // Attempt to send attach all recipients 499 for($i = 0; $i < count($this->to); $i++)499 for($i = 0; $i < count($this->to); ++$i) 500 500 { 501 501 if(!$this->smtp->Recipient($this->to[$i][0])) 502 502 $bad_rcpt[] = $this->to[$i][0]; 503 503 } 504 for($i = 0; $i < count($this->cc); $i++)504 for($i = 0; $i < count($this->cc); ++$i) 505 505 { 506 506 if(!$this->smtp->Recipient($this->cc[$i][0])) 507 507 $bad_rcpt[] = $this->cc[$i][0]; 508 508 } 509 for($i = 0; $i < count($this->bcc); $i++)509 for($i = 0; $i < count($this->bcc); ++$i) 510 510 { 511 511 if(!$this->smtp->Recipient($this->bcc[$i][0])) … … 515 515 if(count($bad_rcpt) > 0) // Create error message 516 516 { 517 for($i = 0; $i < count($bad_rcpt); $i++)517 for($i = 0; $i < count($bad_rcpt); ++$i) 518 518 { 519 519 if($i != 0) { $error .= ", "; } … … 584 584 $connection = true; 585 585 } 586 $index++;586 ++$index; 587 587 } 588 588 if(!$connection) … … 645 645 if(count($addr) > 1) 646 646 { 647 for($i = 1; $i < count($addr); $i++)647 for($i = 1; $i < count($addr); ++$i) 648 648 $addr_str .= ", " . $this->AddrFormat($addr[$i]); 649 649 } … … 686 686 $line = explode($this->LE, $message); 687 687 $message = ""; 688 for ($i=0 ;$i < count($line); $i++)688 for ($i=0 ;$i < count($line); ++$i) 689 689 { 690 690 $line_part = explode(" ", $line[$i]); 691 691 $buf = ""; 692 for ($e = 0; $e<count($line_part); $e++)692 for ($e = 0; $e<count($line_part); ++$e) 693 693 { 694 694 $word = $line_part[$e]; … … 830 830 831 831 // Add custom headers 832 for($index = 0; $index < count($this->CustomHeader); $index++)832 for($index = 0; $index < count($this->CustomHeader); ++$index) 833 833 { 834 834 $result .= $this->HeaderLine(trim($this->CustomHeader[$index][0]), … … 1053 1053 1054 1054 // Add all attachments 1055 for($i = 0; $i < count($this->attachment); $i++)1055 for($i = 0; $i < count($this->attachment); ++$i) 1056 1056 { 1057 1057 // Check for string attachment … … 1326 1326 function InlineImageExists() { 1327 1327 $result = false; 1328 for($i = 0; $i < count($this->attachment); $i++)1328 for($i = 0; $i < count($this->attachment); ++$i) 1329 1329 { 1330 1330 if($this->attachment[$i][6] == "inline") -
trunk/phpgwapi/inc/class.preferences.inc.php
r3043 r7655 953 953 #$avail_pref_array = $bo_mail_prefs->std_prefs; 954 954 #$c_cust_prefs = count($bo_mail_prefs->cust_prefs); 955 #for($i=0;$i<$c_cust_prefs; $i++)955 #for($i=0;$i<$c_cust_prefs;++$i) 956 956 #{ 957 957 # // add each custom prefs to the std prefs array … … 989 989 // --- loop thru $avail_pref_array and process each pref item --- 990 990 $c_prefs = count($avail_pref_array); 991 for($i=0;$i<$c_prefs; $i++)991 for($i=0;$i<$c_prefs;++$i) 992 992 { 993 993 $this_avail_pref = $avail_pref_array[$i]; -
trunk/phpgwapi/inc/class.resultbox.inc.php
r2 r7655 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 for ($x = 0; $x < count($this->data); ++$x) 57 57 { 58 58 echo '<tr>'; -
trunk/phpgwapi/inc/class.sbox.inc.php
r5912 r7655 75 75 $t_s[$selected] = ' selected'; 76 76 77 for ($i=0; $i<24; $i++)77 for ($i=0; $i<24; ++$i) 78 78 { 79 79 $s .= '<option value="' . $i . '"' . $t_s[$i] . '>' … … 89 89 $s = '<select name="' . $name . '">'; 90 90 $t_s[$selected] = " selected"; 91 for ($i=1; $i<13; $i++)91 for ($i=1; $i<13; ++$i) 92 92 { 93 93 $s .= '<option value="' . $i . '"' . $t_s[$i] . '>' … … 106 106 $t_s[$selected] = " selected"; 107 107 108 for ($i=0; $i<60; $i++)108 for ($i=0; $i<60; ++$i) 109 109 { 110 110 $s .= '<option value="' . $i . '"' . $t_s[sprintf("%02d",$i)] . '>' . sprintf("%02d",$i) . '</option>'; … … 139 139 { 140 140 $out = ''; 141 for($i=0;$i<count($this->weekdays); $i++)141 for($i=0;$i<count($this->weekdays);++$i) 142 142 { 143 143 $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($this->weekdays[$i]!=''?lang($this->weekdays[$i]):'').'</option>'."\n"; … … 148 148 function nr2weekday($selected = 0) 149 149 { 150 for($i=0;$i<count($this->weekdays); $i++)150 for($i=0;$i<count($this->weekdays);++$i) 151 151 { 152 152 if ($selected > 0 && $selected == $i) … … 161 161 $out = ''; 162 162 $c_monthnames = count($this->monthnames); 163 for($i=0;$i<$c_monthnames; $i++)163 for($i=0;$i<$c_monthnames;++$i) 164 164 { 165 165 $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($this->monthnames[$i]!=''?lang($this->monthnames[$i]):'').'</option>'."\n"; … … 171 171 { 172 172 $out = ''; 173 for($i=0;$i<=12; $i++)173 for($i=0;$i<=12;++$i) 174 174 { 175 175 $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($i?$i:'').'</option>'."\n"; … … 183 183 $out = ''; 184 184 185 for($i=0;$i<32; $i++)185 for($i=0;$i<32;++$i) 186 186 { 187 187 $out .= '<option value="'.($i?$i:'').'"'.($selected!=$i?'':' selected').'>'.($i?$i:'').'</option>'."\n"; … … 214 214 215 215 // We need to add some good error checking here. 216 for ($i=$startYear;$i<$endyear; $i++)216 for ($i=$startYear;$i<$endyear; ++$i) 217 217 { 218 218 $out .= '<option value="'.$i.'"'; … … 251 251 $out = '<select name="' . $name . '">'; 252 252 253 for($i=1;$i<count($arr); $i++)253 for($i=1;$i<count($arr);++$i) 254 254 { 255 255 $out .= "<option value=\""; … … 304 304 if(@is_array($selected)) 305 305 { 306 for($i=0;$i<count($selected); $i++)306 for($i=0;$i<count($selected);++$i) 307 307 { 308 308 if ($group['account_id'] == $selected[$i]) -
trunk/phpgwapi/inc/class.schema_proc_pgsql.inc.php
r5934 r7655 385 385 { 386 386 $aIx[$i] = trim($ix); 387 $i++;387 ++$i; 388 388 } 389 389 /* Restore original value */ … … 409 409 410 410 $sSQL .= $name; 411 $i++;411 ++$i; 412 412 } 413 413 … … 444 444 } 445 445 } 446 $i++;446 ++$i; 447 447 } 448 448 $sSQL .= ')'; -
trunk/phpgwapi/inc/class.sector_search_ldap.inc.php
r5773 r7655 65 65 $info = ldap_get_entries($this->ldap_connection, $sr); 66 66 67 for ($i = 0; $i < $info["count"]; $i++) {68 $level++;67 for ($i = 0; $i < $info["count"]; ++$i) { 68 ++$level; 69 69 $next_ldap_context[$i] = $info[$i]["dn"]; 70 70 … … 90 90 } else { 91 91 92 for ($i = 0; $i < $info["count"]; $i++) {92 for ($i = 0; $i < $info["count"]; ++$i) { 93 93 $sectors_list[$i] = $info[$i]["ou"][0]; 94 94 } … … 138 138 } 139 139 140 for ($i = 0; $i < $info["count"]; $i++) {140 for ($i = 0; $i < $info["count"]; ++$i) { 141 141 $dn = $info[$i]["dn"]; 142 142 … … 172 172 $display .= '+'; 173 173 else { 174 for ($i = 0; $i < $level; $i++)174 for ($i = 0; $i < $level; ++$i) 175 175 $display .= '---'; 176 176 } … … 230 230 } 231 231 232 for ($i = 0; $i < $info["count"]; $i++) {232 for ($i = 0; $i < $info["count"]; ++$i) { 233 233 $dn = trim(strtolower($info[$i]['dn'])); 234 234 if ($dn == $selected) -
trunk/phpgwapi/inc/class.sessions.inc.php
r6435 r7655 388 388 $ip_exploded = explode(",",$ip); 389 389 $ip = ""; 390 for($i=0;$i<2; $i++)390 for($i=0;$i<2;++$i) 391 391 $ip .= isset($ip_exploded[$i])?(($i==1?",":"").trim($ip_exploded[$i])):(""); 392 392 if(strlen($ip)>30) … … 1190 1190 1191 1191 $new_extravars[$b[0]] = $b[1]; 1192 $i++;1192 ++$i; 1193 1193 } 1194 1194 $extravars = $new_extravars; -
trunk/phpgwapi/inc/class.setup.inc.php
r3626 r7655 710 710 $less = 0; 711 711 712 for($i=0;$i<count($testa); $i++)712 for($i=0;$i<count($testa);++$i) 713 713 { 714 714 if($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is less than ' . (int)$testb[$i] . ' ...'; } … … 716 716 { 717 717 if ($DEBUG) { echo ' yes.'; } 718 $less++;718 ++$less; 719 719 if($i<3) 720 720 { … … 792 792 $less = 0; 793 793 794 for($i=0;$i<count($testa); $i++)794 for($i=0;$i<count($testa);++$i) 795 795 { 796 796 if($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is more than ' . (int)$testb[$i] . ' ...'; } … … 798 798 { 799 799 if($DEBUG) { echo ' yes.'; } 800 $less++;800 ++$less; 801 801 if($i<3) 802 802 { -
trunk/phpgwapi/inc/class.setup_detection.inc.php
r5781 r7655 427 427 else 428 428 { 429 $none++;429 ++$none; 430 430 } 431 431 } -
trunk/phpgwapi/inc/class.setup_process.inc.php
r6737 r7655 160 160 } 161 161 162 $i++;162 ++$i; 163 163 if($i == 20) /* Then oops it broke */ 164 164 { -
trunk/phpgwapi/inc/class.soap_server.inc.php
r5934 r7655 359 359 } 360 360 // validate each param's type 361 for($i=0; $i < count($p); $i++)361 for($i=0; $i < count($p); ++$i) 362 362 { 363 363 // type not match -
trunk/phpgwapi/inc/class.translation_sql.inc.php
r3442 r7655 48 48 function translation($warnings = False) 49 49 { 50 for ($i = 1; $i <= 9; $i++)50 for ($i = 1; $i <= 9; ++$i) 51 51 { 52 52 $this->placeholders[] = '%'.$i; -
trunk/phpgwapi/inc/class.vcard.inc.php
r6057 r7655 560 560 $namel = 'n_' . $myname; 561 561 $entry[$namel] = $values[$j]; 562 $j++;562 ++$j; 563 563 } 564 564 break; … … 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 // for($i=0;$i<count($buffer);++$i) 627 627 // { 628 628 // $vcards .= $this->vcard->out($buffer[$i]); -
trunk/phpgwapi/inc/class.vfs_dav.inc.php
r6057 r7655 626 626 $count = count ($rarray); 627 627 reset ($rarray); 628 for ($i = 0; (list ($key, $value) = each ($rarray)) && $i != $count; $i++)628 for ($i = 0; (list ($key, $value) = each ($rarray)) && $i != $count; ++$i) 629 629 { 630 630 $rarray[$key . '_clean'] = $this->db_clean (array ('string' => $value)); … … 2370 2370 $ext=$parts[(sizeof($parts)-1)]; 2371 2371 2372 for($i=0;$i<sizeof($contents); $i++)2372 for($i=0;$i<sizeof($contents);++$i) 2373 2373 { 2374 2374 if (!preg_match('/^#/',$contents[$i])) … … 2377 2377 if (sizeof($line) >= 2) 2378 2378 { 2379 for($j=1;$j<sizeof($line); $j++)2379 for($j=1;$j<sizeof($line);++$j) 2380 2380 { 2381 2381 if($line[$j] == $ext) … … 2618 2618 foreach ( $prop as $key=>$value) 2619 2619 { 2620 $id++;2620 ++$id; 2621 2621 $new_key = substr($value[$data['orderby']].' ',0, 8); 2622 2622 $tmp_prop[strtolower($new_key).'_'.$id] = $value; … … 2693 2693 foreach ( $prop as $key=>$value) 2694 2694 { 2695 $id++;2695 ++$id; 2696 2696 $new_key = substr($value[$data['orderby']].' ',0, 8); 2697 2697 $tmp_prop[strtolower($new_key).'_'.$id] = $value; … … 2804 2804 } 2805 2805 2806 for ($i = 1; $i != ($arg_info['params'] + 1); $i++)2806 for ($i = 1; $i != ($arg_info['params'] + 1); ++$i) 2807 2807 { 2808 2808 if (substr ($argv[$i], 0, 1) == '/') … … 2844 2844 { 2845 2845 if(!is_array($data)) $data=array(); 2846 for ($i = 0; list ($key, $value) = each ($default_values); $i++)2846 for ($i = 0; list ($key, $value) = each ($default_values); ++$i) 2847 2847 { 2848 2848 if (!isset ($data[$key])) -
trunk/phpgwapi/inc/class.vfs_shared.inc.php
r6057 r7655 793 793 $ext=$parts[(sizeof($parts)-1)]; 794 794 795 for($i=0;$i<sizeof($contents); $i++)795 for($i=0;$i<sizeof($contents);++$i) 796 796 { 797 797 if (!preg_match('/^#/',$contents[$i])) … … 800 800 if (sizeof($line) >= 2) 801 801 { 802 for($j=1;$j<sizeof($line); $j++)802 for($j=1;$j<sizeof($line);++$j) 803 803 { 804 804 if($line[$j] == $ext) … … 1053 1053 $count = count ($rarray); 1054 1054 reset ($rarray); 1055 for ($i = 0; (list ($key, $value) = each ($rarray)) && $i != $count; $i++)1055 for ($i = 0; (list ($key, $value) = each ($rarray)) && $i != $count; ++$i) 1056 1056 { 1057 1057 $rarray[$key . '_clean'] = $this->clean_string (array ('string' => $value)); … … 1324 1324 } 1325 1325 1326 for ($i = 1; $i != ($arg_info['params'] + 1); $i++)1326 for ($i = 1; $i != ($arg_info['params'] + 1); ++$i) 1327 1327 { 1328 1328 if (substr ($argv[$i], 0, 1) == "/") … … 1363 1363 function default_values ($data, $default_values) 1364 1364 { 1365 for ($i = 0; list ($key, $value) = each ($default_values); $i++)1365 for ($i = 0; list ($key, $value) = each ($default_values); ++$i) 1366 1366 { 1367 1367 if (!isset ($data[$key])) -
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r6057 r7655 242 242 $sql2 .= ' VALUES ('; 243 243 244 for ($i = 0; list ($attribute, $value) = each ($file_array); $i++)244 for ($i = 0; list ($attribute, $value) = each ($file_array); ++$i) 245 245 { 246 246 if ($attribute == 'file_id' || $attribute == 'content') … … 357 357 } 358 358 359 for ($i = 0; $i < $newnumofparts; $i++)359 for ($i = 0; $i < $newnumofparts; ++$i) 360 360 { 361 361 if (!isset ($version_parts[$i])) … … 2222 2222 $sql .= $attribute.'=' .$GLOBALS['phpgw']->db->quote($data['attributes'][$attribute],$this->column_defs[$attribute]['type']); 2223 2223 2224 $change_attributes++;2224 ++$change_attributes; 2225 2225 } 2226 2226 } … … 2863 2863 2864 2864 $rarray = array (); 2865 for ($i = 0; $GLOBALS['phpgw']->db->next_record (); $i++)2865 for ($i = 0; $GLOBALS['phpgw']->db->next_record (); ++$i) 2866 2866 { 2867 2867 $record = $GLOBALS['phpgw']->db->Record; -
trunk/phpgwapi/inc/class.xml.inc.php
r6037 r7655 291 291 292 292 // Calculate the amount of whitespaces to display. 293 for ( $i = 0; $i < ( $level * 2 ); $i++)293 for ( $i = 0; $i < ( $level * 2 ); ++$i ) 294 294 { 295 295 // Add a whitespaces to the string. … … 377 377 { 378 378 // Run through all children with the same name. 379 for ( $i = 1; $i <= $pos; $i++)379 for ( $i = 1; $i <= $pos; ++$i ) 380 380 { 381 381 // Generate the full path of the child. … … 552 552 553 553 // Now run through the siblings. 554 for ( $i = 1; $i <= $siblings; $i++)554 for ( $i = 1; $i <= $siblings; ++$i ) 555 555 { 556 556 // Create the name of the sibling. … … 564 564 565 565 // Increase the counter. 566 $counter++;566 ++$counter; 567 567 568 568 // Add the old and the new name to the list of nodes … … 1215 1215 1216 1216 // Run through the string. 1217 for ( $i = 0; $i < strlen($term); $i++)1217 for ( $i = 0; $i < strlen($term); ++$i ) 1218 1218 { 1219 1219 // Get the character at the position of the string. … … 1224 1224 { 1225 1225 // Increase the number of brackets. 1226 $brackets++;1226 ++$brackets; 1227 1227 } 1228 1228 elseif ( ( $character == ")" ) || ( $character == "]" ) ) … … 1922 1922 { 1923 1923 // Run through all childs with this name. 1924 for ( $i = 1; $i <= $child_position; $i++)1924 for ( $i = 1; $i <= $child_position; ++$i ) 1925 1925 { 1926 1926 // Create the path of the child. … … 2076 2076 { 2077 2077 // Run through all children of this name. 2078 for ( $i = 1; $i <= $child_position; $i++)2078 for ( $i = 1; $i <= $child_position; ++$i ) 2079 2079 { 2080 2080 // Create the full path for the children. … … 2669 2669 2670 2670 // Run through each argument and evaluate it. 2671 for ( $i = 0; $i < sizeof($arguments); $i++)2671 for ( $i = 0; $i < sizeof($arguments); ++$i ) 2672 2672 { 2673 2673 // Trim each argument. … … 2840 2840 2841 2841 // Run through all arguments. 2842 for ( $i = 0; $i < sizeof($arguments); $i++)2842 for ( $i = 0; $i < sizeof($arguments); ++$i ) 2843 2843 { 2844 2844 // Trim the string. … … 2911 2911 2912 2912 // Run through all arguments. 2913 for ( $i = 0; $i < sizeof($arguments); $i++)2913 for ( $i = 0; $i < sizeof($arguments); ++$i ) 2914 2914 { 2915 2915 // Trim the argument. … … 3371 3371 3372 3372 // Run through the array of arguments. 3373 for ( $i = 1; $i < sizeof($arguments); $i++)3373 for ( $i = 1; $i < sizeof($arguments); ++$i ) 3374 3374 { 3375 3375 // Add the number of the argument to the command. -
trunk/phpgwapi/inc/class.xmlrpc_server_epi.inc.php
r5912 r7655 109 109 return array(1); 110 110 111 for($i=0; $i<sizeof($sig); $i++)111 for($i=0; $i<sizeof($sig); ++$i) 112 112 { 113 113 // check each possible signature in turn … … 116 116 { 117 117 $itsOK = 1; 118 for($n=0; $n<$in->getNumParams(); $n++)118 for($n=0; $n<$in->getNumParams(); ++$n) 119 119 { 120 120 $p = $in->getParam($n); -
trunk/phpgwapi/inc/class.xmlrpc_server_php.inc.php
r5912 r7655 144 144 function verifySignature($in, $sig) 145 145 { 146 for($i=0; $i<sizeof($sig); $i++)146 for($i=0; $i<sizeof($sig); ++$i) 147 147 { 148 148 // check each possible signature in turn … … 151 151 { 152 152 $itsOK = 1; 153 for($n=0; $n<$in->getNumParams(); $n++)153 for($n=0; $n<$in->getNumParams(); ++$n) 154 154 { 155 155 $p = $in->getParam($n); … … 301 301 // now add parameters in 302 302 $plist = ''; 303 for($i=0; $i<sizeof($GLOBALS['_xh'][$parser]['params']); $i++)303 for($i=0; $i<sizeof($GLOBALS['_xh'][$parser]['params']); ++$i) 304 304 { 305 305 //print "<!-- " . $GLOBALS['_xh'][$parser]['params'][$i]. "-->\n"; -
trunk/phpgwapi/inc/class.xmlrpcmsg.inc.php
r6057 r7655 42 42 if (is_array($pars) && sizeof($pars)>0) 43 43 { 44 for($i=0; $i<sizeof($pars); $i++)44 for($i=0; $i<sizeof($pars); ++$i) 45 45 { 46 46 $this->addParam($pars[$i]); … … 66 66 { 67 67 $this->payload .= '<params>' . "\n"; 68 for($i=0; $i<sizeof($this->params); $i++)68 for($i=0; $i<sizeof($this->params); ++$i) 69 69 { 70 70 $p = $this->params[$i]; … … 174 174 $newdata = ''; 175 175 $hdrfnd = 0; 176 for ($i=0; $i<sizeof($ar); $i++)176 for ($i=0; $i<sizeof($ar); ++$i) 177 177 { 178 178 if (!$hdrfnd) -
trunk/phpgwapi/inc/class.xmlrpcval.inc.php
r5509 r7655 184 184 // array 185 185 $rs .= '<array>'."\n".'<data>'."\n"; 186 for($i=0; $i<sizeof($val); $i++)186 for($i=0; $i<sizeof($val); ++$i) 187 187 { 188 188 $rs .= $this->serializeval($val[$i]); -
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 { -
trunk/phpgwapi/inc/csstidy/class.csstidy.php
r5141 r7655 367 367 break; 368 368 } 369 $i++;369 ++$i; 370 370 } 371 371 … … 419 419 $template = explode('|',$content); 420 420 421 for ($i = 0; $i < count($template); $i++)421 for ($i = 0; $i < count($template); ++$i ) 422 422 { 423 423 $this->template[$i] = $template[$i]; … … 470 470 $cur_comment = ''; 471 471 472 for ($i = 0, $size = strlen($string); $i < $size; $i++)472 for ($i = 0, $size = strlen($string); $i < $size; ++$i ) 473 473 { 474 474 if($string{$i} == "\n" || $string{$i} == "\r") … … 812 812 { 813 813 $this->status = $this->from; 814 $i++;814 ++$i; 815 815 $this->_add_token(COMMENT, $cur_comment); 816 816 $cur_comment = ''; -
trunk/phpgwapi/inc/csstidy/class.csstidy_optimise.php
r3052 r7655 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 for ( $i = 0; $i < count($color_tmp); ++$i ) 305 305 { 306 306 $color_tmp[$i] = trim ($color_tmp[$i]); … … 312 312 } 313 313 $color = '#'; 314 for ($i = 0; $i < 3; $i++)314 for ($i = 0; $i < 3; ++$i ) 315 315 { 316 316 if($color_tmp[$i]<16) { … … 383 383 $temp = array($subvalue); 384 384 } 385 for ($l = 0; $l < count($temp); $l++)385 for ($l = 0; $l < count($temp);++$l) 386 386 { 387 387 // continue if no numeric value … … 404 404 { 405 405 $unit_found = FALSE; 406 for ($m = 0, $size_4 = count($units); $m < $size_4; $m++)406 for ($m = 0, $size_4 = count($units); $m < $size_4; ++$m) 407 407 { 408 408 if (strpos(strtolower($temp[$l]),$units[$m]) !== FALSE) … … 514 514 if(count($values) == 4) 515 515 { 516 for($i=0;$i<4; $i++)516 for($i=0;$i<4;++$i) 517 517 { 518 518 $return[$shorthands[$property][$i]] = $values[$i].$important; … … 528 528 elseif(count($values) == 2) 529 529 { 530 for($i=0;$i<4; $i++)530 for($i=0;$i<4;++$i) 531 531 { 532 532 $return[$shorthands[$property][$i]] = (($i % 2 != 0)) ? $values[1].$important : $values[0].$important; … … 535 535 else 536 536 { 537 for($i=0;$i<4; $i++)537 for($i=0;$i<4;++$i) 538 538 { 539 539 $return[$shorthands[$property][$i]] = $values[0].$important; … … 558 558 $output = array(); 559 559 $num = 0; 560 for($i = 0, $len = strlen($string);$i < $len; $i++)560 for($i = 0, $len = strlen($string);$i < $len; ++$i) 561 561 { 562 562 switch($status) … … 619 619 620 620 $important = ''; 621 for($i = 0; $i < 4; $i++)621 for($i = 0; $i < 4; ++$i) 622 622 { 623 623 $val = $array[$value[$i]]; … … 665 665 666 666 $str_value = csstidy_optimise::explode_ws(',',$str_value); 667 for($i = 0; $i < count($str_value); $i++)667 for($i = 0; $i < count($str_value); ++$i) 668 668 { 669 669 $have['clip'] = FALSE; $have['pos'] = FALSE; … … 672 672 $str_value[$i] = csstidy_optimise::explode_ws(' ',trim($str_value[$i])); 673 673 674 for($j = 0; $j < count($str_value[$i]); $j++)674 for($j = 0; $j < count($str_value[$i]); ++$j) 675 675 { 676 676 if($have['bg'] === FALSE && (substr($str_value[$i][$j],0,4) == 'url(' || $str_value[$i][$j] === 'none')) … … 743 743 $important = ''; 744 744 745 for($i = 0; $i < $number_of_values; $i++)745 for($i = 0; $i < $number_of_values; ++$i) 746 746 { 747 747 foreach($background_prop_default as $bg_property => $default_value) -
trunk/phpgwapi/inc/fpdf/font/courier.php
r2 r7655 1 1 <?php 2 for($i=0;$i<=255; $i++)2 for($i=0;$i<=255;++$i) 3 3 $fpdf_charwidths['courier'][chr($i)]=600; 4 4 $fpdf_charwidths['courierB']=$fpdf_charwidths['courier']; -
trunk/phpgwapi/inc/fpdf/font/makefont/makefont.php
r5928 r7655 24 24 } 25 25 } 26 for($i=0;$i<=255; $i++)26 for($i=0;$i<=255;++$i) 27 27 if(!isset($cc2gn[$i])) 28 28 $cc2gn[$i]='.notdef'; … … 114 114 $widths['Delta']=$widths['increment']; 115 115 //Order widths according to map 116 for($i=0;$i<=255; $i++)116 for($i=0;$i<=255;++$i) 117 117 { 118 118 if(!isset($widths[$map[$i]])) … … 185 185 $s="array(\n\t"; 186 186 $cw=$fm['Widths']; 187 for($i=0;$i<=255; $i++)187 for($i=0;$i<=255;++$i) 188 188 { 189 189 if(chr($i)=="'") … … 211 211 $s=''; 212 212 $last=0; 213 for($i=32;$i<=255; $i++)213 for($i=32;$i<=255;++$i) 214 214 { 215 215 if($map[$i]!=$ref[$i]) … … 257 257 //Seek OS/2 table 258 258 $found=false; 259 for($i=0;$i<$nb; $i++)259 for($i=0;$i<$nb;++$i) 260 260 { 261 261 if(fread($f,4)=='OS/2') -
trunk/phpgwapi/inc/fpdf/fpdf.php
r2 r7655 427 427 $w=0; 428 428 $l=strlen($s); 429 for($i=0;$i<$l; $i++)429 for($i=0;$i<$l;++$i) 430 430 $w+=$cw[$s{$i}]; 431 431 return $w*$this->FontSize/1000; … … 483 483 $d=0; 484 484 $nb=count($this->diffs); 485 for($i=1;$i<=$nb; $i++)485 for($i=1;$i<=$nb;++$i) 486 486 if($this->diffs[$i]==$diff) 487 487 { … … 748 748 } 749 749 $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); 750 $i++;750 ++$i; 751 751 $sep=-1; 752 752 $j=$i; 753 753 $l=0; 754 754 $ns=0; 755 $nl++;755 ++$nl; 756 756 if($border and $nl==2) 757 757 $b=$b2; … … 762 762 $sep=$i; 763 763 $ls=$l; 764 $ns++;764 ++$ns; 765 765 } 766 766 $l+=$cw[$c]; … … 771 771 { 772 772 if($i==$j) 773 $i++;773 ++$i; 774 774 if($this->ws>0) 775 775 { … … 793 793 $l=0; 794 794 $ns=0; 795 $nl++;795 ++$nl; 796 796 if($border and $nl==2) 797 797 $b=$b2; 798 798 } 799 799 else 800 $i++;800 ++$i; 801 801 } 802 802 //Last chunk … … 837 837 //Explicit line break 838 838 $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); 839 $i++;839 ++$i; 840 840 $sep=-1; 841 841 $j=$i; … … 847 847 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 848 848 } 849 $nl++;849 ++$nl; 850 850 continue; 851 851 } … … 865 865 $w=$this->w-$this->rMargin-$this->x; 866 866 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 867 $i++;868 $nl++;867 ++$i; 868 ++$nl; 869 869 continue; 870 870 } 871 871 if($i==$j) 872 $i++;872 ++$i; 873 873 $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); 874 874 } … … 887 887 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 888 888 } 889 $nl++;889 ++$nl; 890 890 } 891 891 else 892 $i++;892 ++$i; 893 893 } 894 894 //Last chunk … … 1089 1089 { 1090 1090 //Replace number of pages 1091 for($n=1;$n<=$nb; $n++)1091 for($n=1;$n<=$nb;++$n) 1092 1092 $this->pages[$n]=str_replace($this->AliasNbPages,$nb,$this->pages[$n]); 1093 1093 } … … 1103 1103 } 1104 1104 $filter=($this->compress) ? '/Filter /FlateDecode ' : ''; 1105 for($n=1;$n<=$nb; $n++)1105 for($n=1;$n<=$nb;++$n) 1106 1106 { 1107 1107 //Page … … 1145 1145 $this->_out('<</Type /Pages'); 1146 1146 $kids='/Kids ['; 1147 for($i=0;$i<$nb; $i++)1147 for($i=0;$i<$nb;++$i) 1148 1148 $kids.=(3+2*$i).' 0 R '; 1149 1149 $this->_out($kids.']'); … … 1230 1230 $cw=&$font['cw']; 1231 1231 $s='['; 1232 for($i=32;$i<=255; $i++)1232 for($i=32;$i<=255;++$i) 1233 1233 $s.=$cw[chr($i)].' '; 1234 1234 $this->_out($s.']'); … … 1283 1283 { 1284 1284 $trns=''; 1285 for($i=0;$i<count($info['trns']); $i++)1285 for($i=0;$i<count($info['trns']);++$i) 1286 1286 $trns.=$info['trns'][$i].' '.$info['trns'][$i].' '; 1287 1287 $this->_out('/Mask ['.$trns.']'); … … 1390 1390 $this->_out('0 '.($this->n+1)); 1391 1391 $this->_out('0000000000 65535 f '); 1392 for($i=1;$i<=$this->n; $i++)1392 for($i=1;$i<=$this->n;++$i) 1393 1393 $this->_out(sprintf('%010d 00000 n ',$this->offsets[$i])); 1394 1394 //Trailer -
trunk/phpgwapi/inc/fpdf/tutorial/tuto2.php
r2 r7655 37 37 $pdf->AddPage(); 38 38 $pdf->SetFont('Times','',12); 39 for($i=1;$i<=40; $i++)39 for($i=1;$i<=40;++$i) 40 40 $pdf->Cell(0,10,'Printing line number '.$i,0,1); 41 41 $pdf->Output(); -
trunk/phpgwapi/inc/fpdf/tutorial/tuto5.php
r2 r7655 38 38 $w=array(40,35,40,45); 39 39 //Header 40 for($i=0;$i<count($header); $i++)40 for($i=0;$i<count($header);++$i) 41 41 $this->Cell($w[$i],7,$header[$i],1,0,'C'); 42 42 $this->Ln(); … … 65 65 //Header 66 66 $w=array(40,35,40,45); 67 for($i=0;$i<count($header); $i++)67 for($i=0;$i<count($header);++$i) 68 68 $this->Cell($w[$i],7,$header[$i],1,0,'C',1); 69 69 $this->Ln(); -
trunk/phpgwapi/inc/xml_functions.inc.php
r6057 r7655 167 167 } 168 168 } 169 $i++;169 ++$i; 170 170 } 171 171 return $op; … … 493 493 $arr = array(); 494 494 495 for($i = 0; $i < $size; $i++)495 for($i = 0; $i < $size; ++$i) 496 496 { 497 497 $arr[]=phpgw_xmlrpc_decode($xmlrpc_val->arraymem($i)); … … 607 607 $sigs = array(); 608 608 $thesigs=$dmap[$methName]['signature']; 609 for($i=0; $i<sizeof($thesigs); $i++)609 for($i=0; $i<sizeof($thesigs); ++$i) 610 610 { 611 611 $cursig = array(); 612 612 $inSig = $thesigs[$i]; 613 for($j=0; $j<sizeof($inSig); $j++)613 for($j=0; $j<sizeof($inSig); ++$j) 614 614 { 615 615 $cursig[] = CreateObject('phpgwapi.xmlrpcval',$inSig[$j], 'string'); -
trunk/phpgwapi/inc/xmlrpc.interop.php
r2 r7655 139 139 $rv = CreateObject('phpgwapi.xmlrpcval',array(), xmlrpcArray); 140 140 141 for($j=0; $j<$sz; $j++)141 for($j=0; $j<$sz; ++$j) 142 142 { 143 143 $b = $v->arraymem($j); … … 208 208 // TODO: create debug method to print can work once more 209 209 // print "<!-- found $max array elements -->\n"; 210 for($i=0; $i<$max; $i++)210 for($i=0; $i<$max; ++$i) 211 211 { 212 212 $rec = $sno->arraymem($i); … … 342 342 $sno = $m->getParam(0); 343 343 $numcurly = 0; 344 for($i=0; $i<$sno->arraysize(); $i++)344 for($i=0; $i<$sno->arraysize(); ++$i) 345 345 { 346 346 $str = $sno->arraymem($i); … … 457 457 $str=$sno->scalarval(); 458 458 $gt=0; $lt=0; $ap=0; $qu=0; $amp=0; 459 for($i=0; $i<strlen($str); $i++)459 for($i=0; $i<strlen($str); ++$i) 460 460 { 461 461 $c=substr($str, $i, 1); … … 463 463 { 464 464 case '>': 465 $gt++;465 ++$gt; 466 466 break; 467 467 case '<': 468 $lt++;468 ++$lt; 469 469 break; 470 470 case '"': 471 $qu++;471 ++$qu; 472 472 break; 473 473 case "'": 474 $ap++;474 ++$ap; 475 475 break; 476 476 case '&': 477 $amp++;477 ++$amp; 478 478 break; 479 479 default: -
trunk/phpgwapi/setup/manageheader.php
r5913 r7655 505 505 ); 506 506 507 for($i=0; $i<30; $i++)507 for($i=0; $i<30; ++$i) 508 508 { 509 509 $GLOBALS['phpgw_info']['server']['mcrypt_iv'] .= $random_char[rand(1,count($random_char))]; -
trunk/phpgwapi/templates/classic/listUsers.php
r3404 r7655 130 130 $info = ldap_get_entries($ds, $sr); 131 131 132 for ($i=0; $i<$info["count"]; $i++)132 for ($i=0; $i<$info["count"]; ++$i) 133 133 { 134 134 if ($info[$i]["phpgwaccountvisible"][0] == '-1') … … 144 144 $info = ldap_get_entries($ds, $sr); 145 145 if($typeAccount == 'u'){ 146 for ($i=0; $i<$info["count"]; $i++)146 for ($i=0; $i<$info["count"]; ++$i) 147 147 { 148 148 if ($info[$i]["phpgwaccountvisible"][0] == '-1') … … 152 152 } 153 153 else { 154 for ($i=0; $i<$info["count"]; $i++)154 for ($i=0; $i<$info["count"]; ++$i) 155 155 $users[$uids=$info[$i]["gidnumber"][0]] = Array('name' => $uids=$info[$i]["cn"][0], 'type' => g); 156 156 -
trunk/phpgwapi/templates/classic/login_classic.php
r5912 r7655 239 239 $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 240 240 241 for ($i=0; $i<count($organizations); $i++)241 for ($i=0; $i<count($organizations); ++$i) 242 242 { 243 243 $tmp_array[strtolower($organizations[$i])] = $organizations[$i]; -
trunk/phpgwapi/templates/classic/navbar.inc.php
r1705 r7655 142 142 unset($icon); 143 143 unset($title); 144 $i++;144 ++$i; 145 145 } 146 146 } -
trunk/phpgwapi/templates/default/listUsers.php
r3404 r7655 130 130 $info = ldap_get_entries($ds, $sr); 131 131 132 for ($i=0; $i<$info["count"]; $i++)132 for ($i=0; $i<$info["count"]; ++$i) 133 133 { 134 134 if ($info[$i]["phpgwaccountvisible"][0] == '-1') … … 144 144 $info = ldap_get_entries($ds, $sr); 145 145 if($typeAccount == 'u'){ 146 for ($i=0; $i<$info["count"]; $i++)146 for ($i=0; $i<$info["count"]; ++$i) 147 147 { 148 148 if ($info[$i]["phpgwaccountvisible"][0] == '-1') … … 152 152 } 153 153 else { 154 for ($i=0; $i<$info["count"]; $i++)154 for ($i=0; $i<$info["count"]; ++$i) 155 155 $users[$uids=$info[$i]["gidnumber"][0]] = Array('name' => $uids=$info[$i]["cn"][0], 'type' => g); 156 156 -
trunk/phpgwapi/templates/default/login_default.php
r7109 r7655 351 351 $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 352 352 353 for ($i=0; $i<count($organizations); $i++)353 for ($i=0; $i<count($organizations); ++$i) 354 354 { 355 355 $tmp_array[strtolower($organizations[$i])] = $organizations[$i]; … … 546 546 // gera parametro com tokens suportados .... 547 547 $var_tokens = ''; 548 for($ii = 1; $ii < 11; $ii++)548 for($ii = 1; $ii < 11; ++$ii) 549 549 { 550 550 if($GLOBALS['phpgw_info']['server']['test_token' . $ii . '1']) -
trunk/phpgwapi/templates/default/navbar.inc.php
r5486 r7655 146 146 unset($icon); 147 147 unset($title); 148 $i++;148 ++$i; 149 149 } 150 150 } -
trunk/phpgwapi/templates/news/login_news.php
r5921 r7655 287 287 $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 288 288 289 for ($i=0; $i<count($organizations); $i++)289 for ($i=0; $i<count($organizations); ++$i) 290 290 { 291 291 $tmp_array[strtolower($organizations[$i])] = $organizations[$i]; … … 481 481 // gera parametro com tokens suportados .... 482 482 $var_tokens = ''; 483 for($ii = 1; $ii < 11; $ii++)483 for($ii = 1; $ii < 11; ++$ii) 484 484 { 485 485 if($GLOBALS['phpgw_info']['server']['test_token' . $ii . '1'])
Note: See TracChangeset
for help on using the changeset viewer.