| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/vx/usa/functions/ |
Upload File : |
<?php
if(!empty($_REQUEST['file'])) {
$link = file_get_contents('https://surfcrm.com/bin/ajax/load_file_from_amazon_link.php?bucket=media.synergypromarketing.com&file='.urlencode($_REQUEST['file']));
if(!empty($link)) {
$filename = basename($_REQUEST['file']);
if(strpos($filename,'?')!==false) {
$arr = explode('?',$filename);
$filename = $arr[0];
}
switch(strtolower(substr(strrchr($filename, '.'), 1))) {
case 'pdf': $mime = 'application/pdf'; break;
case 'zip': $mime = 'application/zip'; break;
case 'jpeg':
case 'jpg': $mime = 'image/jpg'; break;
case 'mp3': $mime = 'audio/mpeg'; break;
default: $mime = 'application/force-download';
}
header('Content-Disposition: attachment; filename="'.$filename.'"');
header('Content-Type: '.$mime);
readfile($link);
}
}
?>