TinyImg 2.0.0:更名、下线 SM.MS、新增后台 Token 设置页
基于 ImgURL 1.x 的二次开发版本,主要变更:
1. 更名
- 项目定名为 TinyImg,源码中不再出现旧品牌字样(0 处)
- static/imgurl.js -> static/tinyimg.js
- db/imgurl-simple.db3 -> db/tinyimg-simple.db3
2. 移除 SM.MS 上传
- 删除 embed.js 中的 upload.render / smshow / deletesm
- miniup.html 去掉 SM.MS 选项卡;前台与后台导航移除入口
- sm.php、functions/sm.php、admin/smadmin.php 改为下线说明页
- admin/delete.php 移除 type=sm 分支;class.admin.php 删除 querysm()/deletesm()
3. 新增后台 Token 设置(admin/setting.php + functions/token.php)
- 生成 / 自定义 / 启用 / 停用 / 清空,全部校验 Session CSRF
- 存储于 db/tinyimg-token.php(首行 <?php exit; 守卫)
- config.php 的 api_token 仅作兼容回退,保存一次后由文件接管
- 完整 Token 不写入页面 HTML:默认只渲染掩码,点「显示/复制」时
经 POST action=reveal(同源 + CSRF + 仅登录会话)按需取回
4. 上传端点鉴权
- 统一使用 X-TinyImg-Token 请求头,hash_equals 比较,空配置 fail closed
- 新增 ?ping=1 自检,返回版本、鉴权方式、管理员目录,供写作插件测试连接
5. 版本号
- 统一为 v2.0.0(20261104),前后台页脚引用 functions/version.php
6. 兼容性修复
- class.upload.php 中 $size{...} 花括号下标改为 $size[...](PHP 8 已移除该语法)
7. 仓库整理
- .gitignore 排除 config.php / db/tinyimg-token.php / 运行时目录,
保留 db/.htaccess 与空模板 db/tinyimg-simple.db3
- .gitattributes 统一 LF
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,335 @@
|
||||
<?php
|
||||
error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED);
|
||||
// 载入配置文件
|
||||
include_once("../config.php");
|
||||
|
||||
class Admin{
|
||||
var $config;
|
||||
var $database;
|
||||
function __construct($config,$database) {
|
||||
$this->config = $config;
|
||||
$this->database = $database;
|
||||
$user1 = $config['user'].md5("tinyimg".$config['password']);
|
||||
// echo $user1;
|
||||
//COOKIES里面的信息
|
||||
$user2 = $_COOKIE['user'].$_COOKIE['password'];
|
||||
|
||||
//如果两者信息相符,说明已登录
|
||||
if($user1 != $user2) {
|
||||
echo '权限不足,请先登录!';
|
||||
//清理cookie
|
||||
setcookie("user", '', time()-3600,"/");
|
||||
setcookie("password", '', time()-3600,"/");
|
||||
header('Location:login.php');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//查询图片
|
||||
function querypic($type,$page,$date = null){
|
||||
//对时间进行拆分
|
||||
if($date != null){
|
||||
$date = explode("|",$date);
|
||||
|
||||
$starttime = $date[0];
|
||||
$endttime = $date[1];
|
||||
}
|
||||
|
||||
$config = $this->config;
|
||||
$database = $this->database;
|
||||
|
||||
//分页计算
|
||||
$start = ($page - 1) * 12;
|
||||
//$end = $page * 12;
|
||||
|
||||
if(($page == '') || (!isset($page))) {
|
||||
$page = 1;
|
||||
}
|
||||
|
||||
//要查询的条数
|
||||
$num = 12;
|
||||
|
||||
//判断类型
|
||||
switch ($type) {
|
||||
case 'user':
|
||||
// echo 'dsd';
|
||||
$datas = $database->select("imginfo", "*", [
|
||||
"dir" => $config['userdir'],
|
||||
"ORDER" => ["id" => "DESC"],
|
||||
"LIMIT" => [$start,$num]
|
||||
]);
|
||||
// var_dump( $database->log() );
|
||||
// exit;
|
||||
return $datas;
|
||||
break;
|
||||
case 'admin':
|
||||
$datas = $database->select("imginfo", "*", [
|
||||
"dir" => $config['admindir'],
|
||||
"ORDER" => ["id" => "DESC"],
|
||||
"LIMIT" => [$start,$num]
|
||||
]);
|
||||
return $datas;
|
||||
break;
|
||||
case 'dubious':
|
||||
$datas = $database->select("imginfo", "*", [
|
||||
"level" => 3,
|
||||
"ORDER" => ["id" => "DESC"],
|
||||
"LIMIT" => [$start,$num]
|
||||
]);
|
||||
return $datas;
|
||||
break;
|
||||
case 'unidentification':
|
||||
$datas = $database->select("imginfo", "*", [
|
||||
"level" => null,
|
||||
"ORDER" => ["id" => "DESC"],
|
||||
"LIMIT" => [$start,$num]
|
||||
]);
|
||||
return $datas;
|
||||
break;
|
||||
default:
|
||||
$sql = "SELECT * FROM imginfo WHERE date(date) BETWEEN '$starttime' AND '$endttime' ORDER BY `id` DESC LIMIT $num OFFSET $start";
|
||||
|
||||
$datas = $database->query($sql);
|
||||
return $datas;
|
||||
break;
|
||||
}
|
||||
}
|
||||
//新版查询图片
|
||||
function newquery($type,$date = null){
|
||||
//echo $type;
|
||||
//exit;
|
||||
//获取当前时间
|
||||
$thetime = date('Y-m',time());
|
||||
//对时间进行拆分
|
||||
if($date != null){
|
||||
$date = explode("|",$date);
|
||||
|
||||
$starttime = $date[0];
|
||||
$endttime = $date[1];
|
||||
}
|
||||
|
||||
$config = $this->config;
|
||||
$database = $this->database;
|
||||
|
||||
//判断类型
|
||||
switch ($type) {
|
||||
case 'user':
|
||||
// echo 'dsd';
|
||||
$datas = $database->select("imginfo", "*", [
|
||||
"dir" => $config['userdir'],
|
||||
"date[~]" => $thetime,
|
||||
"ORDER" => ["id" => "DESC"]
|
||||
]);
|
||||
// var_dump( $database->log() );
|
||||
// exit;
|
||||
return $datas;
|
||||
break;
|
||||
case 'admin':
|
||||
$datas = $database->select("imginfo", "*", [
|
||||
"dir" => $config['admindir'],
|
||||
"date[~]" => $thetime,
|
||||
"ORDER" => ["id" => "DESC"]
|
||||
]);
|
||||
return $datas;
|
||||
break;
|
||||
default:
|
||||
$sql = "SELECT * FROM imginfo WHERE date(date) BETWEEN '$starttime' AND '$endttime' ORDER BY `id` DESC";
|
||||
|
||||
$datas = $database->query($sql);
|
||||
//var_dump($database->log());
|
||||
return $datas;
|
||||
break;
|
||||
}
|
||||
}
|
||||
//删除一张图片
|
||||
function delete($id){
|
||||
$config = $this->config;
|
||||
$database = $this->database;
|
||||
//先查询数据库获取图片路径
|
||||
$path = $database->get("imginfo","path",[
|
||||
"id" => $id
|
||||
]);
|
||||
|
||||
|
||||
//完整的图片路径
|
||||
$imgpath = APP.$path;
|
||||
//如果图片删除成功,将再次删除数据库
|
||||
//删除图片
|
||||
unlink($imgpath);
|
||||
//删除数据库
|
||||
$del = $database->delete("imginfo", [
|
||||
"AND" => [
|
||||
"id" => $id
|
||||
]
|
||||
]);
|
||||
echo 'ok';
|
||||
}
|
||||
//统计数据
|
||||
function data() {
|
||||
//获取当前月份
|
||||
$themonth = date('Y-m',time());
|
||||
//获取当天时间
|
||||
$theday = date('Y-m-d',time());
|
||||
|
||||
//统计本月上传图片数量
|
||||
$month = $this->database->count("imginfo",[
|
||||
"date[~]" => $themonth
|
||||
]);
|
||||
|
||||
$day = $this->database->count("imginfo",[
|
||||
"date" => $theday
|
||||
]);
|
||||
|
||||
//统计可疑图片
|
||||
$level = $this->database->count("imginfo",[
|
||||
"level" => 3
|
||||
]);
|
||||
//统计全部图片
|
||||
$all = $this->database->count("imginfo");
|
||||
|
||||
//返回数据
|
||||
$redata = array(
|
||||
"month" => $month,
|
||||
"day" => $day,
|
||||
"level" => $level,
|
||||
"all" => $all
|
||||
);
|
||||
return $redata;
|
||||
}
|
||||
//取消图片可疑状态
|
||||
function cdubious($id){
|
||||
$database = $this->database;
|
||||
$database->update("imginfo",[
|
||||
"level" => 1
|
||||
],[
|
||||
"id" => $id
|
||||
]);
|
||||
echo 'ok';
|
||||
}
|
||||
//对某张图片进行压缩,未开发完成
|
||||
function compress($id,$tinypng){
|
||||
$database = $this->database;
|
||||
$config = $this->config;
|
||||
if($tinypng['option'] != true){
|
||||
$compress['code'] = 0;
|
||||
$compress['msg'] = "未开启图片压缩功能!";
|
||||
}
|
||||
else{
|
||||
$getdata = $database->get("imginfo","*",[
|
||||
"id" => $id
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
||||
// TinyImg 2.0:SM.MS 记录的查询 / 删除方法已整体移除
|
||||
//通过URL批量上传图片
|
||||
function urlup($arr){
|
||||
$config = $this->config;
|
||||
//$arr参数为一个数组
|
||||
$arr = explode("\n",$arr);
|
||||
//计算URL个数
|
||||
$urlnum = count($arr);
|
||||
//不能超过10个
|
||||
if($urlnum > 10){
|
||||
$rejson = array(
|
||||
"code" => 0,
|
||||
"msg" => "URL链接不能超过10个!"
|
||||
);
|
||||
echo json_encode($rejson);
|
||||
exit;
|
||||
}
|
||||
|
||||
//遍历URL并下载图片
|
||||
foreach( $arr as $url )
|
||||
{
|
||||
//去掉空格
|
||||
$url = trim($url);
|
||||
//判断是否是URL
|
||||
if(!filter_var($url, FILTER_VALIDATE_URL)){
|
||||
$rejson = array(
|
||||
"code" => 0,
|
||||
"msg" => $url."不是有效的地址,程序终止!"
|
||||
);
|
||||
echo json_encode($rejson);
|
||||
exit;
|
||||
}
|
||||
//获取图片后缀
|
||||
$suffix = explode(".",$url);
|
||||
$suffix = end($suffix);
|
||||
$suffix = strtolower($suffix);
|
||||
|
||||
//如果是图片后缀,使用curl进行抓取
|
||||
if(($suffix == 'jpg') || ($suffix == 'jpeg') || ($suffix == 'png') || ($suffix == 'bmp') || ($suffix == 'gif')) {
|
||||
|
||||
$curl = curl_init($url);
|
||||
|
||||
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)");
|
||||
curl_setopt($curl, CURLOPT_FAILONERROR, true);
|
||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
|
||||
#设置超时时间,最小为1s(可选)
|
||||
curl_setopt($curl , CURLOPT_TIMEOUT, 10);
|
||||
|
||||
$html = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
|
||||
//判断目录是否存在
|
||||
$dir = APP.$config['admindir'].'/'.date('ym',time());
|
||||
if(!is_dir($dir)){
|
||||
mkdir($dir);
|
||||
}
|
||||
//生成文件名
|
||||
$filenme = $dir.date('Y-m-d H:i:s',time()).$suffix;
|
||||
$filenme = substr(md5($url.$filenme), 8, 16).'.'.$suffix;
|
||||
|
||||
$full = $dir.'/'.$filenme;
|
||||
//写入文件
|
||||
$myfile = fopen($full, "w") or die("Unable to open file!");
|
||||
fwrite($myfile, $html);
|
||||
fclose($myfile);
|
||||
$datas = array(
|
||||
"path" => $config['admindir'].'/'.date('ym',time()).'/'.$filenme,
|
||||
"dir" => $config['admindir']
|
||||
);
|
||||
//写入数据库
|
||||
$insert = $this->indb($datas);
|
||||
|
||||
}
|
||||
else{
|
||||
$rejson = array(
|
||||
"code" => 0,
|
||||
"msg" => "包含无效的图片地址,程序终止!"
|
||||
);
|
||||
echo json_encode($rejson);
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
$rejson = array(
|
||||
"code" => 1,
|
||||
"msg" => "成功上传".$urlnum."张图片!"
|
||||
);
|
||||
echo json_encode($rejson);
|
||||
exit;
|
||||
}
|
||||
|
||||
//图片写入数据库
|
||||
function indb($datas){
|
||||
$database = $this->database;
|
||||
$date = date('Y-m-d',time());
|
||||
$insert = $database->insert("imginfo",[
|
||||
"path" => $datas['path'],
|
||||
"ip" => "127.0.0.1",
|
||||
"ua" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
|
||||
"date" => $date,
|
||||
"dir" => $datas['dir'],
|
||||
"compress" => 0,
|
||||
"level" => 0
|
||||
]);
|
||||
return $insert;
|
||||
}
|
||||
}
|
||||
|
||||
$pic = new Admin($config,$database);
|
||||
?>
|
||||
@@ -0,0 +1,173 @@
|
||||
<?php
|
||||
class Install{
|
||||
public $homedir;
|
||||
public $domain;
|
||||
//构造函数
|
||||
public function __construct(){
|
||||
//获取项目绝对路径
|
||||
$thedir = __DIR__;
|
||||
$homedir = str_replace("\\","/",$thedir);
|
||||
$homedir = str_replace("functions/class","",$homedir);
|
||||
$this->homedir = $homedir;
|
||||
|
||||
//获取当前域名
|
||||
//获取当前端口
|
||||
$port = $_SERVER["SERVER_PORT"];
|
||||
//对端口进行判断
|
||||
switch ( $port )
|
||||
{
|
||||
case 80:
|
||||
$protocol = "http://";
|
||||
$port = '';
|
||||
break;
|
||||
case 443:
|
||||
$protocol = "https://";
|
||||
$port = '';
|
||||
break;
|
||||
default:
|
||||
$protocol = "http://";
|
||||
$port = ":".$port;
|
||||
break;
|
||||
}
|
||||
$uri = $_SERVER["REQUEST_URI"];
|
||||
$uri = str_replace("check.php","",$uri);
|
||||
//组合为完整的URL
|
||||
$domain = $protocol.$_SERVER['SERVER_NAME'].$port.$uri;
|
||||
$domain = str_replace("install.php?setup=2","",$domain);
|
||||
$this->domain = $domain;
|
||||
}
|
||||
//检查环境是否符合条件
|
||||
public function check(){
|
||||
$homedir = $this->homedir;
|
||||
|
||||
//echo $homedir.'db';
|
||||
//检查根目录是否可写,结果写入到一个数组
|
||||
//echo $thedir;
|
||||
$checkarr['home'] = is_writable($homedir);
|
||||
if($checkarr['home']){
|
||||
$statusarr['home'] = '通过';
|
||||
|
||||
}
|
||||
else{
|
||||
$statusarr['home'] = '<span style = "color:red;">目录不可写!</span>';
|
||||
|
||||
}
|
||||
$checkarr['db'] = is_writable($homedir.'db');
|
||||
if($checkarr['db']){
|
||||
$statusarr['db'] = '通过';
|
||||
}
|
||||
else{
|
||||
$statusarr['db'] = '<span style = "color:red;">目录不可写!</span>';
|
||||
|
||||
}
|
||||
//检测组建是否支持
|
||||
$ext = get_loaded_extensions();
|
||||
if(array_search('pdo_sqlite',$ext)){
|
||||
$statusarr['pdo'] = '支持';
|
||||
}
|
||||
else{
|
||||
$statusarr['pdo'] = '<span style = "color:red;">不支持!</span>';
|
||||
}
|
||||
//return $checkarr;
|
||||
return $statusarr;
|
||||
}
|
||||
//获取站点信息
|
||||
public function info(){
|
||||
$homedir = $this->homedir;
|
||||
|
||||
$info = array(
|
||||
"homedir" => $this->homedir,
|
||||
"domain" => $this->domain
|
||||
);
|
||||
|
||||
return $info;
|
||||
}
|
||||
//验证函数
|
||||
protected function verify($data,$type){
|
||||
switch ($type) {
|
||||
//检查用户名
|
||||
case 'user':
|
||||
$pattern = '/^[a-zA-Z0-9]+$/';
|
||||
if($data == ''){
|
||||
echo '请填写用户名!';
|
||||
exit;
|
||||
}
|
||||
if(!preg_match($pattern,$data)){
|
||||
echo '用户名格式有误!';
|
||||
exit;
|
||||
}
|
||||
break;
|
||||
case 'pass':
|
||||
$pattern = '/^[a-zA-Z0-9!@#$%^&*.]+$/';
|
||||
if(!preg_match($pattern,$data)){
|
||||
echo '密码格式有误!';
|
||||
exit;
|
||||
}
|
||||
break;
|
||||
case 'pass2':
|
||||
$pass1 = $data['pass1'];
|
||||
$pass2 = $data['pass2'];
|
||||
|
||||
if($pass1 != $pass2){
|
||||
echo '两次密码不一致!';
|
||||
exit;
|
||||
}
|
||||
break;
|
||||
case 'domain':
|
||||
$domain = $data['domain'];
|
||||
if(!filter_var($domain, FILTER_VALIDATE_URL)){
|
||||
echo '域名格式有误!(需要包含https://)';
|
||||
exit;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
}
|
||||
//安装
|
||||
public function setup($data){
|
||||
$homedir = $this->homedir;
|
||||
$dbpath = $this->homedir.'db/';
|
||||
$user = $data['user'];
|
||||
$pass1 = $data['pass1'];
|
||||
$pass2 = $data['pass2'];
|
||||
|
||||
|
||||
$this->verify($user,'user');
|
||||
$this->verify($pass1,'pass');
|
||||
$this->verify($data,'pass2');
|
||||
$this->verify($data,'domain');
|
||||
|
||||
//复制一份数据库
|
||||
copy($dbpath."tinyimg-simple.db3",$dbpath."tinyimg.db3");
|
||||
//复制一份配置文件
|
||||
if(copy($homedir."config-simple.php",$homedir."config.php")){
|
||||
$configdir = $homedir."config.php";
|
||||
|
||||
$myfile = fopen($homedir."config.php", "r") or die("Unable to open file!");
|
||||
|
||||
|
||||
$content = fread($myfile,filesize($configdir));
|
||||
//执行替换
|
||||
$content = str_replace("imguser",$user,$content);
|
||||
$content = str_replace("imgpass",$pass2,$content);
|
||||
$content = str_replace("homedir",$data['homedir'],$content);
|
||||
$content = str_replace("https://img.example.com/",$data['domain'],$content);
|
||||
|
||||
//var_dump($content);
|
||||
|
||||
//写入文件
|
||||
$myfile = fopen($homedir."config.php", "w+") or die("Unable to open file!");
|
||||
|
||||
|
||||
fwrite($myfile, $content);
|
||||
//关闭
|
||||
fclose($myfile);
|
||||
//更名安装文件
|
||||
rename($homedir."install.php",$homedir."install.php.bak");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED);
|
||||
/*
|
||||
图像处理类
|
||||
*/
|
||||
include_once("../../config.php");
|
||||
//载入TinyPNG
|
||||
require_once(APP."functions/tinypng/Tinify/Exception.php");
|
||||
require_once(APP."functions/tinypng/Tinify/ResultMeta.php");
|
||||
require_once(APP."functions/tinypng/Tinify/Result.php");
|
||||
require_once(APP."functions/tinypng/Tinify/Source.php");
|
||||
require_once(APP."functions/tinypng/Tinify/Client.php");
|
||||
require_once(APP."functions/tinypng/Tinify.php");
|
||||
|
||||
//初始化值
|
||||
$dispose['compress'] = 0;
|
||||
$dispose['level'] = 0;
|
||||
|
||||
//获取ID
|
||||
$id = $_GET['id'];
|
||||
$id = (int)$id;
|
||||
//获取tinypng key
|
||||
$tinykey = array_rand($tinypng['key']); //取出数组键值
|
||||
$tinykey = $tinypng['key'][$tinykey];
|
||||
$iscompress = 0;
|
||||
|
||||
//如果ID不存在或为空
|
||||
if((!isset($id)) || ($id == '')) {
|
||||
echo 'ID错误!';
|
||||
exit;
|
||||
}
|
||||
|
||||
//如果没有启用压缩
|
||||
if($tinypng['option'] != true){
|
||||
echo '未启用压缩功能!';
|
||||
exit;
|
||||
}
|
||||
|
||||
//查询对应信息
|
||||
$info = $database->get("imginfo",[
|
||||
"id",
|
||||
"path",
|
||||
"compress",
|
||||
"level"
|
||||
],[
|
||||
"id" => $id
|
||||
]);
|
||||
|
||||
|
||||
|
||||
//组合为完整的URL地址
|
||||
$tinyimg = $config['domain'].$info['path'];
|
||||
//获取压缩状态
|
||||
$compress = $info['compress'];
|
||||
//获取图片等级
|
||||
$level = $info['level'];
|
||||
//获取文件后缀名
|
||||
$suffix = substr(strrchr($info['path'], '.'), 1);
|
||||
//后缀改为小写
|
||||
$suffix = strtolower($suffix);
|
||||
if(($suffix == 'png') || ($suffix == 'jpg') || ($suffix == 'jpeg')) {
|
||||
$iscompress = 1;
|
||||
}
|
||||
if($iscompress == 0){
|
||||
echo '该后缀不支持压缩!';
|
||||
exit;
|
||||
}
|
||||
if($compress == 1){
|
||||
echo '该图片已经压缩!';
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
//对图片进行压缩
|
||||
if(($tinypng['option'] == true) && ($iscompress == 1) && ($compress == 0)) {
|
||||
//初始化
|
||||
\Tinify\setKey($tinykey);
|
||||
$source = \Tinify\fromUrl($tinyimg);
|
||||
//覆盖原有图片
|
||||
$source->toFile(APP.$info['path']);
|
||||
//更新数据库
|
||||
$database->update("imginfo",[
|
||||
"compress" => 1
|
||||
],[
|
||||
"id" => $id
|
||||
]);
|
||||
$dispose['compress'] = 1;
|
||||
echo '压缩成功!';
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED);
|
||||
// 载入配置文件
|
||||
include_once("../config.php");
|
||||
|
||||
class User{
|
||||
var $config;
|
||||
var $database;
|
||||
|
||||
//构造函数
|
||||
public function __construct($config,$database){
|
||||
$this->config = $config;
|
||||
$this->database = $database;
|
||||
}
|
||||
|
||||
// 用户登录,两个参数,一个是用户输入,一个是配置文件里面的用户信息
|
||||
function login($user,$admin){
|
||||
|
||||
// 用户输入的信息进行md5加密和对比
|
||||
$pw1 = md5($user['user'].$user['password']);
|
||||
$pw2 = md5($admin['user'].$admin['password']);
|
||||
|
||||
|
||||
// 判断用户名密码是否正确
|
||||
if($pw1 != $pw2){
|
||||
echo '用户名或密码不正确!';
|
||||
setcookie("user", '', time()-3600,"/");
|
||||
setcookie("password", '', time()-3600,"/");
|
||||
exit;
|
||||
}
|
||||
else{
|
||||
$password = md5("tinyimg".$admin['password']);
|
||||
//生成cookie
|
||||
setcookie("user", $user['user'], time()+3600 * 24 * 30,"/");
|
||||
setcookie("password", $password, time()+3600 * 24 * 30,"/");
|
||||
echo "<script>window.location.href = './index.php'</script>";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//判断用户状态
|
||||
function check($userinfo){
|
||||
//配置文件里面的用户信息
|
||||
$user1 = $userinfo['user'].md5("tinyimg".$userinfo['password']);
|
||||
// echo $user1;
|
||||
//COOKIES里面的信息
|
||||
$user2 = $_COOKIE['user'].$_COOKIE['password'];
|
||||
|
||||
//如果两者信息相符,说明已登录
|
||||
if($user1 == $user2) {
|
||||
return'islogin';
|
||||
exit;
|
||||
}
|
||||
else{
|
||||
return 'nologin';
|
||||
setcookie("user", '', time()-3600,"/");
|
||||
setcookie("password", '', time()-3600,"/");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//检查某张图片是否已经上传
|
||||
function isupload($path){
|
||||
$num = $this->database->count("imginfo",["path" => $path]);
|
||||
|
||||
//如果图片已经上传过,直接返回图片信息
|
||||
if($num >=1) {
|
||||
$info = $this->database->get("imginfo","*",["path" => $path]);
|
||||
$tinyimg = $this->config['domain'].$path;
|
||||
//返回json数据
|
||||
$redata = array(
|
||||
"code" => 1,
|
||||
"id" => $info['id'],
|
||||
"url" => $tinyimg,
|
||||
"width" => 0,
|
||||
"height" => 0
|
||||
);
|
||||
echo $redata = json_encode($redata);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//限制访客上传数量
|
||||
function limitnum(){
|
||||
//获取访客IP
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
//获取当前时间
|
||||
$date = date('Y-m-d',time());
|
||||
//获取配置文件限额
|
||||
$limit = $this->config['limit'];
|
||||
//获取用户上传目录
|
||||
$dir = $this->config['userdir'];
|
||||
//查询数据库统计数量
|
||||
$database = $this->database;
|
||||
$num = $database->count("imginfo",[
|
||||
"date" => $date,
|
||||
"ip" => $ip,
|
||||
"dir" => $dir
|
||||
]);
|
||||
|
||||
if($num >= $limit) {
|
||||
$redata = array(
|
||||
"code" => 0,
|
||||
"msg" => "上传达到限制!"
|
||||
);
|
||||
echo $redata = json_encode($redata);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//获取访客真实IP
|
||||
function getip(){
|
||||
if (getenv('HTTP_CLIENT_IP')) {
|
||||
$ip = getenv('HTTP_CLIENT_IP');
|
||||
}
|
||||
elseif (getenv('HTTP_X_FORWARDED_FOR')) {
|
||||
$ip = getenv('HTTP_X_FORWARDED_FOR');
|
||||
}
|
||||
elseif (getenv('HTTP_X_FORWARDED')) {
|
||||
$ip = getenv('HTTP_X_FORWARDED');
|
||||
}
|
||||
elseif (getenv('HTTP_FORWARDED_FOR')) {
|
||||
$ip = getenv('HTTP_FORWARDED_FOR');
|
||||
|
||||
}
|
||||
elseif (getenv('HTTP_FORWARDED')) {
|
||||
$ip = getenv('HTTP_FORWARDED');
|
||||
}
|
||||
else {
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
//判断文件MIME类型
|
||||
function mime($path){
|
||||
$mime = mime_content_type($path);
|
||||
switch ( $mime )
|
||||
{
|
||||
case 'image/gif':
|
||||
case 'image/png':
|
||||
case 'image/jpeg':
|
||||
case 'image/bmp':
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
//返回错误json
|
||||
function re_error($msg){
|
||||
$arr = array(
|
||||
"code" => 0,
|
||||
"msg" => $msg
|
||||
);
|
||||
$rejson = json_encode($arr);
|
||||
echo $rejson;
|
||||
exit;
|
||||
}
|
||||
//请求tipng和鉴黄接口
|
||||
function curlZip($id,$domain){
|
||||
//组合为完整的接口
|
||||
$apiurl = $domain.'dispose.php?id='.$id;
|
||||
//请求接口
|
||||
$curl = curl_init($apiurl);
|
||||
|
||||
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36");
|
||||
curl_setopt($curl, CURLOPT_FAILONERROR, true);
|
||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
|
||||
#设置超时时间,最小为1s(可选)
|
||||
curl_setopt($curl , CURLOPT_TIMEOUT, 2);
|
||||
|
||||
@curl_exec($curl);
|
||||
curl_close($curl);
|
||||
//var_dump($html);
|
||||
}
|
||||
}
|
||||
|
||||
//自动初始化完成一些基础操作
|
||||
$basis = new User($config,$database);
|
||||
?>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
// +------------------------------------------------------------------------+
|
||||
// | class.upload.zh_CN.php |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | Copyright (c) caoshiwei 2008. All rights reserved. |
|
||||
// | Version 0.25 |
|
||||
// | Last modified 09/29/2008 |
|
||||
// | Email [email protected] |
|
||||
// | Web http://www.hfut.edu.cn |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | This program is free software; you can redistribute it and/or modify |
|
||||
// | it under the terms of the GNU General Public License version 2 as |
|
||||
// | published by the Free Software Foundation. |
|
||||
// | |
|
||||
// | This program is distributed in the hope that it will be useful, |
|
||||
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||
// | GNU General Public License for more details. |
|
||||
// | |
|
||||
// | You should have received a copy of the GNU General Public License |
|
||||
// | along with this program; if not, write to the |
|
||||
// | Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
|
||||
// | Boston, MA 02111-1307 USA |
|
||||
// | |
|
||||
// | Please give credit on sites that use class.upload and submit changes |
|
||||
// | of the script so other people can use them as well. |
|
||||
// | This script is free to use, don't abuse. |
|
||||
// +------------------------------------------------------------------------+
|
||||
|
||||
/**
|
||||
* Class upload Chinese translation
|
||||
*
|
||||
* @version 0.25
|
||||
* @codepage gb-2312
|
||||
* @author Shiwei Cao (caoshiwei@gmail.com)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright Shiwei Cao
|
||||
* @package cmf
|
||||
* @subpackage external
|
||||
*/
|
||||
|
||||
$translation = array();
|
||||
$translation['file_error'] = '�ļ������������ԡ�';
|
||||
$translation['local_file_missing'] = '�����ļ������ڡ�';
|
||||
$translation['local_file_not_readable'] = '�����ļ����ɶ��';
|
||||
$translation['uploaded_too_big_ini'] = '�ļ��ϼ����� (�ϴ����ļ���С������php.ini��upload_max_filesize���õĴ�С)��';
|
||||
$translation['uploaded_too_big_html'] = '�ļ��ϼ����� (�ϴ����ļ���С������HTML �����õĴ�С)��';
|
||||
$translation['uploaded_partial'] = '�ļ��ϼ����� (�ϴ����ļ����ֶ�ʧ)��';
|
||||
$translation['uploaded_missing'] = '�ļ��ϼ����� (�ϴ��ļ���ʧ)��';
|
||||
$translation['uploaded_unknown'] = '�ļ��ϼ����� (δ֪����).';
|
||||
$translation['try_again'] = '�ļ��ϼ����� �����ԡ�';
|
||||
$translation['file_too_big'] = '�ļ�̫����';
|
||||
$translation['no_mime'] = 'δ֪�ļ����͡�';
|
||||
$translation['incorrect_file'] = '����ȷ���ļ���ʽ��';
|
||||
$translation['image_too_wide'] = 'ͼƬ����̫����';
|
||||
$translation['image_too_narrow'] = 'ͼƬ����̫С��';
|
||||
$translation['image_too_high'] = 'ͼƬ�߶�̫����';
|
||||
$translation['image_too_short'] = 'ͼƬ�߶�̫С��';
|
||||
$translation['ratio_too_high'] = 'ͼƬ��/�߱���̫��(ͼƬ����̫��)��';
|
||||
$translation['ratio_too_low'] = 'ͼƬ��/�߱���̫��(ͼƬ�߶�̫��).';
|
||||
$translation['too_many_pixels'] = 'ͼƬλ��̫�ߡ�';
|
||||
$translation['not_enough_pixels'] = 'ͼƬλ������';
|
||||
$translation['file_not_uploaded'] = '�ļ�δ�ϴ������ܽ��д���';
|
||||
$translation['already_exists'] = '%s �Ѿ����ڣ��������ļ�����';
|
||||
$translation['temp_file_missing'] = '������(��ʱ)Դ�ļ�����ȷ�����ܽ��д���';
|
||||
$translation['source_missing'] = '���ϴ����ļ���ʧ�����ܽ��д���';
|
||||
$translation['destination_dir'] = 'Ŀ���ļ�Ŀ¼���ܱ����������ܽ��д���';
|
||||
$translation['destination_dir_missing'] = 'Ŀ���ļ�Ŀ¼�����ڣ����ܽ��д���';
|
||||
$translation['destination_path_not_dir'] = 'Ŀ¼·������һ����Ч��Ŀ¼�����ܽ��д���';
|
||||
$translation['destination_dir_write'] = '������Ŀ���ļ�Ŀ¼����Ϊ��д�ģ����ܽ��д���';
|
||||
$translation['destination_path_write'] = 'Ŀ¼·���Dz�����д�ģ����ܽ��д���';
|
||||
$translation['temp_file'] = '���ܴ�����ʱ�ļ������ܽ��д���';
|
||||
$translation['source_not_readable'] = 'Դ�ļ������Զ�����ܽ��д���';
|
||||
$translation['no_create_support'] = '%s ��֧�ִ���';
|
||||
$translation['create_error'] = '��Դ�ļ����� %s ͼƬ�����г���';
|
||||
$translation['source_invalid'] = '����ȡԭʼͼƬ��ȷ���Dz�����ȷ��ͼƬ�ļ���';
|
||||
$translation['gd_missing'] = 'GD ������ʹ�á�';
|
||||
$translation['watermark_no_create_support'] = '%s ������֧��, ���ܶ�ȡˮӡ�ļ���';
|
||||
$translation['watermark_create_error'] = '%s ��֧�ֶ�, ���ܴ���ˮӡ��';
|
||||
$translation['watermark_invalid'] = 'δ֪�ļ���ʽ, ����ȡˮӡ�ļ���';
|
||||
$translation['file_create'] = '%s ��֧�ִ�����';
|
||||
$translation['no_conversion_type'] = 'δ����ת������';
|
||||
$translation['copy_failed'] = '�ڷ������ϸ����ļ�ʱ���� copy() ����ʧ��.';
|
||||
$translation['reading_failed'] = '��ȡ�����г���';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
// +------------------------------------------------------------------------+
|
||||
// | class.upload.zh_CN.php |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | Copyright (c) caoshiwei 2008. All rights reserved. |
|
||||
// | Version 0.25 |
|
||||
// | Last modified 09/29/2008 |
|
||||
// | Email [email protected] |
|
||||
// | Web http://www.hfut.edu.cn |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | This program is free software; you can redistribute it and/or modify |
|
||||
// | it under the terms of the GNU General Public License version 2 as |
|
||||
// | published by the Free Software Foundation. |
|
||||
// | |
|
||||
// | This program is distributed in the hope that it will be useful, |
|
||||
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||
// | GNU General Public License for more details. |
|
||||
// | |
|
||||
// | You should have received a copy of the GNU General Public License |
|
||||
// | along with this program; if not, write to the |
|
||||
// | Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
|
||||
// | Boston, MA 02111-1307 USA |
|
||||
// | |
|
||||
// | Please give credit on sites that use class.upload and submit changes |
|
||||
// | of the script so other people can use them as well. |
|
||||
// | This script is free to use, don't abuse. |
|
||||
// +------------------------------------------------------------------------+
|
||||
|
||||
/**
|
||||
* Class upload Chinese translation
|
||||
*
|
||||
* @version 0.25
|
||||
* @author Shiwei Cao (caoshiwei@gmail.com)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright Shiwei Cao
|
||||
* @package cmf
|
||||
* @subpackage external
|
||||
*/
|
||||
|
||||
$translation = array();
|
||||
$translation['file_error'] = '文件错误,请重试。';
|
||||
$translation['local_file_missing'] = '本地文件不存在。';
|
||||
$translation['local_file_not_readable'] = '本地文件不可读。';
|
||||
$translation['uploaded_too_big_ini'] = '文件上件出错 (上传的文件大小超过了php.ini中upload_max_filesize设置的大小)。';
|
||||
$translation['uploaded_too_big_html'] = '文件上件出错 (上传的文件大小超过了HTML 表单设置的大小)。';
|
||||
$translation['uploaded_partial'] = '文件上件出错 (上传的文件部分丢失)。';
|
||||
$translation['uploaded_missing'] = '文件上件出错 (上传文件丢失)。';
|
||||
$translation['uploaded_unknown'] = '文件上件出错 (未知错误).';
|
||||
$translation['try_again'] = '文件上件出错。 请重试。';
|
||||
$translation['file_too_big'] = '文件太大。';
|
||||
$translation['no_mime'] = '未知文件类型。';
|
||||
$translation['incorrect_file'] = '不正确的文件格式。';
|
||||
$translation['image_too_wide'] = '图片宽度太大。';
|
||||
$translation['image_too_narrow'] = '图片宽度太小。';
|
||||
$translation['image_too_high'] = '图片高度太大。';
|
||||
$translation['image_too_short'] = '图片高度太小。';
|
||||
$translation['ratio_too_high'] = '图片宽/高比率太高(图片宽度太大)。';
|
||||
$translation['ratio_too_low'] = '图片宽/高比率太低(图片高度太大).';
|
||||
$translation['too_many_pixels'] = '图片位数太高。';
|
||||
$translation['not_enough_pixels'] = '图片位数不够';
|
||||
$translation['file_not_uploaded'] = '文件未上传,不能进行处理。';
|
||||
$translation['already_exists'] = '%s 已经存在,请更换文件名。';
|
||||
$translation['temp_file_missing'] = '处理的(临时)源文件不正确,不能进行处理。';
|
||||
$translation['source_missing'] = '已上传的文件丢失,不能进行处理。';
|
||||
$translation['destination_dir'] = '目标文件目录不能被创建,不能进行处理。';
|
||||
$translation['destination_dir_missing'] = '目标文件目录不存在,不能进行处理。';
|
||||
$translation['destination_path_not_dir'] = '目录路径不是一个有效的目录,不能进行处理。';
|
||||
$translation['destination_dir_write'] = '不能让目标文件目录设置为可写的,不能进行处理。';
|
||||
$translation['destination_path_write'] = '目录路径是不可以写的,不能进行处理。';
|
||||
$translation['temp_file'] = '不能创建临时文件,不能进行处理。';
|
||||
$translation['source_not_readable'] = '源文件不可以读,不能进行处理。';
|
||||
$translation['no_create_support'] = '%s 不支持创建';
|
||||
$translation['create_error'] = '从源文件创建 %s 图片过程中出错。';
|
||||
$translation['source_invalid'] = '无法读取原始图片,确认是不是正确的图片文件?';
|
||||
$translation['gd_missing'] = 'GD 好像不可以使用。';
|
||||
$translation['watermark_no_create_support'] = '%s 创建不支持, 不能读取水印文件。';
|
||||
$translation['watermark_create_error'] = '%s 不支持读, 不能创建水印。';
|
||||
$translation['watermark_invalid'] = '未知文件格式, 无法读取水印文件。';
|
||||
$translation['file_create'] = '%s 不支持创建。';
|
||||
$translation['no_conversion_type'] = '未定义转换类型';
|
||||
$translation['copy_failed'] = '在服务器上复制文件时出错。 copy() 操作失败.';
|
||||
$translation['reading_failed'] = '读取过程中出错。';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
// +------------------------------------------------------------------------+
|
||||
// | class.upload.zh_TW.php |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | Copyright (c) Yang Chih-Wen 2009. All rights reserved. |
|
||||
// | Version 0.28 |
|
||||
// | Last modified 15/08/2009 |
|
||||
// | Email [email protected] |
|
||||
// | Web http://www.doubleservice.com/ |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | This program is free software; you can redistribute it and/or modify |
|
||||
// | it under the terms of the GNU General Public License version 2 as |
|
||||
// | published by the Free Software Foundation. |
|
||||
// | |
|
||||
// | This program is distributed in the hope that it will be useful, |
|
||||
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||
// | GNU General Public License for more details. |
|
||||
// | |
|
||||
// | You should have received a copy of the GNU General Public License |
|
||||
// | along with this program; if not, write to the |
|
||||
// | Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
|
||||
// | Boston, MA 02111-1307 USA |
|
||||
// | |
|
||||
// | Please give credit on sites that use class.upload and submit changes |
|
||||
// | of the script so other people can use them as well. |
|
||||
// | This script is free to use, don't abuse. |
|
||||
// +------------------------------------------------------------------------+
|
||||
|
||||
/**
|
||||
* Class upload Traditional Chinese translation
|
||||
*
|
||||
* @version 0.28
|
||||
* @author Yang Chih-Wen (chihwen.yang@gmail.com)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright Yang Chih-Wen
|
||||
* @package cmf
|
||||
* @subpackage external
|
||||
*/
|
||||
|
||||
$translation = array();
|
||||
$translation['file_error'] = '檔案錯誤,請重試。';
|
||||
$translation['local_file_missing'] = '本地端的檔案不存在。';
|
||||
$translation['local_file_not_readable'] = '本地端的檔案不可讀取。';
|
||||
$translation['uploaded_too_big_ini'] = '檔案上傳出錯 (上傳的檔案超過了 php.ini 中 upload_max_filesize 指定的大小)。';
|
||||
$translation['uploaded_too_big_html'] = '檔案上傳出錯 (上傳的檔案超過了 HTML 表單中 MAX_FILE_SIZE 指定的大小)。';
|
||||
$translation['uploaded_partial'] = '檔案上傳出錯 (只有部份的檔案被上傳)。';
|
||||
$translation['uploaded_missing'] = '檔案上傳出錯 (沒有檔案被上傳)。';
|
||||
$translation['uploaded_no_tmp_dir'] = '檔案上傳出錯 (找不到暫存目錄)。';
|
||||
$translation['uploaded_cant_write'] = '檔案上傳出錯 (檔案寫入失敗)。';
|
||||
$translation['uploaded_err_extension'] = '檔案上傳出錯 (檔案上傳被 extension 中斷)。';
|
||||
$translation['uploaded_unknown'] = '檔案上傳出錯 (未知的錯誤)。';
|
||||
$translation['try_again'] = '檔案上傳出錯,請重試。';
|
||||
$translation['file_too_big'] = '檔案太大了。';
|
||||
$translation['no_mime'] = '未知的 MIME Type 檔案類型。';
|
||||
$translation['incorrect_file'] = '不正確的 MIME Type 檔案類型。';
|
||||
$translation['image_too_wide'] = '圖片寬度太大。';
|
||||
$translation['image_too_narrow'] = '圖片寬度太小。';
|
||||
$translation['image_too_high'] = '圖片高度太大。';
|
||||
$translation['image_too_short'] = '圖片高度太小。';
|
||||
$translation['ratio_too_high'] = '圖片寬高比率太大 (圖片寬度太大)。';
|
||||
$translation['ratio_too_low'] = '圖片寬高比率太小 (圖片高度太大)。';
|
||||
$translation['too_many_pixels'] = '圖片像素太多。';
|
||||
$translation['not_enough_pixels'] = '圖片像素太少。';
|
||||
$translation['file_not_uploaded'] = '檔案未上傳,無法繼續進行處理。';
|
||||
$translation['already_exists'] = '%s 已經存在,請更改檔名。';
|
||||
$translation['temp_file_missing'] = '暫存的原始檔案不正確,無法繼續進行處理。';
|
||||
$translation['source_missing'] = '已上傳的原始檔案不正確,無法繼續進行處理。';
|
||||
$translation['destination_dir'] = '無法創建目標目錄,無法繼續進行處理。';
|
||||
$translation['destination_dir_missing'] = '目標目錄不存在,無法繼續進行處理。';
|
||||
$translation['destination_path_not_dir'] = '目標路徑不是一個有效的目錄,無法繼續進行處理。';
|
||||
$translation['destination_dir_write'] = '目標目錄不能設定為可寫入,無法繼續進行處理。';
|
||||
$translation['destination_path_write'] = '目錄路徑不可寫入,無法繼續進行處理。';
|
||||
$translation['temp_file'] = '不能創建暫存檔案,無法繼續進行處理。';
|
||||
$translation['source_not_readable'] = '原始檔案不可讀取,無法繼續進行處理。';
|
||||
$translation['no_create_support'] = '不支援 %s 創建功能。';
|
||||
$translation['create_error'] = '從原始檔案創建 %s 圖片過程中出錯。';
|
||||
$translation['source_invalid'] = '無法讀取原始圖片,請確認是否為正確的圖片檔?';
|
||||
$translation['gd_missing'] = '無法使用 GD 函式庫。';
|
||||
$translation['watermark_no_create_support'] = '不支援 %s 創建功能,無法讀取浮水印。';
|
||||
$translation['watermark_create_error'] = '不支援 %s 讀取功能,無法創建浮水印。';
|
||||
$translation['watermark_invalid'] = '未知的圖片格式,無法讀取浮水印。';
|
||||
$translation['file_create'] = '不支援 %s 創建功能。';
|
||||
$translation['no_conversion_type'] = '未定義的轉換類型。';
|
||||
$translation['copy_failed'] = '在伺服端複製檔案時出錯,copy() 操作失敗。';
|
||||
$translation['reading_failed'] = '讀檔過程中出錯。';
|
||||
?>
|
||||
Reference in New Issue
Block a user