-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfile.html
More file actions
128 lines (128 loc) · 6.02 KB
/
Copy pathfile.html
File metadata and controls
128 lines (128 loc) · 6.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<?php<br/>
<br/>
if(array_key_exists('file', $_REQUEST)) {<br/>
$file = $_REQUEST['file'];<br/>
} else {<br/>
$file = $_REQUEST['id'];<br/>
}<br/>
<br/>
$files = array(<br/>
'PS3FP9NC.swf' => array(<br/>
'path' => __DIR__ . '/files/PS3FP9NC.swf',<br/>
'type' => 'application/x–shockwave–flash',<br/>
'kind' => 'flash',<br/>
'filename' => 'PS3FP9NC.swf',<br/>
),<br/>
'PS3Loader.swf' => array(<br/>
'path' => __DIR__ . '/files/PS3Loader.swf',<br/>
'type' => 'application/x–shockwave–flash',<br/>
'kind' => 'flash',<br/>
'filename' => 'PS3Loader.swf',<br/>
),<br/>
'RFpEOTl4eUNZTGNWL2xtS2lMbjIvdz09' => array(<br/>
'path' => __DIR__ . '/files/FP9Test.swf',<br/>
'type' => 'application/x–shockwave–flash',<br/>
'kind' => 'flash',<br/>
'filename' => 'FP9Test.swf',<br/>
),<br/>
'dENwbEo0TEY0QlVxclEvdk9FWGtWUzByS05FZllRZnFHM0JyWWhSUlF5UT0=' => array(<br/>
'path' => __DIR__ . '/files/xframework.min.js',<br/>
'type' => 'application/x–javascript',<br/>
'kind' => 'js',<br/>
'filename' => 'xframework.min.js',<br/>
),<br/>
'V3ZGdS8zOFk5dU5oeldSSkRZVEMxc3hLZW45SGdqc3lPL29XRWNSdnJQaz0=' => array(<br/>
'path' => __DIR__ . '/files/biginteger.min.js',<br/>
'type' => 'application/x–javascript',<br/>
'kind' => 'js',<br/>
'filename' => 'biginteger.min.js'<br/>
),<br/>
'nofsm_patch_480.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_480.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_480.bin',<br/>
),<br/>
'nofsm_patch_481.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_481.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_481.bin',<br/>
),<br/>
'nofsm_patch_482.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_482.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_482.bin',<br/>
),<br/>
'nofsm_patch_483.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_483.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_483.bin',<br/>
),<br/>
'nofsm_patch_484.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_484.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_484.bin',<br/>
),<br/>
'nofsm_patch_485.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_485.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_485.bin',<br/>
),<br/>
'nofsm_patch_486.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_486.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_486.bin',<br/>
),<br/>
'nofsm_patch_487.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_487.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_487.bin',<br/>
),<br/>
'nofsm_patch_488.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_488.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_488.bin',<br/>
),<br/>
'nofsm_patch_489.bin' => array(<br/>
'path' => __DIR__ . '/files/nofsm_patch_489.bin',<br/>
'type' => 'application/octet–stream',<br/>
'kind' => 'bin',<br/>
'filename' => 'nofsm_patch_489.bin',<br/>
)<br/>
);<br/>
<br/>
$item = $files[$file];<br/>
<br/>
if(!file_exists($item['path'])) {<br/>
http_response_code(404);<br/>
exit;<br/>
}<br/>
<br/>
header('Content–Type: ' . $item['type']);<br/>
header('Content–Length: ' . filesize($item['path']));<br/>
if($item['kind'] == 'flash') {<br/>
header('Content–Transfer–Encoding: binary');<br/>
}<br/>
if($item['kind'] == 'js') {<br/>
header('Content–Description: File Transfer');<br/>
header('Content–Disposition: inline; filename="' . $file . '"');<br/>
}<br/>
if($item['kind'] == 'bin') {<br/>
header('Content–Transfer–Encoding: binary');<br/>
header('Content–Disposition: attachment; filename="' . $file . '"');<br/>
}<br/>
readfile($item['path']);</body></html>