plugins/SpecialUpdownload.php
changeset 1283 cdbc7f48ab72
parent 1279 0bc945385d74
child 1359 53c7e3cc7fb5
equal deleted inserted replaced
1282:49e90e1d9756 1283:cdbc7f48ab72
   299 	header('Content-type: '.$row['mimetype']);
   299 	header('Content-type: '.$row['mimetype']);
   300 	if ( isset($_GET['download']) )
   300 	if ( isset($_GET['download']) )
   301 	{
   301 	{
   302 		header('Content-disposition: attachment, filename="' . $filename . '";');
   302 		header('Content-disposition: attachment, filename="' . $filename . '";');
   303 	}
   303 	}
   304 	// if ( !@$GLOBALS['do_gzip'] )
   304 	if ( !@$GLOBALS['do_gzip'] )
   305 		header('Content-length: ' . $len);
   305 		header('Content-length: ' . $len);
   306 	
   306 	
   307 	header('Last-Modified: '.enano_date('r', $row['time_id']));
   307 	header('Last-Modified: '.enano_date('r', $row['time_id']));
   308 	
   308 	
   309 	// using this method limits RAM consumption
   309 	// using this method limits RAM consumption