main/inc/lib/document.lib.php 2 locations
|
@@ 344-348 (lines=5) @@
|
| 341 |
|
|
| 342 |
|
header('Content-type: application/octet-stream'); |
| 343 |
|
header('Content-length: ' . $len); |
| 344 |
|
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) { |
| 345 |
|
header('Content-Disposition: filename= ' . $filename); |
| 346 |
|
} else { |
| 347 |
|
header('Content-Disposition: attachment; filename= ' . $filename); |
| 348 |
|
} |
| 349 |
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { |
| 350 |
|
header('Pragma: '); |
| 351 |
|
header('Cache-Control: '); |
|
@@ 448-452 (lines=5) @@
|
| 445 |
|
header('Content-type: application/octet-stream'); |
| 446 |
|
//header('Content-Type: application/force-download'); |
| 447 |
|
header('Content-length: ' . $len); |
| 448 |
|
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) { |
| 449 |
|
header('Content-Disposition: filename= ' . $filename); |
| 450 |
|
} else { |
| 451 |
|
header('Content-Disposition: attachment; filename= ' . $filename); |
| 452 |
|
} |
| 453 |
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { |
| 454 |
|
header('Pragma: '); |
| 455 |
|
header('Cache-Control: '); |
main/exercise/hotpotatoes_exercise_result.class.php 1 location
|
@@ 198-202 (lines=5) @@
|
| 195 |
|
header('Content-type: application/octet-stream'); |
| 196 |
|
header('Content-Type: application/force-download'); |
| 197 |
|
header('Content-length: '.$len); |
| 198 |
|
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) { |
| 199 |
|
header('Content-Disposition: filename= '.$filename); |
| 200 |
|
} else { |
| 201 |
|
header('Content-Disposition: attachment; filename= '.$filename); |
| 202 |
|
} |
| 203 |
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { |
| 204 |
|
header('Pragma: '); |
| 205 |
|
header('Cache-Control: '); |
main/tracking/courseLogCSV.php 1 location
|
@@ 383-387 (lines=5) @@
|
| 380 |
|
header('Content-length: ' . $len); |
| 381 |
|
$filename = api_html_entity_decode(str_replace(":", "", str_replace(" ", "_", $title[0] . '_' . $title[1] . '.csv'))); |
| 382 |
|
$filename = api_replace_dangerous_char($filename); |
| 383 |
|
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) { |
| 384 |
|
header('Content-Disposition: filename= ' . $filename); |
| 385 |
|
} else { |
| 386 |
|
header('Content-Disposition: attachment; filename= ' . $filename); |
| 387 |
|
} |
| 388 |
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { |
| 389 |
|
header('Pragma: '); |
| 390 |
|
header('Cache-Control: '); |
main/tracking/userlogCSV.php 1 location
|
@@ 318-322 (lines=5) @@
|
| 315 |
|
) |
| 316 |
|
); |
| 317 |
|
$filename = api_replace_dangerous_char($filename); |
| 318 |
|
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) { |
| 319 |
|
header('Content-Disposition: filename= ' . $filename); |
| 320 |
|
} else { |
| 321 |
|
header('Content-Disposition: attachment; filename= ' . $filename); |
| 322 |
|
} |
| 323 |
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { |
| 324 |
|
header('Pragma: '); |
| 325 |
|
header('Cache-Control: '); |
main/gradebook/lib/gradebook_result.class.php 1 location
|
@@ 60-64 (lines=5) @@
|
| 57 |
|
header('Content-type: application/octet-stream'); |
| 58 |
|
header('Content-Type: application/force-download'); |
| 59 |
|
header('Content-length: '.$len); |
| 60 |
|
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) { |
| 61 |
|
header('Content-Disposition: filename= '.$filename); |
| 62 |
|
} else { |
| 63 |
|
header('Content-Disposition: attachment; filename= '.$filename); |
| 64 |
|
} if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { |
| 65 |
|
header('Pragma: '); |
| 66 |
|
header('Cache-Control: '); |
| 67 |
|
header('Cache-Control: public'); // IE cannot download from sessions without a cache |
main/survey/reporting.php 1 location
|
@@ 47-51 (lines=5) @@
|
| 44 |
|
header('Content-type: application/octet-stream'); |
| 45 |
|
header('Content-Type: application/force-download'); |
| 46 |
|
|
| 47 |
|
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) { |
| 48 |
|
header('Content-Disposition: filename= '.$filename); |
| 49 |
|
} else { |
| 50 |
|
header('Content-Disposition: attachment; filename= '.$filename); |
| 51 |
|
} |
| 52 |
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { |
| 53 |
|
header('Pragma: '); |
| 54 |
|
header('Cache-Control: '); |
main/exercise/exercise_result.class.php 1 location
|
@@ 412-416 (lines=5) @@
|
| 409 |
|
header('Content-type: application/octet-stream'); |
| 410 |
|
header('Content-Type: application/force-download'); |
| 411 |
|
header('Content-length: '.$len); |
| 412 |
|
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) { |
| 413 |
|
header('Content-Disposition: filename= '.$filename); |
| 414 |
|
} else { |
| 415 |
|
header('Content-Disposition: attachment; filename= '.$filename); |
| 416 |
|
} |
| 417 |
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { |
| 418 |
|
header('Pragma: '); |
| 419 |
|
header('Cache-Control: '); |