Ignore:
Timestamp:
12/02/09 07:52:26 (15 years ago)
Author:
amuller
Message:

Ticket #597 - Melhorias no módulos gerenciador de arquivos do expresso livre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/inc/class.uifilemanager.inc.php

    r1727 r1730  
    980980                        { 
    981981                                if (! $this->vfs_functions->verifyLock($this->path.'/'.$this->filename,RELATIVE_NONE)){ 
    982                                         echo $this->messages['0']; 
    983982                                        $GLOBALS['phpgw']->redirect('/index.php'); 
    984  
    985                                         //$GLOBALS['phpgw']->common->phpgw_exit(); 
    986983                                } 
    987984                                $ls_array = $this->bo->vfs->ls(array( 
     
    12201217                                        header('Content-disposition: filename="' . addslashes($this->file) . '"'); 
    12211218                                        Header("Pragma: public"); 
     1219                                        echo $this->bo->vfs->read(array( 
     1220                                                'string'    => $this->path.'/'.$this->file,//FIXME 
     1221                                                'relatives'    => array(RELATIVE_NONE) 
     1222                                        )); 
     1223 
    12221224                                } 
    12231225                                else 
    12241226                                { 
    12251227                                        $GLOBALS['phpgw']->browser->content_header($this->file,$mime_type,$ls_array[0]['size']); 
    1226                                 } 
    1227                                 $this->bo->vfs->print_content(array( 
    1228                                         'string' => $this->path.'/'.$this->file, 
    1229                                         'relatives' => array(RELATIVE_NONE) 
    1230                                 ) 
    1231                         ); 
    1232  
     1228                                        $this->bo->vfs->print_content(array( 
     1229                                                'string' => $this->path.'/'.$this->file, 
     1230                                                'relatives' => array(RELATIVE_NONE) 
     1231                                                ) 
     1232                                        ); 
     1233                                } 
    12331234                                $GLOBALS['phpgw']->common->phpgw_exit(); 
    12341235                        } 
     
    13801381                                                $name = strtoupper($this->files_array[$i]['name']); 
    13811382                                                if (strstr($name,$this->text) || 
    1382                                                 strstr($comment,$this->text) ) 
     1383                                                strstr($comment,$this->text) ){ 
    13831384                                                        $return[$this->files_array[$i]['directory'].$name] = $this->files_array[$i]; 
     1385                                                        $return[$this->files_array[$i]['directory'].$name]['icon'] = $this->mime_icon($this->files_array[$i]['mime_type']); 
     1386                                                } 
    13841387                                        } 
    13851388                                        if (count($return) > 50) 
Note: See TracChangeset for help on using the changeset viewer.