2021-05-23 20:48:48 +00:00
|
|
|
<?php
|
|
|
|
|
2022-10-16 17:13:28 +00:00
|
|
|
if(array_key_exists('file', $_REQUEST)) {
|
|
|
|
$file = $_REQUEST['file'];
|
|
|
|
} else {
|
|
|
|
$file = $_REQUEST['id'];
|
|
|
|
}
|
2021-05-23 20:48:48 +00:00
|
|
|
|
|
|
|
$files = array(
|
2022-10-16 17:13:28 +00:00
|
|
|
'PS3FP9NC.swf' => array(
|
|
|
|
'path' => __DIR__ . '/files/PS3FP9NC.swf',
|
2021-05-23 20:48:48 +00:00
|
|
|
'type' => 'application/x-shockwave-flash',
|
|
|
|
'kind' => 'flash',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'PS3FP9NC.swf',
|
2021-05-23 20:48:48 +00:00
|
|
|
),
|
2022-10-16 17:13:28 +00:00
|
|
|
'PS3Loader.swf' => array(
|
|
|
|
'path' => __DIR__ . '/files/PS3Loader.swf',
|
2021-05-23 20:48:48 +00:00
|
|
|
'type' => 'application/x-shockwave-flash',
|
|
|
|
'kind' => 'flash',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'PS3Loader.swf',
|
2021-05-23 20:48:48 +00:00
|
|
|
),
|
2022-10-16 17:13:28 +00:00
|
|
|
'RFpEOTl4eUNZTGNWL2xtS2lMbjIvdz09' => array(
|
|
|
|
'path' => __DIR__ . '/files/FP9Test.swf',
|
2021-05-23 20:48:48 +00:00
|
|
|
'type' => 'application/x-shockwave-flash',
|
|
|
|
'kind' => 'flash',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'FP9Test.swf',
|
2021-05-23 20:48:48 +00:00
|
|
|
),
|
2022-10-16 17:13:28 +00:00
|
|
|
'dENwbEo0TEY0QlVxclEvdk9FWGtWUzByS05FZllRZnFHM0JyWWhSUlF5UT0=' => array(
|
|
|
|
'path' => __DIR__ . '/files/xframework.min.js',
|
2021-05-23 20:48:48 +00:00
|
|
|
'type' => 'application/x-javascript',
|
|
|
|
'kind' => 'js',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'xframework.min.js',
|
2021-05-23 20:48:48 +00:00
|
|
|
),
|
2022-10-16 17:13:28 +00:00
|
|
|
'V3ZGdS8zOFk5dU5oeldSSkRZVEMxc3hLZW45SGdqc3lPL29XRWNSdnJQaz0=' => array(
|
|
|
|
'path' => __DIR__ . '/files/biginteger.min.js',
|
2021-05-23 20:48:48 +00:00
|
|
|
'type' => 'application/x-javascript',
|
|
|
|
'kind' => 'js',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'biginteger.min.js'
|
2021-05-23 20:48:48 +00:00
|
|
|
),
|
2022-10-11 19:32:19 +00:00
|
|
|
'nofsm_patch_480.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_480.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_480.bin',
|
2022-10-11 19:32:19 +00:00
|
|
|
),
|
|
|
|
'nofsm_patch_481.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_481.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_481.bin',
|
2022-10-11 19:32:19 +00:00
|
|
|
),
|
|
|
|
'nofsm_patch_482.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_482.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_482.bin',
|
2022-10-11 19:32:19 +00:00
|
|
|
),
|
|
|
|
'nofsm_patch_483.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_483.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_483.bin',
|
2022-10-11 19:32:19 +00:00
|
|
|
),
|
|
|
|
'nofsm_patch_484.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_484.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_484.bin',
|
2022-10-11 19:32:19 +00:00
|
|
|
),
|
|
|
|
'nofsm_patch_485.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_485.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_485.bin',
|
2022-10-11 19:32:19 +00:00
|
|
|
),
|
|
|
|
'nofsm_patch_486.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_486.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_486.bin',
|
2022-10-11 19:32:19 +00:00
|
|
|
),
|
|
|
|
'nofsm_patch_487.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_487.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_487.bin',
|
2022-10-11 19:32:19 +00:00
|
|
|
),
|
2021-07-09 17:13:24 +00:00
|
|
|
'nofsm_patch_488.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_488.bin',
|
2021-05-23 20:48:48 +00:00
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
2022-10-16 17:13:28 +00:00
|
|
|
'filename' => 'nofsm_patch_488.bin',
|
|
|
|
),
|
|
|
|
'nofsm_patch_489.bin' => array(
|
|
|
|
'path' => __DIR__ . '/files/nofsm_patch_489.bin',
|
|
|
|
'type' => 'application/octet-stream',
|
|
|
|
'kind' => 'bin',
|
|
|
|
'filename' => 'nofsm_patch_489.bin',
|
2021-05-23 20:48:48 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$item = $files[$file];
|
|
|
|
|
|
|
|
if(!file_exists($item['path'])) {
|
|
|
|
http_response_code(404);
|
2022-10-16 17:13:28 +00:00
|
|
|
exit;
|
2021-05-23 20:48:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
header('Content-Type: ' . $item['type']);
|
|
|
|
header('Content-Length: ' . filesize($item['path']));
|
|
|
|
if($item['kind'] == 'flash') {
|
|
|
|
header('Content-Transfer-Encoding: binary');
|
|
|
|
}
|
|
|
|
if($item['kind'] == 'js') {
|
|
|
|
header('Content-Description: File Transfer');
|
|
|
|
header('Content-Disposition: inline; filename="' . $file . '"');
|
|
|
|
}
|
|
|
|
if($item['kind'] == 'bin') {
|
|
|
|
header('Content-Transfer-Encoding: binary');
|
|
|
|
header('Content-Disposition: attachment; filename="' . $file . '"');
|
|
|
|
}
|
|
|
|
readfile($item['path']);
|