Changeset 1730 for sandbox/filemanager/inc/class.uifilemanager.inc.php
- Timestamp:
- 12/02/09 07:52:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.uifilemanager.inc.php
r1727 r1730 980 980 { 981 981 if (! $this->vfs_functions->verifyLock($this->path.'/'.$this->filename,RELATIVE_NONE)){ 982 echo $this->messages['0'];983 982 $GLOBALS['phpgw']->redirect('/index.php'); 984 985 //$GLOBALS['phpgw']->common->phpgw_exit();986 983 } 987 984 $ls_array = $this->bo->vfs->ls(array( … … 1220 1217 header('Content-disposition: filename="' . addslashes($this->file) . '"'); 1221 1218 Header("Pragma: public"); 1219 echo $this->bo->vfs->read(array( 1220 'string' => $this->path.'/'.$this->file,//FIXME 1221 'relatives' => array(RELATIVE_NONE) 1222 )); 1223 1222 1224 } 1223 1225 else 1224 1226 { 1225 1227 $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 } 1233 1234 $GLOBALS['phpgw']->common->phpgw_exit(); 1234 1235 } … … 1380 1381 $name = strtoupper($this->files_array[$i]['name']); 1381 1382 if (strstr($name,$this->text) || 1382 strstr($comment,$this->text) ) 1383 strstr($comment,$this->text) ){ 1383 1384 $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 } 1384 1387 } 1385 1388 if (count($return) > 50)
Note: See TracChangeset
for help on using the changeset viewer.