Changeset 3488 for trunk/include/ws_functions.inc.php
- Timestamp:
- Jul 1, 2009, 10:56:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions.inc.php
r3454 r3488 524 524 525 525 $comm = array( 526 'author' => trim( stripslashes($params['author'])),527 'content' => trim( stripslashes($params['content'])),526 'author' => trim($params['author']), 527 'content' => trim($params['content']), 528 528 'image_id' => $params['image_id'], 529 529 ); … … 886 886 // type {thumb, file, high} 887 887 // position 888 888 889 889 if (!is_admin() || is_adviser() ) 890 890 { … … 946 946 $pattern = '/'.$original_sum.'-'.$type.'/'; 947 947 $chunks = array(); 948 948 949 949 if ($handle = opendir($upload_dir)) 950 950 { … … 963 963 964 964 ws_logfile('[merge_chunks] memory_get_usage before loading chunks: '.memory_get_usage()); 965 965 966 966 foreach ($chunks as $chunk) 967 967 { 968 968 $string = file_get_contents($chunk); 969 969 970 970 ws_logfile('[merge_chunks] memory_get_usage on chunk '.++$i.': '.memory_get_usage()); 971 971 972 972 if (!file_put_contents($output_filepath, $string, FILE_APPEND)) 973 973 { 974 974 return new PwgError(500, 'error while writting chunks for '.$output_filepath); 975 975 } 976 976 977 977 unlink($chunk); 978 978 } … … 1784 1784 ); 1785 1785 } 1786 1786 1787 1787 } 1788 1788 … … 1790 1790 { 1791 1791 return true; 1792 1792 1793 1793 file_put_contents( 1794 1794 '/tmp/piwigo_ws.log',
Note: See TracChangeset
for help on using the changeset viewer.