plugins/SpecialUpdownload.php
changeset 898 c75754f5b1da
parent 832 7152ca0a0ce9
child 953 323c4cd1aa37
equal deleted inserted replaced
897:f31c252c52c1 898:c75754f5b1da
   306   header('Content-type: '.$row['mimetype']);
   306   header('Content-type: '.$row['mimetype']);
   307   if ( isset($_GET['download']) )
   307   if ( isset($_GET['download']) )
   308   {
   308   {
   309     header('Content-disposition: attachment, filename="' . $filename . '";');
   309     header('Content-disposition: attachment, filename="' . $filename . '";');
   310   }
   310   }
   311   header('Content-length: '.$len);
   311   if ( !@$GLOBALS['do_gzip'] )
       
   312     header('Content-length: ' . $len);
       
   313   
   312   header('Last-Modified: '.enano_date('r', $row['time_id']));
   314   header('Last-Modified: '.enano_date('r', $row['time_id']));
   313   
   315   
   314   // using this method limits RAM consumption
   316   // using this method limits RAM consumption
   315   while ( !feof($handle) )
   317   while ( !feof($handle) )
   316   {
   318   {