Changeset 7655 for trunk/filemanager
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/filemanager
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/inc/class.bofilemanager.inc.php
r6037 r7655 156 156 function ord_match ($string, $charnum) 157 157 { 158 for ($i = 0; $i < strlen ($string); $i++)158 for ($i = 0; $i < strlen ($string); ++$i) 159 159 { 160 160 $character = ord (substr ($string, $i, 1)); … … 191 191 if ($times == NULL) 192 192 $times = 1; 193 for ($i = 0; $i != $times; $i++)193 for ($i = 0; $i != $times; ++$i) 194 194 { 195 195 if ($return) -
trunk/filemanager/inc/class.notifications.inc.php
r3638 r7655 111 111 $email_to = explode( ",", $result[0]['email_to'] ); 112 112 113 for( $i = 0 ; $i < count($email_to); $i++)113 for( $i = 0 ; $i < count($email_to); ++$i ) 114 114 { 115 115 if($email_to[$i] == $emailTo) -
trunk/filemanager/inc/class.uiconfig.inc.php
r3887 r7655 273 273 $emails_to = explode(",", $result[0]['email_to']); 274 274 275 for( $i = 0 ; $i < count($emails_to); $i++)275 for( $i = 0 ; $i < count($emails_to); ++$i ) 276 276 { 277 277 $value_email_to .= "<tr>"; -
trunk/filemanager/inc/class.uifilemanager.inc.php
r5327 r7655 544 544 $this->readFilesInfo(); 545 545 546 for ($i = 0; $i != $this->numoffiles; $i++)546 for ($i = 0; $i != $this->numoffiles; ++$i) 547 547 { 548 548 $files = $this->files_array[$i]; … … 958 958 # We need to include all of the fileman entries for each file's form, 959 959 # so we loop through again 960 for ($i = 0; $i != $this->numoffiles; $i++) {960 for ($i = 0; $i != $this->numoffiles; ++$i) { 961 961 if ($this->filename) 962 962 $value = 'value="' . $this->filename . '"'; … … 1211 1211 reset($this->files_array); 1212 1212 $this->readFilesInfo(); 1213 for ($i = 0; $i < count($this->files_array); $i++) {1213 for ($i = 0; $i < count($this->files_array); ++$i) { 1214 1214 $comment = strtoupper($this->files_array[$i]['comment']); 1215 1215 $name = strtoupper($this->files_array[$i]['name']); -
trunk/filemanager/inc/class.vfs_functions.inc.php
r5912 r7655 382 382 'relatives' => array(RELATIVE_NONE, RELATIVE_NONE) 383 383 ))) 384 $moved++;384 ++$moved; 385 385 else 386 $error++;386 ++$error; 387 387 } 388 388 } … … 412 412 'relatives' => array(RELATIVE_NONE, RELATIVE_NONE) 413 413 ))) 414 $copied++;414 ++$copied; 415 415 else 416 $error++;416 ++$error; 417 417 } 418 418 } -
trunk/filemanager/inc/jupload.php
r3894 r7655 396 396 $rtry = $dir . $nameWithoutExtension . '.[' . $cnt . ']' . $ext; 397 397 while (file_exists($rtry)) { 398 $cnt++;398 ++$cnt; 399 399 $rtry = $dir . $nameWithoutExtension . '.[' . $cnt . ']' . $ext; 400 400 } … … 618 618 } 619 619 unlink($tmpname); 620 $cnt++;620 ++$cnt; 621 621 continue; 622 622 } … … 691 691 array_push($this->files, $files_data); 692 692 } 693 $cnt++;693 ++$cnt; 694 694 } 695 695 -
trunk/filemanager/inc/upload.php
r5509 r7655 89 89 { 90 90 $command = "nice -n19 ".$current_config['filemanager_antivirus_command']; 91 for($i = 0; $i != $show_upload_boxes; $i++)91 for($i = 0; $i != $show_upload_boxes; ++$i) 92 92 { 93 93 $command .= " ".$_FILES['upload_file']['tmp_name'][$i]; … … 108 108 { 109 109 $return = array( ); 110 for( $i = 0; $i != $show_upload_boxes; $i++)110 for( $i = 0; $i != $show_upload_boxes; ++$i) 111 111 { 112 112 if ( $_FILES['upload_file']['error'][$i] !== 0 ) -
trunk/filemanager/tests/benchmark_dav.php
r3019 r7655 30 30 $times = array(); 31 31 $phpgw->vfs->cd(); 32 for ($i=0;$i<20; $i++)32 for ($i=0;$i<20; ++$i) 33 33 { 34 34 $phpgw->vfs->dav_client->cached_props = array(); … … 46 46 $times = array(); 47 47 $phpgw->vfs->cd(); 48 for ($i=0;$i<20; $i++)48 for ($i=0;$i<20; ++$i) 49 49 { 50 50 $phpgw->vfs->dav_client->cached_props = array(); -
trunk/filemanager/tp/dompdf/dompdf.php
r6057 r7655 108 108 case "-h": 109 109 $opts["h"] = true; 110 $i++;110 ++$i; 111 111 break; 112 112 113 113 case "-l": 114 114 $opts["l"] = true; 115 $i++;115 ++$i; 116 116 break; 117 117 … … 146 146 case "-v": 147 147 $opts["v"] = true; 148 $i++;148 ++$i; 149 149 break; 150 150 151 151 case "-d": 152 152 $opts["d"] = true; 153 $i++;153 ++$i; 154 154 break; 155 155 … … 163 163 default: 164 164 $opts["filename"] = $_SERVER["argv"][$i]; 165 $i++;165 ++$i; 166 166 break; 167 167 } -
trunk/filemanager/tp/dompdf/include/cellmap.cls.php
r3019 r7655 382 382 383 383 // Resolve the borders 384 for ( $i = 0; $i < $num_rows+1; $i++) {384 for ( $i = 0; $i < $num_rows+1; ++$i) { 385 385 $this->_resolve_border($start_row + $i, 0, "vertical", $bp["left"]); 386 386 $this->_resolve_border($start_row + $i, $this->_num_cols, "vertical", $bp["right"]); 387 387 } 388 388 389 for ( $j = 0; $j < $this->_num_cols; $j++) {389 for ( $j = 0; $j < $this->_num_cols; ++$j) { 390 390 $this->_resolve_border($start_row, $j, "horizontal", $bp["top"]); 391 391 $this->_resolve_border($this->__row, $j, "horizontal", $bp["bottom"]); … … 421 421 $ac = $this->__col; 422 422 while ( isset($this->_cells[$this->__row][$ac]) ) 423 $ac++;423 ++$ac; 424 424 $this->__col = $ac; 425 425 426 426 // Rows: 427 for ( $i = 0; $i < $rowspan; $i++) {427 for ( $i = 0; $i < $rowspan; ++$i ) { 428 428 $row = $this->__row + $i; 429 429 430 430 $this->_frames[ $key ]["rows"][] = $row; 431 431 432 for ( $j = 0; $j < $colspan; $j++)432 for ( $j = 0; $j < $colspan; ++$j) 433 433 $this->_cells[$row][$this->__col + $j] = $frame; 434 434 … … 443 443 444 444 // Columns: 445 for ( $j = 0; $j < $colspan; $j++) {445 for ( $j = 0; $j < $colspan; ++$j ) { 446 446 $col = $this->__col + $j; 447 447 $this->_frames[ $key ]["columns"][] = $col; … … 493 493 $min = 0; 494 494 $max = 0; 495 for ( $cs = 0; $cs < $colspan; $cs++) {495 for ( $cs = 0; $cs < $colspan; ++$cs ) { 496 496 497 497 // Resolve the frame's width(s) with other cells … … 514 514 // The frame needs more space. Expand each sub-column 515 515 $inc = ($frame_min - $min) / $colspan; 516 for ($c = 0; $c < $colspan; $c++) {516 for ($c = 0; $c < $colspan; ++$c) { 517 517 $col =& $this->get_column($this->__col + $c); 518 518 $col["min-width"] += $inc; … … 522 522 if ( $frame_max > $max ) { 523 523 $inc = ($frame_max - $max) / $colspan; 524 for ($c = 0; $c < $colspan; $c++) {524 for ($c = 0; $c < $colspan; ++$c) { 525 525 $col =& $this->get_column($this->__col + $c); 526 526 $col["max-width"] += $inc; … … 544 544 $i = 0; 545 545 while ( isset($this->_cells[$this->__row][$i]) ) 546 $i++;546 ++$i; 547 547 548 548 $this->__col = $i; -
trunk/filemanager/tp/dompdf/include/cpdf_adapter.cls.php
r3019 r7655 851 851 852 852 $this->close_object(); 853 $page_number++;853 ++$page_number; 854 854 } 855 855 } -
trunk/filemanager/tp/dompdf/include/frame_tree.cls.php
r3019 r7655 173 173 // Store the children in an array so that the tree can be modified 174 174 $children = array(); 175 for ($i = 0; $i < $node->childNodes->length; $i++)175 for ($i = 0; $i < $node->childNodes->length; ++$i) 176 176 $children[] = $node->childNodes->item($i); 177 177 -
trunk/filemanager/tp/dompdf/include/functions.inc.php
r3019 r7655 343 343 344 344 $path[$i] = $dir; 345 $i++;345 ++$i; 346 346 } 347 347 … … 472 472 473 473 echo "#" . str_pad($i, 2, " ", STR_PAD_RIGHT) . ": " . str_pad($file.":", 42) . " $func\n"; 474 $i++;474 ++$i; 475 475 } 476 476 echo "\n"; -
trunk/filemanager/tp/dompdf/include/gd_adapter.cls.php
r3019 r7655 264 264 265 265 if ( count($style) == 1 ) { 266 for ($i = 0; $i < $style[0] * $this->_aa_factor; $i++) {266 for ($i = 0; $i < $style[0] * $this->_aa_factor; ++$i) { 267 267 $gd_style[] = $c; 268 268 } 269 269 270 for ($i = 0; $i < $style[0] * $this->_aa_factor; $i++) {270 for ($i = 0; $i < $style[0] * $this->_aa_factor; ++$i) { 271 271 $gd_style[] = $this->_bg_color; 272 272 } … … 279 279 if ( $i % 2 == 0 ) { 280 280 // 'On' pattern 281 for ($i = 0; $i < $style[0] * $this->_aa_factor; $i++)281 for ($i = 0; $i < $style[0] * $this->_aa_factor; ++$i) 282 282 $gd_style[] = $c; 283 283 284 284 } else { 285 285 // Off pattern 286 for ($i = 0; $i < $style[0] * $this->_aa_factor; $i++)286 for ($i = 0; $i < $style[0] * $this->_aa_factor; ++$i) 287 287 $gd_style[] = $this->_bg_color; 288 288 289 289 } 290 $i++;290 ++$i; 291 291 } 292 292 } … … 332 332 333 333 foreach ($style as $length) { 334 for ($i = 0; $i < $length; $i++) {334 for ($i = 0; $i < $length; ++$i) { 335 335 $gd_style[] = $c; 336 336 } … … 409 409 410 410 foreach ($style as $length) { 411 for ($i = 0; $i < $length; $i++) {411 for ($i = 0; $i < $length; ++$i) { 412 412 $gd_style[] = $c; 413 413 } … … 456 456 457 457 foreach ($style as $length) { 458 for ($i = 0; $i < $length; $i++) {458 for ($i = 0; $i < $length; ++$i) { 459 459 $gd_style[] = $c; 460 460 } -
trunk/filemanager/tp/dompdf/include/pdflib_adapter.cls.php
r3019 r7655 281 281 // Close all pages 282 282 $this->_pdf->suspend_page(""); 283 for ($p = 1; $p <= $this->_page_count; $p++) {283 for ($p = 1; $p <= $this->_page_count; ++$p) { 284 284 $this->_pdf->resume_page("pagenumber=$p"); 285 285 $this->_pdf->end_page_ext(""); … … 844 844 $this->_pdf->suspend_page(""); 845 845 846 for ($p = 1; $p <= $this->_page_count; $p++) {846 for ($p = 1; $p <= $this->_page_count; ++$p) { 847 847 $this->_pdf->resume_page("pagenumber=$p"); 848 848 -
trunk/filemanager/tp/dompdf/include/stylesheet.cls.php
r6057 r7655 327 327 328 328 if ( !in_array($selector{0}, array(" ", ">", ".", "#", "+", ":", "[")) ) { 329 $d++;329 ++$d; 330 330 } 331 331 … … 373 373 374 374 $s = $selector{$i}; 375 $i++;375 ++$i; 376 376 377 377 // Eat characters up to the next delimiter … … 500 500 // Read the attribute value, if required 501 501 if ( $op != "" ) { 502 $j++;502 ++$j; 503 503 while ( $j < $tok_len ) { 504 504 if ( $tok{$j} == "]" ) … … 548 548 } 549 549 } 550 $i++;550 ++$i; 551 551 552 552 // case ":": -
trunk/filemanager/tp/dompdf/include/text_frame_decorator.cls.php
r3019 r7655 82 82 // var_dump($text = $this->_frame->get_node()->data); 83 83 // var_dump($asc = utf8_decode($text)); 84 // for ($i = 0; $i < strlen($asc); $i++)84 // for ($i = 0; $i < strlen($asc); ++$i) 85 85 // pre_r("$i: " . $asc{$i} . " - " . ord($asc{$i})); 86 86 // pre_r("width: " . Font_Metrics::get_text_width($text, $style->font_family, $style->font_size)); -
trunk/filemanager/tp/dompdf/lib/class.pdf.php
r3019 r7655 2211 2211 $k = substr($k, 0, 256); 2212 2212 2213 for ($i = 0;$i<256; $i++) {2213 for ($i = 0;$i<256;++$i) { 2214 2214 2215 2215 $this->arc4.= chr($i); … … 2218 2218 $j = 0; 2219 2219 2220 for ($i = 0;$i<256; $i++) {2220 for ($i = 0;$i<256;++$i) { 2221 2221 2222 2222 $t = $this->arc4[$i]; … … 2246 2246 $out = ''; 2247 2247 2248 for ($i = 0;$i<$len; $i++) {2248 for ($i = 0;$i<$len;++$i) { 2249 2249 2250 2250 $a = ($a+1) %256; … … 2615 2615 $dtmp[$bits2[0]] = array(); 2616 2616 2617 for ($i = 1;$i<count($bits2); $i++) {2617 for ($i = 1;$i<count($bits2);++$i) { 2618 2618 2619 2619 $dtmp[$bits2[0]][] = $bits2[$i]; … … 2661 2661 $dtmp[$bits2[0]] = array(); 2662 2662 2663 for ($i = 1;$i<count($bits2); $i++) {2663 for ($i = 1;$i<count($bits2);++$i) { 2664 2664 2665 2665 $dtmp[$bits2[0]][] = $bits2[$i]; … … 2849 2849 if ($lastChar>0 && $num>$lastChar+1) { 2850 2850 2851 for ($i = $lastChar+1;$i<$num; $i++) {2851 for ($i = $lastChar+1;$i<$num;++$i) { 2852 2852 2853 2853 $widths[] = 0; … … 2879 2879 if (!$this->isUnicode) { 2880 2880 // With Unicode, widths array isn't used 2881 for ($i = $lastChar + 1; $i <= $charNum; $i++) {2881 for ($i = $lastChar + 1; $i <= $charNum; ++$i) { 2882 2882 2883 2883 $widths[] = 0; … … 3343 3343 $this->objects[$this->currentContents]['c'] .= "\n".sprintf('%.3F', $a0) .' '.sprintf('%.3F', $b0) .' m '; 3344 3344 3345 for ($i = 1; $i <= $nSeg; $i++) {3345 for ($i = 1; $i <= $nSeg; ++$i) { 3346 3346 3347 3347 // draw this bit of the total curve … … 3531 3531 if ($this->nStateStack) { 3532 3532 3533 for ($i = 1;$i <= $this->nStateStack; $i++) {3533 for ($i = 1;$i <= $this->nStateStack;++$i) { 3534 3534 3535 3535 $this->saveState($i); … … 3715 3715 $numbytes = 1; // number of octetc needed to represent the UTF-8 character 3716 3716 3717 for ($i = 0; $i < $length; $i++) {3717 for ($i = 0; $i < $length; ++$i) { 3718 3718 $c = ord($text{$i}); // get one string character at time 3719 3719 if (count($bytes) == 0) { // get starting octect … … 3741 3741 // compose UTF-8 bytes to a single unicode value 3742 3742 $c = $bytes[0]; 3743 for ($j = 1; $j < $numbytes; $j++) {3743 for ($j = 1; $j < $numbytes; ++$j) { 3744 3744 $c += ($bytes[$j] << (($numbytes - $j - 1) * 0x06)); 3745 3745 } … … 3866 3866 if ($text[$j] == '<') { 3867 3867 3868 $j++;3868 ++$j; 3869 3869 3870 3870 switch ($text[$j]) { … … 3872 3872 case '/': 3873 3873 3874 $j++;3874 ++$j; 3875 3875 3876 3876 if (mb_strlen($text) <= $j) { … … 3885 3885 case 'i': 3886 3886 3887 $j++;3887 ++$j; 3888 3888 3889 3889 if ($text[$j] == '>') { … … 3905 3905 3906 3906 // this this might be a callback function 3907 $j++;3907 ++$j; 3908 3908 3909 3909 $k = mb_strpos($text, '>', $j); … … 3992 3992 case 'i': 3993 3993 3994 $j++;3994 ++$j; 3995 3995 3996 3996 if ($text[$j] == '>') { … … 4010 4010 4011 4011 // this this might be a callback function 4012 $j++;4012 ++$j; 4013 4013 4014 4014 $k = mb_strpos($text, '>', $j); … … 4158 4158 4159 4159 /* 4160 for ($i = 0;$i<$len; $i++){4160 for ($i = 0;$i<$len;++$i){ 4161 4161 $f = 1; 4162 4162 $directive = 0; //$this->PRVTcheckTextDirective($text,$i,$f); … … 4282 4282 $len = mb_strlen($text); 4283 4283 4284 for ($i = 0; $i < $len; $i++) {4284 for ($i = 0; $i < $len; ++$i) { 4285 4285 $char = ord($text{$i}); 4286 4286 // check if we have to replace character … … 4402 4402 $tw = $width/$size*1000; 4403 4403 4404 for ($i = 0;$i<$len; $i++) {4404 for ($i = 0;$i<$len;++$i) { 4405 4405 4406 4406 $f = 1; … … 4850 4850 $ret = 0; 4851 4851 4852 for ($i = 0;$i<$num; $i++) {4852 for ($i = 0;$i<$num;++$i) { 4853 4853 4854 4854 $ret = $ret*256; -
trunk/filemanager/tp/dompdf/www/test/long_table.php
r3019 r7655 25 25 $j_max = 20; 26 26 27 for ( $i = 1; $i <= $i_max; $i++): ?>27 for ( $i = 1; $i <= $i_max; ++$i): ?> 28 28 <tr> 29 29 <?php 30 for ( $j = 1; $j <= $j_max; $j++) {30 for ( $j = 1; $j <= $j_max; ++$j) { 31 31 $r = (int)(255*$i / $i_max); 32 32 $b = (int)(255*$j / $j_max); -
trunk/filemanager/tp/dompdf/www/test/php_test.php
r3019 r7655 15 15 $max_x = $pdf->get_width() - 50; 16 16 $max_y = $pdf->get_height() - 50; 17 for ( $i = 0; $i < 30; $i++) {17 for ( $i = 0; $i < 30; ++$i) { 18 18 $pdf->circle(rand(50, $max_x), rand(50, $max_y), rand(10, 70), 19 19 array(rand()/getrandmax(), rand()/getrandmax(), rand()/getrandmax()),
Note: See TracChangeset
for help on using the changeset viewer.