Changeset 5038 for trunk/filemanager/inc/class.uifilemanager.inc.php
- Timestamp:
- 09/05/11 17:16:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/inc/class.uifilemanager.inc.php
r4284 r5038 337 337 echo "<script src='" . $GLOBALS['phpgw_info']['flags']['currentapp'] . "/js/handler.js'></script>"; 338 338 339 //echo "<script src='" . $GLOBALS['phpgw_info']['flags']['currentapp'] . "/js/NewHandler.js'></script>";340 341 342 339 // Temas Expresso 343 340 $theme = "window_" . $GLOBALS['phpgw_info']['user']['preferences']['common']['theme'] . ".css"; … … 529 526 } 530 527 531 function dir_ls() { 528 function dir_ls() 529 { 532 530 // change dir to this->path 533 531 $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 534 532 $return['permissions'] = $this->get_permissions(); 535 $return['quota']['usedSpace'] = $this->bo->vfs->get_size(array(533 /*$return['quota']['usedSpace'] = $this->bo->vfs->get_size(array( 536 534 'string' => $this->path, 537 535 'relatives' => array(RELATIVE_NONE) 538 )); 539 $return['files_count'] = $this->bo->vfs->count_files(array(540 'string' => $this->path,541 542 $quota = $this->bo->vfs->get_quota(array(543 'string' => $this->path544 ));536 ));*/ 537 538 $return['quota']['usedSpace'] = $this->bo->vfs->get_size_all( $GLOBALS['phpgw_info']['user']['account_id'] ); 539 $return['files_count'] = $this->bo->vfs->count_files(array( 'string' => $this->path )); 540 541 $quota = $this->bo->vfs->get_quota(array('string' => $this->bo->homedir )); 542 545 543 reset($this->files_array); 546 544 $this->readFilesInfo(); 547 545 548 for ($i = 0; $i != $this->numoffiles; $i++) { 546 for ($i = 0; $i != $this->numoffiles; $i++) 547 { 549 548 $files = $this->files_array[$i]; 550 549 … … 554 553 /* small keys to safe bandwidth */ 555 554 $tuple['name'] = htmlentities($files['name']); 556 if ($_SESSION['phpgw_info']['user']['preferences']['filemanager']['viewIcons'] == 1) { 555 if ($_SESSION['phpgw_info']['user']['preferences']['filemanager']['viewIcons'] == 1) 556 { 557 557 if ($files['mime_type'] == 'image/png' || 558 558 $files['mime_type'] == 'image/gif' || 559 $files['mime_type'] == 'image/jpg') { 559 $files['mime_type'] == 'image/jpg') 560 { 560 561 $filename = str_replace('=', '', base64_encode($tuple['name'])); 561 562 $pathname = str_replace('=', '', base64_encode($this->path)); … … 1000 1001 { 1001 1002 $historyFile[] = array( 1002 "created" => $ journal_entry['created'],1003 "created" => $this->vfs_functions->dateString2timeStamp($journal_entry['created']), 1003 1004 "version" => $journal_entry['version'], 1004 1005 "who" => $GLOBALS['phpgw']->accounts->id2name($journal_entry['owner_id']),
Note: See TracChangeset
for help on using the changeset viewer.