chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?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()\"}";
|
||||
?>
|
||||
Reference in New Issue
Block a user