Ignore:
Timestamp:
01/09/12 09:17:50 (12 years ago)
Author:
alexandrecorreia
Message:

Ticket #2260 - Sincronismo do módulo Filemanager para o trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/inc/class.uifilemanager.inc.php

    r5323 r5327  
    568568                        else 
    569569                                $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']); 
    577578                        $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                         
    581583                        $output[] = $tuple; 
    582584                } 
     
    610612                        $return[] = $dir['directory'] . $dir['name']; 
    611613                sort(&$return, SORT_STRING); 
     614 
    612615                echo serialize($return); 
    613616        } 
     
    753756        } 
    754757 
    755         function createdir() { 
     758        function createdir() 
     759        { 
    756760                if ($this->bo->badchar = $this->bo->bad_chars($this->filename, True, True)) { 
    757761                        echo lang('Error:') . $this->bo->html_encode(lang('Directory names cannot contain "%1"', $badchar), 1); 
     
    772776                $fileinfo = $ls_array[0]; 
    773777 
    774                 if ($fileinfo['name']) { 
     778                if ($fileinfo['name']) 
     779                { 
    775780                        if ($fileinfo['mime_type'] != 'Directory') { 
    776781                                echo lang('Error:') . lang('%1 already exists as a file', $fileinfo['name']); 
     
    778783                                echo lang('Error:') . lang('Directory %1 already exists', $fileinfo['name']); 
    779784                        } 
    780                 } else { 
     785                } 
     786                else 
     787                { 
    781788                        $this->bo->vfs->cd(array('string' => $this->path, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 
    782789 
    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                        { 
    786797                                echo lang('Error:') . lang('Could not create %1', $this->disppath . '/' . $this->filename); 
    787798                        } 
    788799                } 
    789                 echo lang('Directory created'); 
     800                 
    790801        } 
    791802 
Note: See TracChangeset for help on using the changeset viewer.