This repository has been archived on 2026-06-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
EDT/iphone/module/save_pic.php
T
wsh5485 7e47ce238b chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
2025-06-15 13:04:37 +08:00

20 lines
732 B
PHP

<?php
/////////////////////////////////////////////////////////////////////////////////////上传图片
header("Content-type: text/html; charset=utf-8");
if(THIS_IN!="edt_ipad")
exit("错误的访问!");
$att_dir=dir_cutb(THIS_FILE_ROOT,1);
//
$up_image=$_FILES["up_image"];
$msg=get_db_msg("select no from ".$table_pre."kh where id='".$id."'");
if($up_image["name"]){
$path1="../attachments/design/big";
$path2="../attachments/design/mini";
$new_file_name=$msg["no"]."_".$c.".jpg";
make_mini_picture($up_image["tmp_name"],$path1."/".$new_file_name,800);
//缩略图
make_mini_picture($path1."/".$new_file_name,$path2."/".$new_file_name);
}
echo "{\"success\":\"success\",\"isnew\":\"y\",\"jsname\":\"refresh_admin()\"}";
?>