Ignore:
Timestamp:
11/24/09 16:07:27 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhorias na visualização do módulo fm com tema azul

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.vfs_sql.inc.php

    r1693 r1704  
    791791                } 
    792792 
     793                /*used to safe memory in downloads*/ 
     794                function print_content ($data) 
     795                { 
     796                        if (!is_array ($data)) 
     797                        { 
     798                                $data = array (); 
     799                        } 
     800 
     801                        $default_values = array 
     802                                ( 
     803                                        'relatives'     => array (RELATIVE_CURRENT) 
     804                                ); 
     805 
     806                        $data = array_merge ($this->default_values ($data, $default_values), $data); 
     807 
     808                        $p = $this->path_parts (array( 
     809                                        'string'        => $data['string'], 
     810                                        'relatives'     => array ($data['relatives'][0]) 
     811                                ) 
     812                        ); 
     813 
     814                        if (!$this->acl_check (array( 
     815                                        'string'        => $p->fake_full_path, 
     816                                        'relatives'     => array ($p->mask), 
     817                                        'operation'     => PHPGW_ACL_READ 
     818                                )) 
     819                        ) 
     820                        { 
     821                                return False; 
     822                        } 
     823 
     824                        $conf = CreateObject('phpgwapi.config', 'phpgwapi'); 
     825                        $conf->read_repository(); 
     826                        if ($this->file_actions || $p->outside) 
     827                        { 
     828                                if ($fp = fopen ($p->real_full_path, 'rb')) 
     829                                { 
     830                                        for ($i=0; $i<=filesize($p->real_full_path); $i+=10240) 
     831                                        { 
     832                                                echo fread($fp, $i); 
     833                                                flush(); 
     834                                        } 
     835                                        fclose ($fp); 
     836                                } 
     837                                else 
     838                                { 
     839                                        return False; 
     840                                } 
     841                        } 
     842                        return True; 
     843                } 
     844 
    793845                /* 
    794846                 * See vfs_shared 
Note: See TracChangeset for help on using the changeset viewer.