Changeset 7655 for trunk/filemanager/inc


Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

Location:
trunk/filemanager/inc
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/inc/class.bofilemanager.inc.php

    r6037 r7655  
    156156                function ord_match ($string, $charnum) 
    157157                { 
    158                         for ($i = 0; $i < strlen ($string); $i++) 
     158                        for ($i = 0; $i < strlen ($string); ++$i) 
    159159                        { 
    160160                                $character = ord (substr ($string, $i, 1)); 
     
    191191                        if ($times == NULL) 
    192192                        $times = 1; 
    193                         for ($i = 0; $i != $times; $i++) 
     193                        for ($i = 0; $i != $times; ++$i) 
    194194                        { 
    195195                                if ($return) 
  • trunk/filemanager/inc/class.notifications.inc.php

    r3638 r7655  
    111111                        $email_to = explode( ",", $result[0]['email_to'] ); 
    112112                         
    113                         for( $i = 0 ; $i < count($email_to); $i++ ) 
     113                        for( $i = 0 ; $i < count($email_to); ++$i ) 
    114114                        { 
    115115                                if($email_to[$i] == $emailTo) 
  • trunk/filemanager/inc/class.uiconfig.inc.php

    r3887 r7655  
    273273                                $emails_to = explode(",", $result[0]['email_to']); 
    274274                                 
    275                                 for( $i = 0 ; $i < count($emails_to); $i++ ) 
     275                                for( $i = 0 ; $i < count($emails_to); ++$i ) 
    276276                                { 
    277277                                        $value_email_to .= "<tr>"; 
  • trunk/filemanager/inc/class.uifilemanager.inc.php

    r5327 r7655  
    544544                $this->readFilesInfo(); 
    545545 
    546                 for ($i = 0; $i != $this->numoffiles; $i++) 
     546                for ($i = 0; $i != $this->numoffiles; ++$i) 
    547547                { 
    548548                        $files = $this->files_array[$i]; 
     
    958958                        # We need to include all of the fileman entries for each file's form, 
    959959                        # so we loop through again 
    960                         for ($i = 0; $i != $this->numoffiles; $i++) { 
     960                        for ($i = 0; $i != $this->numoffiles; ++$i) { 
    961961                                if ($this->filename) 
    962962                                        $value = 'value="' . $this->filename . '"'; 
     
    12111211                                reset($this->files_array); 
    12121212                                $this->readFilesInfo(); 
    1213                                 for ($i = 0; $i < count($this->files_array); $i++) { 
     1213                                for ($i = 0; $i < count($this->files_array); ++$i) { 
    12141214                                        $comment = strtoupper($this->files_array[$i]['comment']); 
    12151215                                        $name = strtoupper($this->files_array[$i]['name']); 
  • trunk/filemanager/inc/class.vfs_functions.inc.php

    r5912 r7655  
    382382                                                'relatives'     => array(RELATIVE_NONE, RELATIVE_NONE) 
    383383                                        ))) 
    384                                                 $moved++; 
     384                                                ++$moved; 
    385385                                        else 
    386                                                 $error++; 
     386                                                ++$error; 
    387387                                } 
    388388                        } 
     
    412412                                                'relatives'     => array(RELATIVE_NONE, RELATIVE_NONE) 
    413413                                        ))) 
    414                                                 $copied++; 
     414                                                ++$copied; 
    415415                                        else 
    416                                                 $error++; 
     416                                                ++$error; 
    417417                                } 
    418418                        } 
  • trunk/filemanager/inc/jupload.php

    r3894 r7655  
    396396                                $rtry = $dir . $nameWithoutExtension . '.[' . $cnt . ']' . $ext; 
    397397                                while (file_exists($rtry)) { 
    398                                         $cnt++; 
     398                                        ++$cnt; 
    399399                                        $rtry = $dir . $nameWithoutExtension . '.[' . $cnt . ']' . $ext; 
    400400                                } 
     
    618618                                } 
    619619                                unlink($tmpname); 
    620                                 $cnt++; 
     620                                ++$cnt; 
    621621                                continue; 
    622622                        } 
     
    691691                                array_push($this->files, $files_data); 
    692692                        } 
    693                         $cnt++; 
     693                        ++$cnt; 
    694694                } 
    695695 
  • trunk/filemanager/inc/upload.php

    r5509 r7655  
    8989{ 
    9090        $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) 
    9292        { 
    9393                $command .= " ".$_FILES['upload_file']['tmp_name'][$i]; 
     
    108108{ 
    109109        $return = array( ); 
    110         for( $i = 0; $i != $show_upload_boxes; $i++) 
     110        for( $i = 0; $i != $show_upload_boxes; ++$i) 
    111111        { 
    112112                if ( $_FILES['upload_file']['error'][$i] !== 0 ) 
Note: See TracChangeset for help on using the changeset viewer.