$StrAccessDenied"; exit(); } header("Pragma:"); header("Content-Type: ".get_mimetype($filename)); header("Content-Length: ".filesize($fullpath)); if ($_GET['action'] == "download"); header("Content-Disposition: attachment; filename=\"$filename\""); readfile($fullpath); } else print "$StrDownloadFail"; } ?>