Ignore:
Timestamp:
07/08/10 18:18:58 (14 years ago)
Author:
amuller
Message:

Ticket #1135 - Corrigindo CSS e adicionando filemanager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/phpgwapi/inc/class.vfs_sql.inc.php

    r1998 r3019  
    833833                                return False; 
    834834                        } 
    835                         session_write_close(); 
     835                                //avoid stuck request 
     836                                session_write_close(); 
     837 
     838                                //reset time limit for big files 
     839                                set_time_limit(0); 
     840 
     841                                ob_end_flush(); 
     842 
    836843                                if ($fp = fopen ($p->real_full_path, 'rb')) 
    837844                                { 
     
    840847                                                echo fread($fp, $i); 
    841848                                                flush(); 
    842                                                 usleep(50); 
    843849                                        } 
    844850                                        fclose ($fp); 
     
    13441350                                                        'relatives'     => array ($t->mask), 
    13451351                                                        'attributes'    => $set_attributes_array 
    1346                                                 ) 
     1352                                                ), 
     1353                                                true 
    13471354                                        ); 
    13481355                                        if (!(strpos(strtoupper($record['mime_type']),'IMAGE') === FALSE)) 
     
    21092116                 * See vfs_shared 
    21102117                 */ 
    2111                 function set_attributes ($data) 
     2118                function set_attributes ($data,$isNewFile = false) 
    21122119                { 
    21132120                        if (!is_array ($data)) 
     
    21332140                           This is kind of trivial, given that set_attributes () can change owner_id, 
    21342141                           size, etc. 
    2135                         */ 
    2136                         if (!$this->acl_check (array( 
    2137                                         'string'        => $p->fake_full_path, 
     2142                         */ 
     2143                        if($isNewFile) 
     2144                        { 
     2145                                if ( !$this->acl_check (array( 
     2146                                        'string'        => $p->fake_full_path, 
     2147                                        'relatives'     => array ($p->mask), 
     2148                                        'operation'     => PHPGW_ACL_ADD 
     2149                                )) 
     2150                                ) 
     2151                                { 
     2152                                        return False; 
     2153                                } 
     2154                        }elseif (!$this->acl_check (array( 
     2155                                'string'        => $p->fake_full_path, 
    21382156                                        'relatives'     => array ($p->mask), 
    21392157                                        'operation'     => PHPGW_ACL_EDIT 
     
    21432161                                return False; 
    21442162                        } 
     2163 
    21452164 
    21462165                        if (!$this->file_exists (array( 
Note: See TracChangeset for help on using the changeset viewer.