Ignore:
Timestamp:
11/13/09 17:16:13 (15 years ago)
Author:
amuller
Message:

Ticket #597 - melhoria no modulo gerenciador de arquivos

File:
1 edited

Legend:

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

    r1627 r1648  
    2222                        'touch' => True, 
    2323                        'download'=>True, 
    24                         'setRestricted'=>True 
     24                        'setRestricted'=>True, 
     25                        'editComment'=> True 
    2526                ); 
    2627 
     
    226227                        } 
    227228                } 
     229                function editComment() 
     230                { 
     231                        while(list($file) = each($this->comment_files)) 
     232                        { 
     233                                if($badchar = $this->bo->bad_chars($this->comment_files[$file], False, True)) 
     234                                { 
     235                                        echo "False:badchar:".$badchar; 
     236                                        return False; 
     237                                } 
     238 
     239                                $this->bo->vfs->set_attributes(array( 
     240                                        'string'        => $file, 
     241                                        'relatives'     => array(RELATIVE_ALL), 
     242                                        'attributes'    => array( 
     243                                        'comment' => stripslashes($this->comment_files[$file]) 
     244                                        ) 
     245                                )); 
     246 
     247                                echo "True:".$file; 
     248                                return True; 
     249                        } 
     250                } 
    228251        } 
Note: See TracChangeset for help on using the changeset viewer.