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/admin/module/order_report_plugin.php
wsh5485 7e47ce238b chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
2025-06-15 13:04:37 +08:00

32 lines
1.1 KiB
PHP

<?php
//-------------------------------
header("Content-type: text/html; charset=utf-8");
if(THIS_IN!="edt_admin")
exit("错误的访问!");
//-------------------------------execute action
$db=_mysql_connect();
$msg_login_user=get_db_msg("select * from ".$table_pre."user where id='".$uid."'");
$cate="admin_bb";
$json_data="{";
$msg=get_db_msg("select * from ".$table_pre."plugin where id='".$id."'");
$file_name=$msg["file_name"];
//定制目录
$path_plugin=dir_cutb(THIS_FILE_ROOT,1)."/plugin";
//包含插件
$p_file=$path_plugin."/admin_bb/".$file_name.".php";
if(is_file($p_file)){
include $p_file;
$json_data.="\"code\":100,";
$json_data.="\"select\":[".$select."],";
$json_data.="\"id\":\"".$msg["id"]."\",";
$json_data.="\"file_name\":\"".$file_name."\",";
$json_data.="\"cate\":\"".$cate."\",";
$json_data.="\"uid\":\"".$uid."\",";
$json_data.="\"s_username\":\"".$s_username."\",";
$json_data.="\"select_client_type\":\"".$select_client_type."\",";
}else{
$json_data.="\"code\":9,\"msg\":\"插件不存在!\",";
}
$json_data=substr($json_data,0,-1)."}";
echo $json_data;
?>