Changeset 1535


Ignore:
Timestamp:
10/28/09 10:05:59 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhorias no filemanager com correção de bugs

Files:
2 edited

Legend:

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

    r1533 r1535  
    16281628 
    16291629                                if(!in_array($mime_type,$viewable)){ 
    1630                                         echo lang('Inpossbile to edit this file'); 
     1630                                        echo lang('Impossbile to edit this file'); 
    16311631                                        return False; 
    16321632                                } 
     
    16731673                                else 
    16741674                                { 
     1675                                        echo lang('Could not save %1', $this->path.'/'.$this->edit_file); 
    16751676                                        $this->messages[]=lang('Could not save %1', $this->path.'/'.$this->edit_file); 
    16761677                                } 
     
    17871788                                $ls_array = $this->bo->vfs->ls(array( 
    17881789                                        'string'        => $this->path.'/'.$this->file,//FIXME 
    1789                                         'relatives'     => array(RELATIVE_ALL), 
     1790                                        'relatives'     => array(RELATIVE_NONE), 
    17901791                                        'checksubdirs'  => False, 
    17911792                                        'nofiles'       => True 
  • trunk/phpgwapi/inc/class.vfs_sql.inc.php

    r1534 r1535  
    873873                                $acl_operation = PHPGW_ACL_ADD; 
    874874                        } 
    875  
     875                        // In your dir you can do anything you want 
     876                        $path = explode('/',$p->fake_full_path); 
    876877                        if (!$this->acl_check (array( 
    877                                         'string'        => $p->fake_full_path, 
     878                                        'string'        => '/'.$path[1].'/'.$path[2], 
    878879                                        'relatives'     => array ($p->mask), 
    879880                                        'operation'     => $acl_operation 
     
    13641365                                ) 
    13651366                        ); 
    1366  
     1367                        // In your dir you can do anything you want 
     1368                        $path = explode('/',$t->fake_full_path); 
    13671369                        if (!$this->acl_check (array( 
    1368                                         'string'        => $f->fake_full_path, 
     1370                                        'string'        => '/'.$path[1].'/'.$path[2], 
    13691371                                        'relatives'     => array ($f->mask), 
    13701372                                        'operation'     => PHPGW_ACL_READ 
    13711373                                )) 
    13721374                                || !$this->acl_check (array( 
    1373                                         'string'        => $f->fake_full_path, 
     1375                                        'string'        => '/'.$path[1].'/'.$path[2], 
    13741376                                        'relatives'     => array ($f->mask), 
    13751377                                        'operation'     => PHPGW_ACL_DELETE 
     
    13811383 
    13821384                        if (!$this->acl_check (array( 
    1383                                         'string'        => $t->fake_full_path, 
     1385                                        'string'        => '/'.$path[1].'/'.$path[2], 
    13841386                                        'relatives'     => array ($t->mask), 
    13851387                                        'operation'     => PHPGW_ACL_ADD 
     
    13971399                        { 
    13981400                                if (!$this->acl_check (array( 
    1399                                                 'string'        => $t->fake_full_path, 
     1401                                                'string'        => '/'.$path[1].'/'.$path[2], 
    14001402                                                'relatives'     => array ($t->mask), 
    14011403                                                'operation'     => PHPGW_ACL_EDIT 
Note: See TracChangeset for help on using the changeset viewer.