Changeset 3019 for branches/2.2/phpgwapi/inc
- Timestamp:
- 07/08/10 18:18:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/phpgwapi/inc/class.vfs_sql.inc.php
r1998 r3019 833 833 return False; 834 834 } 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 836 843 if ($fp = fopen ($p->real_full_path, 'rb')) 837 844 { … … 840 847 echo fread($fp, $i); 841 848 flush(); 842 usleep(50);843 849 } 844 850 fclose ($fp); … … 1344 1350 'relatives' => array ($t->mask), 1345 1351 'attributes' => $set_attributes_array 1346 ) 1352 ), 1353 true 1347 1354 ); 1348 1355 if (!(strpos(strtoupper($record['mime_type']),'IMAGE') === FALSE)) … … 2109 2116 * See vfs_shared 2110 2117 */ 2111 function set_attributes ($data )2118 function set_attributes ($data,$isNewFile = false) 2112 2119 { 2113 2120 if (!is_array ($data)) … … 2133 2140 This is kind of trivial, given that set_attributes () can change owner_id, 2134 2141 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, 2138 2156 'relatives' => array ($p->mask), 2139 2157 'operation' => PHPGW_ACL_EDIT … … 2143 2161 return False; 2144 2162 } 2163 2145 2164 2146 2165 if (!$this->file_exists (array(
Note: See TracChangeset
for help on using the changeset viewer.