|
|
@@ -32,6 +32,12 @@ class HTTP {
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
+ public static function setDownloadHeaders($filename) {
|
|
|
+ header("Content-Disposition: attachment; filename=\"$filename\"");
|
|
|
+ header("Cache-Control: private, max-age=0, must-revalidate");
|
|
|
+ header("Pragma: public");
|
|
|
+ }
|
|
|
+
|
|
|
public static function getDateFromFields($prefix = "") {
|
|
|
$date = false;
|
|
|
|