7e47ce238b
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
32 lines
1.1 KiB
PHP
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;
|
|
?>
|