Changeset 5327 for trunk/filemanager/inc/class.uifilemanager.inc.php
- Timestamp:
- 01/09/12 09:17:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/inc/class.uifilemanager.inc.php
r5323 r5327 568 568 else 569 569 $tuple['icon'] = $this->mime_icon($files['mime_type']); 570 $tuple['type'] = $files['type']; 571 $tuple['created'] = $this->vfs_functions->dateString2timeStamp($files['created']); 572 $tuple['modified'] = $this->vfs_functions->dateString2timeStamp($files['modified']); 573 $tuple['size'] = $files['size']; 574 $tuple['mime_type'] = $files['mime_type']; 575 $tuple['pub'] = $files['type']; 576 $tuple['createdby_id'] = $GLOBALS['phpgw']->accounts->id2name($files['createdby_id']); 570 571 $tuple['type'] = $files['type']; 572 $tuple['created'] = $this->vfs_functions->dateString2timeStamp($files['created']); 573 $tuple['modified'] = ( $files['modified'] != "" ) ? $this->vfs_functions->dateString2timeStamp($files['modified']) : ""; 574 $tuple['size'] = $files['size']; 575 $tuple['mime_type'] = $files['mime_type']; 576 $tuple['pub'] = $files['type']; 577 $tuple['createdby_id'] = $GLOBALS['phpgw']->accounts->id2name($files['createdby_id']); 577 578 $tuple['modifiedby_id'] = $files['modifiedby_id'] ? $GLOBALS['phpgw']->accounts->id2name($files['modifiedby_id']) : ''; 578 $tuple['owner'] = $GLOBALS['phpgw']->accounts->id2name($files['owner_id']); 579 $tuple['comment'] = $files['comment']; 580 $tuple['version'] = $files['version']; 579 $tuple['owner'] = $GLOBALS['phpgw']->accounts->id2name($files['owner_id']); 580 $tuple['comment'] = $files['comment']; 581 $tuple['version'] = $files['version']; 582 581 583 $output[] = $tuple; 582 584 } … … 610 612 $return[] = $dir['directory'] . $dir['name']; 611 613 sort(&$return, SORT_STRING); 614 612 615 echo serialize($return); 613 616 } … … 753 756 } 754 757 755 function createdir() { 758 function createdir() 759 { 756 760 if ($this->bo->badchar = $this->bo->bad_chars($this->filename, True, True)) { 757 761 echo lang('Error:') . $this->bo->html_encode(lang('Directory names cannot contain "%1"', $badchar), 1); … … 772 776 $fileinfo = $ls_array[0]; 773 777 774 if ($fileinfo['name']) { 778 if ($fileinfo['name']) 779 { 775 780 if ($fileinfo['mime_type'] != 'Directory') { 776 781 echo lang('Error:') . lang('%1 already exists as a file', $fileinfo['name']); … … 778 783 echo lang('Error:') . lang('Directory %1 already exists', $fileinfo['name']); 779 784 } 780 } else { 785 } 786 else 787 { 781 788 $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 782 789 783 if ($this->bo->vfs->mkdir(array('string' => $this->filename))) { 784 echo lang('Created directory %1', $this->disppath . '/' . $this->filename); 785 } else { 790 if ($this->bo->vfs->mkdir(array('string' => $this->filename))) 791 { 792 echo "True"; 793 //echo lang('Created directory %1', $this->disppath . '/' . $this->filename); 794 } 795 else 796 { 786 797 echo lang('Error:') . lang('Could not create %1', $this->disppath . '/' . $this->filename); 787 798 } 788 799 } 789 echo lang('Directory created');800 790 801 } 791 802
Note: See TracChangeset
for help on using the changeset viewer.