XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
downloader.php
1<?php
13
14
16{
17
21 public $mimetype;
22 public $ext;
23 public $archiver;
25
29 public function __construct()
30 {
31 //EMPTY
32 }
33
41 public function _header($filename)
42 {
43 if (function_exists('mb_http_output')) {
44 mb_http_output('pass');
45 }
46 header('Content-Type: '.$this->mimetype);
47 if (preg_match("/MSIE ([0-9]\.[0-9]{1,2})/", $_SERVER['HTTP_USER_AGENT'])) {
48 header('Content-Disposition: inline; filename="'.$filename.'"');
49 header('Expires: 0');
50 header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
51 header('Pragma: public');
52 } else {
53 header('Content-Disposition: attachment; filename="'.$filename.'"');
54 header('Expires: 0');
55 header('Pragma: no-cache');
56 }
57 }
58
65 public function addFile($filepath, $newfilename=null)
66 {
67 //EMPTY
68 }
69
76 public function addBinaryFile($filepath, $newfilename=null)
77 {
78 //EMPTY
79 }
80
88 public function addFileData(&$data, $filename, $time=0)
89 {
90 //EMPTY
91 }
92
100 public function addBinaryFileData(&$data, $filename, $time=0)
101 {
102 //EMPTY
103 }
104
111 public function download($name, $gzip = true)
112 {
113 //EMPTY
114 }
115}
addBinaryFileData(&$data, $filename, $time=0)
_header($filename)
addFileData(&$data, $filename, $time=0)
download($name, $gzip=true)
addFile($filepath, $newfilename=null)
addBinaryFile($filepath, $newfilename=null)