ajax(); $key = sb_escape(array_keys($_GET)[0]); if ($data = sb_load_file(key($_GET))) { header("Content-type: ".($data['mime_type'] ? $data['mime_type'] : "application/octet-stream")); header("Content-Disposition: attachment; filename=\"{$data['filename']}\""); $filename = $_SERVER['DOCUMENT_ROOT'] . $data['path']; readfile($filename); }