|
|
|
|
@ -364,11 +364,12 @@ class Info_amp extends CI_Controller
|
|
|
|
|
$file = $_FILES['file'];
|
|
|
|
|
if (!$file) return;
|
|
|
|
|
//转移文件
|
|
|
|
|
$path = realpath('../cht-system/views/information/word_source').'/'.basename($file['name']);
|
|
|
|
|
$md5_name = md5($file["name"]).strrchr($file["name"],'.');
|
|
|
|
|
$path = realpath('../cht-system/views/information/word_source').'/'.basename($md5_name);
|
|
|
|
|
if (move_uploaded_file($file['tmp_name'], $path)) {
|
|
|
|
|
$msg = "File is valid, and was successfully uploaded: ".$path;
|
|
|
|
|
$msg = "file path: ".$path;
|
|
|
|
|
} else {
|
|
|
|
|
$msg = "Possible file upload attack!";
|
|
|
|
|
$msg = "file upload error!";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($file) {
|
|
|
|
|
|