Changeset 1785 for sandbox/filemanager/inc
- Timestamp:
- 12/07/09 16:31:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.uifilemanager.inc.php
r1781 r1785 30 30 'getReturnExecuteForm' => True, 31 31 'dir_ls' => True, 32 'get_permissions' => True,33 32 'search' => True, 34 33 'uploadModel'=>True … … 559 558 $rights = $acl->get_rights($user_id); 560 559 } 561 echo$rights;560 return $rights; 562 561 } 563 562 function dir_ls() … … 565 564 // change dir to this->path 566 565 $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 567 566 $return['permissions'] = $this->get_permissions(); 567 $return['quota']['usedSpace'] = $this->bo->vfs->get_size(array( 568 'string' => $this->path, 569 'relatives' => array(RELATIVE_NONE) 570 )); 571 $quota = $this->bo->vfs->get_quota(array( 572 'string' => $this->path 573 )); 568 574 reset($this->files_array); 569 575 $this->readFilesInfo(); … … 602 608 else 603 609 array_multisort($temp, SORT_DESC, $output); 604 605 echo serialize($output); 610 $return['files'] = $output; 611 $return['quota']['quotaSize'] = ($quota*1024*1024); 612 echo serialize($return); 606 613 } 607 614 … … 614 621 if($this->numoffiles || $this->cwd) 615 622 { 616 $usedSpace = $this->bo->vfs->get_size(array(617 'string' => $this->path,618 'relatives' => array(RELATIVE_NONE)619 ));620 $quota = $this->bo->vfs->get_quota(array(621 'string' => $this->path622 ));623 624 $vars[usedSpace]='<input type="hidden" id="usedSpace" value="'.$usedSpace.'">';625 $vars[quotaSize]='<input type="hidden" id="quotaSize" value="'.($quota*1024*1024).'">';626 623 $vars[path]='<input type="hidden" id="currentPath" value="'.$this->path.'">'; 627 624 $vars[css]='<link rel="stylesheet" type="text/css" href="filemanager/templates/default/main.css">';
Note: See TracChangeset
for help on using the changeset viewer.