Changeset 4915 for branches/2.2/filemanager/inc/class.uifilemanager.inc.php
- Timestamp:
- 08/09/11 17:14:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/filemanager/inc/class.uifilemanager.inc.php
r4228 r4915 582 582 $return['files'] = $output; 583 583 $return['quota']['quotaSize'] = ($quota * 1024 * 1024); 584 //echo serialize(htmlspecialchars_decode(htmlentities($return))); 584 585 echo serialize($return); 585 586 } … … 609 610 $return[] = $dir['directory'] . $dir['name']; 610 611 sort(&$return, SORT_STRING); 612 611 613 echo serialize($return); 612 614 } … … 752 754 } 753 755 754 function createdir() { 756 function createdir() 757 { 755 758 if ($this->bo->badchar = $this->bo->bad_chars($this->filename, True, True)) { 756 759 echo lang('Error:') . $this->bo->html_encode(lang('Directory names cannot contain "%1"', $badchar), 1); … … 771 774 $fileinfo = $ls_array[0]; 772 775 773 if ($fileinfo['name']) { 776 if ($fileinfo['name']) 777 { 774 778 if ($fileinfo['mime_type'] != 'Directory') { 775 779 echo lang('Error:') . lang('%1 already exists as a file', $fileinfo['name']); … … 777 781 echo lang('Error:') . lang('Directory %1 already exists', $fileinfo['name']); 778 782 } 779 } else { 783 } 784 else 785 { 780 786 $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 781 787 782 if ($this->bo->vfs->mkdir(array('string' => $this->filename))) { 783 echo lang('Created directory %1', $this->disppath . '/' . $this->filename); 784 } else { 788 if ($this->bo->vfs->mkdir(array('string' => $this->filename))) 789 { 790 echo "True"; 791 //echo lang('Created directory %1', $this->disppath . '/' . $this->filename); 792 } 793 else 794 { 785 795 echo lang('Error:') . lang('Could not create %1', $this->disppath . '/' . $this->filename); 786 796 } 787 797 } 788 echo lang('Directory created');798 789 799 } 790 800
Note: See TracChangeset
for help on using the changeset viewer.