コード例 #1
0
     }
     exit;
     break;
 case "resume":
     switch ($review) {
         case "change":
             include_once "resume_change.php";
             break;
         default:
             include_once "view_resume.php";
             break;
     }
     break;
 case "download":
     $id = (int) $id;
     $download = CVSetting::download_by_employee($id, $user_id);
     $file_name = $download->cv_file_name;
     $orginal_name = $download->original_name;
     $file_type = $download->cv_file_type;
     $file_size = $download->cv_file_size;
     $file_path = $download->cv_file_path;
     $location = $file_path . $file_name;
     //header("Content-Disposition: attachment; filename=".strip_tags(stripcslashes($orginal_name) ) . " ");
     header("Content-Disposition: attachment; filename=\"" . $orginal_name . "\"");
     // use 'attachment' to force a download
     header("Content-length: " . $file_size);
     header("Content-type: " . $file_type);
     readfile($location);
     die;
     break;
 default: