全新版本 2.0
commit
d94c4dbf05
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
// 使用 IntelliSense 了解相关属性。
|
||||
// 悬停以查看现有属性的描述。
|
||||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Listen for XDebug",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"port": 9999
|
||||
},
|
||||
{
|
||||
"name": "Launch currently open script",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"cwd": "${fileDirname}",
|
||||
"port": 9999
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,157 @@
|
|||
![简单图床示例](https://img.545141.com/public/data/2019/05/5ce6915f50a1a.png "简单图床示例")
|
||||
![简单图床示例](https://img.545141.com/public/data/2019/05/5ce6b41416a2b.png "简单图床示例")
|
||||
|
||||
## EasyImage 简单图床
|
||||
> 支持多文件上传,异地上传,api上传,简单无数据库,返回图片url,markdown,bbscode,html的一款图床程序
|
||||
演示地址: [http://t.cn/ReBp80X](http://t.cn/ReBp80X"http://t.cn/ReBp80X")
|
||||
之前一直用的图床程序是:[PHP多图长传程序2.4.3](http://www.mycodes.net/48/4925.htm "PHP多图长传程序2.4.3")
|
||||
由于版本过老并且使用falsh上传,在当前html5流行大势所趋下,遂利用基础知识新写了一个以html5为默认上传并且支持flash,向下兼容至IE9。
|
||||
|
||||
<b>注意:</b>
|
||||
|
||||
1. 装之前先使用服务器打开check.php检查扩展是否都安装!
|
||||
2. js不要设置分片上传大小,此会导致部分图片上传失败。
|
||||
3. 使用前请注意先修改config.php中的domain域名。
|
||||
4. 安装正常后请修改登录上传密码和管理密码!具体如何修改可以打开config.php里边有注释。
|
||||
5. 如果无法登陆管理界面或上传图片,请先打开check.php检查扩展。
|
||||
6. 默认我会给你设置成最优方案,如果需要其他的功能,比如异地存储和api上传,请仔细查看config.php文件
|
||||
|
||||
|
||||
##### 一年未更新了,这次带来了全新版本2.0!
|
||||
- 在继承上个版本(1.6.4)的基础上进行了全新优化
|
||||
- 修复上传经常失败的问题
|
||||
- 删除一些不常用但会增加功耗的过程 (删除的在下边会有标记)
|
||||
- 全新的压缩 将文件继续缩小
|
||||
- 全新的目录系统,精简代码
|
||||
- 设置仅允许在config.php修改,注释更加明了,即使没有代码基础也可以操作
|
||||
- 增加新的文件管理系统
|
||||
|
||||
<hr />
|
||||
|
||||
#### 功能支持:
|
||||
|
||||
- 支持设置图片质量
|
||||
- 支持文字/图片水印 可自定义文字颜色
|
||||
- 支持文字水印背景颜色
|
||||
- 支持文字水印透明度
|
||||
- 支持上传图片转换为指定格式
|
||||
- 支持设置图片指定宽/高
|
||||
- 支持限制最低宽度/高度上传
|
||||
- 支持静态文件CDN/本地切换
|
||||
- ~~支持开启/关闭浏览最近上传图片~~ -> 使用最新的管理系统
|
||||
- 支持仅登录后上传
|
||||
- 支持设置广告
|
||||
- 支持网站统计 请将统计代码放入:public/static/hm.js
|
||||
- ~~支持删除自定义删除图片(仅管理员)~~ -> 使用最新的管理系统
|
||||
- 支持上传图片至远程服务器(异域存储)
|
||||
- 支持开启/关闭api上传~~(支持开启/关闭api自定义文字水印)~~ 不使用api自定义水印
|
||||
- ~~支持删除远程上传文件~~ -> 不再支持删除远程文件
|
||||
|
||||
#### api上传示例:
|
||||
参数:
|
||||
|
||||
| 参数名称 | 类型 | 是否必须 | 说明 |
|
||||
| :------------: | :------------: | :------------: | :------------: |
|
||||
| file | file | 是 | 表单名称 |
|
||||
|
||||
html form上传示例:
|
||||
```html
|
||||
<form enctype="multipart/form-data" method="POST" action="https://img.545141.com/file.php">
|
||||
<label>选择文件</label>
|
||||
<input type="file" name="file">
|
||||
<input type="submit" value="提交">
|
||||
</form>
|
||||
```
|
||||
api上传成功后返回json:
|
||||
```json
|
||||
{"result":"success","url":"https:\/\/img.545141.com\/public\/data\/2019\/05\/5ce64172d24fa.png"}
|
||||
```
|
||||
如果关闭api上传,则什么都不显示。
|
||||
#### 异地上传[跨域上传] 教程:
|
||||
1. 开启config.php的跨域上传功能
|
||||
2. 将 crossdomain 文件夹内和根目录的config.php拷贝到新的服务器
|
||||
3. 新的服务器上把所有文件和目录赋予0777权限
|
||||
4. 修改新服务器的 config.php 的 **"domain"**为当前域名
|
||||
5. 修改原服务器的 config.php 的 'CDomains' 为 http://www.新域名.com/crossdmain/file.php
|
||||
|
||||
##### 异地上传举个栗子:
|
||||
- 我有一个域名A.com,想上传到B.com
|
||||
1. 修改A.com服务器的config.php 'crossDomain'=>true,
|
||||
2. 复制corssdomain文件夹和A.com的config.php到B.com同一目录下 并赋予777权限(chmod -R 777 /B.com/*)
|
||||
3. 修改B.com的config.php 'domain'=>'https://B.com'
|
||||
4. 修改A.com的config.php'CDomain'=>'https://B.com/corssdomain/'
|
||||
- 这样就添加了异域上传,如果有什么改动的话,可以直接复制config.php到B.com
|
||||
- 因为异域上传存在任意上传的功能,强烈建议确定A.comf服务器后修改file.php中的
|
||||
header('Access-Control-Allow-Origin:*')
|
||||
将其修改为:
|
||||
header('Access-Control-Allow-Origin:https://A.com/')
|
||||
指定域名可以限制别人上传图片!(并不能保证完全能防止,毕竟可以伪造)
|
||||
|
||||
---
|
||||
* 2019-5-23 v2.0
|
||||
- 在继承上个版本(1.6.4)的基础上进行了全新优化
|
||||
- 修复上传经常失败的问题
|
||||
- 删除一些不常用但会增加功耗的过程
|
||||
- 全新的压缩 将文件继续缩小
|
||||
- 全新的目录系统,精简代码
|
||||
- 设置仅允许在config.php修改,注释更加明了,即使没有代码基础也可以操作
|
||||
- 增加新的文件管理系统,感谢 tinyfilemanager
|
||||
|
||||
* 2018-8-17 v1.6.4
|
||||
- 支持删除远程上传文件
|
||||
- 更改字体
|
||||
- 添加api/远程上传 标识
|
||||
* 2018-8-16 v1.6.3
|
||||
- 支持开启/关闭api上传(支持开启/关闭api自定义文字水印)
|
||||
- 修复权限错误
|
||||
- 修复二级目录引入错误
|
||||
|
||||
* 2018-8-8 v1.5.3
|
||||
- 添加上传图片至远程主机
|
||||
- 修复逻辑
|
||||
|
||||
* 2018-8-6 v1.4.3
|
||||
- 添加网站统计
|
||||
- 添加删除上传文件
|
||||
- 调整config.php
|
||||
|
||||
* 2018-8-5 v1.4.2
|
||||
- 添加仅登录后上传
|
||||
- 修复一处逻辑错误
|
||||
- 修复一个漏洞
|
||||
|
||||
* 2018-8-4 v1.3.2
|
||||
- 添加广告设置
|
||||
- 完善引入机制
|
||||
|
||||
* 2018-8-3 v1.2.2
|
||||
- [重要]修复水印图片不能添加
|
||||
- 添加随机浏览上传图片 可以设定浏览数量和关闭浏览
|
||||
- 优化代码,删除无用文件
|
||||
- 完善一键CDN静态文件
|
||||
|
||||
* 2018-08-02 v1.1.2
|
||||
- [重要] 修复gif上传添加水印成静态的问题
|
||||
- 修复文字水印背景色不显示问题
|
||||
- 修复在linux下的权限错误
|
||||
- 一些优化更改
|
||||
|
||||
* 2018-08-01 v1.0.1
|
||||
- 更改相关文件目录
|
||||
- 优化代码
|
||||
|
||||
* 2018-07-30 v1.0.0
|
||||
- 最初模型
|
||||
|
||||
#### 兼容性
|
||||
文件上传视图不支持IE9以下的浏览器,api不限制,建议php5.6及以上需要服务器支持,Fileinfo, iconv ,zip和 mbstring扩展,如果缺失会导致无法访问管理面板以及上传图片。
|
||||
|
||||
文件上传视图提供文件列表管理和文件批量上传功能,允许拖拽(需要 HTML5 支持)来添加上传文件,支持大文件分片上传,优先使用 HTML5
|
||||
|
||||
文件上传功能,旧的浏览器自动使用 Flash 和 Silverlight 的方式兼容。
|
||||
<hr />
|
||||
|
||||
- 感谢: [verot](https://www.verot.net "verot" )提供非常好用的class.upload.php上传类
|
||||
- 感谢: [ZUI](http://zui.sexy/ "ZUI" ) 提供css框架
|
||||
- 感谢:[tinyfilemanager](https://github.com/prasathmani/tinyfilemanager "tinyfilemanager" ) 提供的文件管理
|
||||
- 本源码遵循 GNU Public License
|
|
@ -0,0 +1,84 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh_CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>检测工具</title>
|
||||
<style>
|
||||
a:link{color:grey;}
|
||||
a:visited{color:black;}
|
||||
a:hover{color:red;}
|
||||
a:active{color:blanchedalmond}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3><a href="https://www.545141.com/easyimage.html" target="_blank"/>简单图床-easyimage</a></h3>
|
||||
<hr />
|
||||
<p>
|
||||
本工具用来检测当前服务器是否支持本程序,需要检测的有:<br />
|
||||
1.检测 PHP版本 建议使用php5.6及以上<br />
|
||||
2.检测 GD库 大多数图像操作都需要GD<br />
|
||||
3.检测 PHP允许上传的大小<br />
|
||||
4.检测 Fileinfo, iconv ,zip和 mbstring扩展,如果缺失会导致无法访问管理面板以及上传图片<br/>
|
||||
<br/>PHP检测不一定准确,请以最下边phpinfo信息为准!可以实用ctrl+f搜索,如果是disable则没有安装!<br/>
|
||||
5.修改密码是用于文件管理 请将新密码全部复制并覆盖<code>/public/data/tinyfilemanager.php</code>第28行中替换相应的字符
|
||||
<br />默认密码:<code>easyimage</code><br />
|
||||
6.使用完本工具后建议删除!避免泄露服务器信息<br />
|
||||
</p>
|
||||
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
|
||||
<label>请输入新密码:</label>
|
||||
<input type="text" name="psw" value="easyimage">
|
||||
<input type="submit" value="获取新密码">
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<?php
|
||||
echo '<hr/>当前PHP版本:'.phpversion();
|
||||
if(extension_loaded('gd')){
|
||||
echo '<br />GD已安装:'.gd_info()['GD Version'];
|
||||
}else{
|
||||
echo '<br/>GD未安装';
|
||||
}
|
||||
echo '<br />当前upload_max_filesize:'.ini_get('upload_max_filesize'), ",<br/>当前post_max_size:" , ini_get('post_max_size');
|
||||
// 使用linux系统时需要赋予权限 chmod -R 777 /路径/
|
||||
if(!is_writable('file.php')){
|
||||
echo '当前目录文件不可写,如果是linux请使用 chmod -R 777 /路径/* 赋予权限';
|
||||
}else{
|
||||
echo'<br/>当前目录权限正常';
|
||||
}
|
||||
|
||||
if(!extension_loaded('fileinfo')){
|
||||
echo '<br/>>>fileinfo未安装';
|
||||
}else{
|
||||
echo '<br/>fileinfo已安装';
|
||||
}
|
||||
if(!extension_loaded('iconv')){
|
||||
echo '<br/>>>iconv未安装';
|
||||
}else{
|
||||
echo '<br/>iconv已安装';
|
||||
}
|
||||
|
||||
if(!extension_loaded('zip')){
|
||||
echo '<br/>>>zip未安装';
|
||||
}else{
|
||||
echo '<br/>zip已安装';
|
||||
}
|
||||
|
||||
if(!extension_loaded('mbstring')){
|
||||
echo '<br/>mbstring未安装';
|
||||
}else{
|
||||
echo '<br/>mbstring已安装';
|
||||
}
|
||||
|
||||
|
||||
if(@isset($_POST['psw'])){
|
||||
echo '<hr/><br />新加密密码:<code>'.password_hash($_POST['psw'],PASSWORD_DEFAULT).'</code>';
|
||||
echo '<br />请将新密码全部复制并覆盖<code>/public/data/tinyfilemanager.php</code>第28行中替换相应的字符';
|
||||
echo '<br/>登录密码为:<code>'.$_POST['psw'].'</code>';
|
||||
}
|
||||
echo '<br/><br/>以下是php所有拓展和版本信息,请使用ctrl+f快速搜索查找问题:<br/>';
|
||||
phpinfo();
|
||||
exit;
|
|
@ -0,0 +1,97 @@
|
|||
<?php
|
||||
/**
|
||||
* EasyImage - 简单图床
|
||||
*
|
||||
* @author icret
|
||||
* @email lemonim@qq.com
|
||||
* @Github https://github.com/icret/easyImages
|
||||
* @Review 2019-5-21 13:05:20
|
||||
* 上传后请打开check.php先检查服务器配置,更改密码等操作
|
||||
*/
|
||||
|
||||
// 设置html为utf8
|
||||
header('Content-Type:text/html;charset=utf-8');
|
||||
//将时区设置为上海时区
|
||||
ini_set('date.timezone', 'Asia/Shanghai');
|
||||
// 修改内存限制 根据服务器配置选择,低于128M容易出现上传失败,你懂得图片挺占用内存的
|
||||
ini_set('memory_limit','512M');
|
||||
// 定义当前目录
|
||||
define('APP_ROOT', __DIR__);
|
||||
|
||||
$config = array(
|
||||
// 网站标题
|
||||
'title' => '简单图床 - EasyImage',
|
||||
// 网站关键字
|
||||
'keywords' => '简单图床,easyimage,无数据库图床',
|
||||
// 网站描述
|
||||
'description' => '支持多文件上传,远程上传,api上传,简单无数据库,直接返回图片url,markdown,bbscode的一款html5图床程序 。',
|
||||
// 网站公告
|
||||
'tips' => ' 单个文件限制5M,每次最多上传30张图片。',
|
||||
// 当前域名,末尾不加"/" 如果是异域上传请修改为当前异域域名
|
||||
'domain' => 'https://img.545141.com',
|
||||
// 存储路径 末尾需要加"/"
|
||||
'path' => '/public/data/',
|
||||
// 最大上传限制 默认为5m 请使用工具转换mb http://www.bejson.com/convert/filesize/
|
||||
'maxSize' => 5242880,
|
||||
// 是否开启登录上传 开启:true 关闭false
|
||||
'mustLogin' => false,
|
||||
// 登录密码 此密码非管理密码
|
||||
'password'=>'7070',
|
||||
// 开启管理 开启后务必修改密码 修改方式请见read.php
|
||||
'tinyfilemanager' => true,
|
||||
// 是否开启API上传
|
||||
'apiStatus' => false,
|
||||
// 是否开启异域上传 开启true 关闭 false
|
||||
'crossdomain'=>false,
|
||||
// 异域上传域名 末尾需要加'/'
|
||||
'CDomains'=>'https://img.545141.com/crossdomain/',
|
||||
// 是否开启水印:0关闭,1文字水印,2图片水印 动态gif不能添加水印
|
||||
'watermark' => 1,
|
||||
// 水印文字内容
|
||||
'waterText' => 'img.545141.com',
|
||||
// 水印位置 T=top,B =bottom,L=left,R=right 'TBLR'中的一个或两个的组合
|
||||
'waterPosition' => 'TB',
|
||||
// 水印文字方向 h水平 v垂直
|
||||
'textDirection' => 'h',
|
||||
// 水印文字颜色
|
||||
'textColor' => '#DC143C',
|
||||
// 水印文字大小
|
||||
'textSize' => 16,
|
||||
// 字体大小或字体的相对路径
|
||||
'textFont' => APP_ROOT.'/public/static/imitationSong.ttf',
|
||||
// 水印边距 px
|
||||
'textPadding' => 10,
|
||||
// 水印透明度
|
||||
'textOpacity' => 100,
|
||||
// 图片水印路径 支持GIF,JPG,BMP,PNG和PNG alpha
|
||||
'waterImg' => 'public/static/watermark.png',
|
||||
// 转换图片为指定格式 可选:''|'png'|'jpeg'|'gif'|'bmp';默认值:''
|
||||
'imgConvert' => '',
|
||||
// 设置PNG图像的压缩级别,介于1(快速但大文件)和9(慢速但较小的文件)之间 默认值:null
|
||||
'zipPNG' => null,
|
||||
// 设置JPEG图像的压缩质量(默认值:85)
|
||||
'zipJPEG' => 85,
|
||||
// 使用imagejpeg压缩 0为关闭输入值0-1,值越大质量越高
|
||||
'jpg_zip_php'=>0.8,
|
||||
//最大宽度
|
||||
'maxWidth' => 10240,
|
||||
// 最大高度
|
||||
'maxHeight' => 10240,
|
||||
// 最小宽度
|
||||
'minWidth' => 5,
|
||||
// 最小高度
|
||||
'minHeight' => 5,
|
||||
// 等比例缩小图片 宽度和高度请设置 image_x image_y 开启true,关闭false 关闭下mage_x和image_y设置不生效
|
||||
'imgRatio' => false,
|
||||
// 缩减的最大高度
|
||||
'image_x' => 1024,
|
||||
// 缩减的最大宽度
|
||||
'image_y' => 1024,
|
||||
// 开启静态文件CDN 开启true 关闭false
|
||||
'static_cdn' => true,
|
||||
// 开启顶部广告 如果想添加或修改广告请到 public/static/ad_top.html
|
||||
'ad_top' => false,
|
||||
// 开启底部广告 如果想添加或修改广告请到 public/static/ad_bot.html
|
||||
'ad_bot' => false,
|
||||
'Version' => '2.0.0.9'
|
||||
);
|
|
@ -0,0 +1,97 @@
|
|||
<?php
|
||||
/**
|
||||
* EasyImage - 简单图床
|
||||
*
|
||||
* @author icret
|
||||
* @email lemonim@qq.com
|
||||
* @Github https://github.com/icret/easyImages
|
||||
* @Review 2019-5-21 13:05:20
|
||||
* 上传后请打开check.php先检查服务器配置,更改密码等操作
|
||||
*/
|
||||
|
||||
// 设置html为utf8
|
||||
header('Content-Type:text/html;charset=utf-8');
|
||||
//将时区设置为上海时区
|
||||
ini_set('date.timezone', 'Asia/Shanghai');
|
||||
// 修改内存限制 根据服务器配置选择,低于128M容易出现上传失败,你懂得图片挺占用内存的
|
||||
ini_set('memory_limit','512M');
|
||||
// 定义当前目录
|
||||
define('APP_ROOT', __DIR__);
|
||||
|
||||
$config = array(
|
||||
// 网站标题
|
||||
'title' => '简单图床 - EasyImage',
|
||||
// 网站关键字
|
||||
'keywords' => '简单图床,easyimage,无数据库图床',
|
||||
// 网站描述
|
||||
'description' => '支持多文件上传,远程上传,api上传,简单无数据库,直接返回图片url,markdown,bbscode的一款html5图床程序 。',
|
||||
// 网站公告
|
||||
'tips' => ' 单个文件限制5M,每次最多上传30张图片。',
|
||||
// 当前域名,末尾不加"/" 如果是异域上传请修改为当前异域域名
|
||||
'domain' => 'https://img.545141.com/crossdomain',
|
||||
// 存储路径 末尾需要加"/"
|
||||
'path' => '/public/data/',
|
||||
// 最大上传限制 默认为5m 请使用工具转换mb http://www.bejson.com/convert/filesize/
|
||||
'maxSize' => 5242880,
|
||||
// 是否开启登录上传 开启:true 关闭false
|
||||
'mustLogin' => false,
|
||||
// 登录密码 此密码非管理密码
|
||||
'password'=>'7070',
|
||||
// 开启管理 开启后务必修改密码 修改方式请见read.php
|
||||
'tinyfilemanager' => true,
|
||||
// 是否开启API上传
|
||||
'apiStatus' => true,
|
||||
// 是否开启异域上传 开启true 关闭 false
|
||||
'crossdomain'=>false,
|
||||
// 异域上传域名 末尾需要加'/'
|
||||
'CDomains'=>'https://img.545141.com/crossdomain/',
|
||||
// 是否开启水印:0关闭,1文字水印,2图片水印 动态gif不能添加水印
|
||||
'watermark' => 2,
|
||||
// 水印文字内容
|
||||
'waterText' => 'img.545141.com',
|
||||
// 水印位置 T=top,B =bottom,L=left,R=right 'TBLR'中的一个或两个的组合
|
||||
'waterPosition' => 'TB',
|
||||
// 水印文字方向 h水平 v垂直
|
||||
'textDirection' => 'h',
|
||||
// 水印文字颜色
|
||||
'textColor' => '#DC143C',
|
||||
// 水印文字大小
|
||||
'textSize' => 16,
|
||||
// 字体大小或字体的相对路径
|
||||
'textFont' => APP_ROOT.'/public/static/imitationSong.ttf',
|
||||
// 水印边距 px
|
||||
'textPadding' => 10,
|
||||
// 水印透明度
|
||||
'textOpacity' => 100,
|
||||
// 图片水印路径 支持GIF,JPG,BMP,PNG和PNG alpha
|
||||
'waterImg' => 'public/static/watermark.png',
|
||||
// 转换图片为指定格式 可选:''|'png'|'jpeg'|'gif'|'bmp';默认值:''
|
||||
'imgConvert' => '',
|
||||
// 设置PNG图像的压缩级别,介于1(快速但大文件)和9(慢速但较小的文件)之间 默认值:null
|
||||
'zipPNG' => null,
|
||||
// 设置JPEG图像的压缩质量(默认值:85)
|
||||
'zipJPEG' => 85,
|
||||
// 使用imagejpeg压缩 0为关闭输入值0-1,值越大质量越高
|
||||
'jpg_zip_php'=>0.8,
|
||||
//最大宽度
|
||||
'maxWidth' => 10240,
|
||||
// 最大高度
|
||||
'maxHeight' => 10240,
|
||||
// 最小宽度
|
||||
'minWidth' => 5,
|
||||
// 最小高度
|
||||
'minHeight' => 5,
|
||||
// 等比例缩小图片 宽度和高度请设置 image_x image_y 开启true,关闭false 关闭下mage_x和image_y设置不生效
|
||||
'imgRatio' => false,
|
||||
// 缩减的最大高度
|
||||
'image_x' => 1024,
|
||||
// 缩减的最大宽度
|
||||
'image_y' => 1024,
|
||||
// 开启静态文件CDN 开启true 关闭false
|
||||
'static_cdn' => true,
|
||||
// 开启顶部广告 如果想添加或修改广告请到 public/static/ad_top.html
|
||||
'ad_top' => false,
|
||||
// 开启底部广告 如果想添加或修改广告请到 public/static/ad_bot.html
|
||||
'ad_bot' => false,
|
||||
'Version' => '2.0.0.9'
|
||||
);
|
|
@ -0,0 +1,104 @@
|
|||
<?php
|
||||
require __DIR__.'/libs/function.php';
|
||||
require APP_ROOT.'/libs/class.upload.php';
|
||||
|
||||
// 开启异域上传
|
||||
header('Access-Control-Allow-Origin:*');
|
||||
|
||||
$handle = new upload($_FILES['file'],'zh_CN');
|
||||
|
||||
if($handle->uploaded){
|
||||
// 允许上传的mime类型
|
||||
$handle->allowed = array ('image/*');
|
||||
// 文件命名
|
||||
$handle->file_new_name_body = uniqid();
|
||||
// 最大上传限制
|
||||
$handle->file_max_sizes = $config['maxSize'];
|
||||
// 最大宽度
|
||||
$handle->image_max_width = $config['maxWidth'];
|
||||
// 最大高度
|
||||
$handle->image_max_height = $config['maxHeight'];
|
||||
// 最小宽度
|
||||
$handle->image_min_width = $config['minWidth'];
|
||||
// 最小高度
|
||||
$handle->image_min_height = $config['minHeight'];
|
||||
// 转换图片为指定格式
|
||||
$handle->image_convert = $config['imgConvert'];
|
||||
//PNG图片压缩
|
||||
$handle->png_compression = $config['zipPNG'];
|
||||
//JPEG图片压缩
|
||||
$handle->jpeg_quality = $config['zipJPEG'];
|
||||
|
||||
//等比例缩减图片
|
||||
if($config['imgRatio']){
|
||||
$handle->image_x = $config['image_x'];
|
||||
}
|
||||
|
||||
// 设置水印
|
||||
if ($config['watermark'] > 0){
|
||||
switch ($config['watermark']){
|
||||
case 1: // 文字水印 过滤gif
|
||||
if (isAnimatedGif($handle->file_src_pathname)===0){
|
||||
$handle->image_text = $config['waterText'];
|
||||
$handle->image_text_direction = $config['textDirection'];
|
||||
$handle->image_text_color = $config['textColor'];
|
||||
$handle->image_text_opacity = $config['textOpacity'];
|
||||
$handle->image_text_font = $config['textFont'];
|
||||
$handle->image_text_size = $config['textSize'];
|
||||
$handle->image_text_padding = $config['textPadding'];
|
||||
$handle->image_text_position = $config['waterPosition'];
|
||||
}
|
||||
break;
|
||||
case 2: // 图片水印
|
||||
if (isAnimatedGif($handle->file_src_pathname)===0){
|
||||
$handle->image_watermark = $config['waterImg'];
|
||||
$handle->image_watermark_position = $config['waterPosition'];
|
||||
$handle->image_watermark_no_zoom_in = true;
|
||||
$handle->image_watermark_no_zoom_out = true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
echo $handle->error;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 存储图片路径:images/201807/
|
||||
$handle->process(APP_ROOT.config_path());
|
||||
|
||||
// 图片完整相对路径:images/201807/0ed7ccfd4dab9cbc.jpg
|
||||
if ($handle->processed){
|
||||
header('Content-type:text/json');
|
||||
// 上传成功后返回json数据
|
||||
$reJson = array (
|
||||
"result" => 'success',
|
||||
"url" => $config['domain'].config_path().$handle->file_dst_name,
|
||||
);
|
||||
echo json_encode($reJson);
|
||||
$handle->clean();
|
||||
}else{
|
||||
// 上传错误 返回错误信息
|
||||
$reJson = array (
|
||||
"result" => 'failed',
|
||||
"message" => $handle->error
|
||||
);
|
||||
echo json_encode($reJson);
|
||||
echo $handle->error;
|
||||
}
|
||||
|
||||
if($config['jpg_zip_php']>0 && $handle->file_dst_name_ext=='jpg'){
|
||||
$file = __DIR__.config_path().$handle->file_dst_name;
|
||||
$percent = $config['jpg_zip_php']; //图片压缩比
|
||||
list($width, $height) = getimagesize($file); //获取原图尺寸
|
||||
//缩放尺寸
|
||||
$newwidth = $width * $percent;
|
||||
$newheight = $height * $percent;
|
||||
$src_im = imagecreatefromjpeg($file);
|
||||
$dst_im = imagecreatetruecolor($newwidth, $newheight);
|
||||
imagecopyresized($dst_im, $src_im, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
|
||||
imagejpeg($dst_im,$file); //输出压缩后的图片
|
||||
imagedestroy($dst_im);
|
||||
imagedestroy($src_im);
|
||||
}
|
||||
unset($handle);
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,135 @@
|
|||
<?php
|
||||
require __DIR__.'/../config.php';
|
||||
|
||||
// 判断GIF图片是否为动态
|
||||
function isAnimatedGif($filename) {
|
||||
$fp = fopen($filename, 'rb');
|
||||
$filecontent = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
return strpos($filecontent, chr(0x21) . chr(0xff) . chr(0x0b) . 'NETSCAPE2.0') === FALSE ? 0 : 1;
|
||||
}
|
||||
|
||||
// 校验登录
|
||||
function checkLogin() {
|
||||
global $config;
|
||||
if (!empty( $_POST['password'] ) ) {
|
||||
if ( $_POST['password'] == $config['password'] ) {
|
||||
$psw = $_POST['password'];
|
||||
setcookie('admin',$psw);
|
||||
echo '<code>登录成功</code>';
|
||||
}else{
|
||||
echo '<code>密码错误</code>';
|
||||
exit( include __DIR__ . '/login.php' );
|
||||
}
|
||||
} elseif (!empty( $_COOKIE['admin'] ) ) {
|
||||
if ( $_COOKIE['admin'] == $config['password'] ) {
|
||||
|
||||
}
|
||||
} else {
|
||||
echo '<code>请登录</code>';
|
||||
header('loction:login.php');
|
||||
exit(include __DIR__.'/login.php');
|
||||
}
|
||||
}
|
||||
|
||||
// 仅允许登录后上传
|
||||
function mustLogin(){
|
||||
global $config;
|
||||
if ($config['mustLogin']){
|
||||
checkLogin();
|
||||
}
|
||||
}
|
||||
|
||||
// 检查配置文件中目录是否存在是否可写
|
||||
function config_path(){
|
||||
global $config;
|
||||
$real_path = APP_ROOT.$config['path'];
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777,true);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
//创建年目录
|
||||
$real_path = $config['path'].date('Y');
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
// 创建月目录
|
||||
$real_path = $real_path.'/'.date('m');
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
return $real_path.'/';
|
||||
}
|
||||
|
||||
// 设置广告
|
||||
function showAD($where) {
|
||||
global $config;
|
||||
switch ($where){
|
||||
case 'top':
|
||||
if ($config['ad_top']){
|
||||
include (APP_ROOT.'/public/static/ad_top.html');
|
||||
}
|
||||
break;
|
||||
case 'bot':
|
||||
if ($config['ad_bot']){
|
||||
include (APP_ROOT.'/public/static/ad_bot.html');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
echo '广告函数出错';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 设置一键CDN
|
||||
function static_cdn(){
|
||||
global $config;
|
||||
if ($config['static_cdn']){
|
||||
// 开启CDN
|
||||
return '
|
||||
<link href="https://cdn.bootcss.com/zui/1.8.1/css/zui.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.bootcss.com/zui/1.8.1/lib/uploader/zui.uploader.min.css" rel="stylesheet">
|
||||
|
||||
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js?v3.3.1"></script>
|
||||
<script src="https://cdn.bootcss.com/zui/1.8.1/js/zui.min.js?v1.8.1"></script>
|
||||
<script src="https://cdn.bootcss.com/zui/1.8.1/lib/uploader/zui.uploader.min.js?v1.8.1"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/icret/easyImages@1.5.3/static/qrcode.min.js?v1"></script>
|
||||
';
|
||||
|
||||
}else{
|
||||
// 本地文件
|
||||
return '
|
||||
<link href="../public/static/zui/css/zui.min.css?v1.8.1" rel="stylesheet">
|
||||
<link href="../public/static/zui/lib/uploader/zui.uploader.min.css?v1.8.1" rel="stylesheet">
|
||||
|
||||
<script src="../public/static/jquery.min.js?v3.3.1"></script>
|
||||
<script src="../public/static/zui/js/zui.min.js?v1.8.1"></script>
|
||||
<script src="../public/static/zui/lib/uploader/zui.uploader.min.js?v1.8.1"></script>
|
||||
<script src="../public/static/qrcode.min.js?v1.0"></script>
|
||||
';
|
||||
}
|
||||
}
|
||||
|
||||
// 开启管理
|
||||
function tinyfilemanager(){
|
||||
global $config;
|
||||
if(!$config['tinyfilemanager']){
|
||||
header('Location: '.$config['domain'].'?not_open_manager');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// 异域上传
|
||||
function crossdomain(){
|
||||
global $config;
|
||||
if($config['crossdomain']){
|
||||
return $config['CDomains'];
|
||||
}
|
||||
}
|
||||
|
||||
$qqgroup = ' <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=3feb4e8be8f1839f71e53bf2e876de36afc6889b2630c33c877d8df5a5583a6f"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="EasyImage 简单图床" title="EasyImage 简单图床"></a>';
|
|
@ -0,0 +1,88 @@
|
|||
<?php
|
||||
// +------------------------------------------------------------------------+
|
||||
// | class.upload.xx_XX.php |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | Copyright (c) xxxxxx 200x. All rights reserved. |
|
||||
// | Version 0.25 |
|
||||
// | Last modified xx/xx/200x |
|
||||
// | Email xxx@xxx.xxx |
|
||||
// | Web http://www.xxxx.xxx |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | 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 xxxxxx translation
|
||||
*
|
||||
* @version 0.28
|
||||
* @author xxxxxxxx (xxx@xxx.xxx)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright xxxxxxxx
|
||||
* @package cmf
|
||||
* @subpackage external
|
||||
*/
|
||||
|
||||
$translation = array();
|
||||
$translation['file_error'] = 'File error. Please try again.';
|
||||
$translation['local_file_missing'] = 'Local file doesn\'t exist.';
|
||||
$translation['local_file_not_readable'] = 'Local file is not readable.';
|
||||
$translation['uploaded_too_big_ini'] = 'File upload error (the uploaded file exceeds the upload_max_filesize directive in php.ini).';
|
||||
$translation['uploaded_too_big_html'] = 'File upload error (the uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the html form).';
|
||||
$translation['uploaded_partial'] = 'File upload error (the uploaded file was only partially uploaded).';
|
||||
$translation['uploaded_missing'] = 'File upload error (no file was uploaded).';
|
||||
$translation['uploaded_no_tmp_dir'] = 'File upload error (missing a temporary folder).';
|
||||
$translation['uploaded_cant_write'] = 'File upload error (failed to write file to disk).';
|
||||
$translation['uploaded_err_extension'] = 'File upload error (file upload stopped by extension).';
|
||||
$translation['uploaded_unknown'] = 'File upload error (unknown error code).';
|
||||
$translation['try_again'] = 'File upload error. Please try again.';
|
||||
$translation['file_too_big'] = 'File too big.';
|
||||
$translation['no_mime'] = 'MIME type can\'t be detected.';
|
||||
$translation['incorrect_file'] = 'Incorrect type of file.';
|
||||
$translation['image_too_wide'] = 'Image too wide.';
|
||||
$translation['image_too_narrow'] = 'Image too narrow.';
|
||||
$translation['image_too_high'] = 'Image too high.';
|
||||
$translation['image_too_short'] = 'Image too short.';
|
||||
$translation['ratio_too_high'] = 'Image ratio too high (image too wide).';
|
||||
$translation['ratio_too_low'] = 'Image ratio too low (image too high).';
|
||||
$translation['too_many_pixels'] = 'Image has too many pixels.';
|
||||
$translation['not_enough_pixels'] = 'Image has not enough pixels.';
|
||||
$translation['file_not_uploaded'] = 'File not uploaded. Can\'t carry on a process.';
|
||||
$translation['already_exists'] = '%s already exists. Please change the file name.';
|
||||
$translation['temp_file_missing'] = 'No correct temp source file. Can\'t carry on a process.';
|
||||
$translation['source_missing'] = 'No correct uploaded source file. Can\'t carry on a process.';
|
||||
$translation['destination_dir'] = 'Destination directory can\'t be created. Can\'t carry on a process.';
|
||||
$translation['destination_dir_missing'] = 'Destination directory doesn\'t exist. Can\'t carry on a process.';
|
||||
$translation['destination_path_not_dir'] = 'Destination path is not a directory. Can\'t carry on a process.';
|
||||
$translation['destination_dir_write'] = 'Destination directory can\'t be made writeable. Can\'t carry on a process.';
|
||||
$translation['destination_path_write'] = 'Destination path is not a writeable. Can\'t carry on a process.';
|
||||
$translation['temp_file'] = 'Can\'t create the temporary file. Can\'t carry on a process.';
|
||||
$translation['source_not_readable'] = 'Source file is not readable. Can\'t carry on a process.';
|
||||
$translation['no_create_support'] = 'No create from %s support.';
|
||||
$translation['create_error'] = 'Error in creating %s image from source.';
|
||||
$translation['source_invalid'] = 'Can\'t read image source. Not an image?.';
|
||||
$translation['gd_missing'] = 'GD doesn\'t seem to be present.';
|
||||
$translation['watermark_no_create_support'] = 'No create from %s support, can\'t read watermark.';
|
||||
$translation['watermark_create_error'] = 'No %s read support, can\'t create watermark.';
|
||||
$translation['watermark_invalid'] = 'Unknown image format, can\'t read watermark.';
|
||||
$translation['file_create'] = 'No %s create support.';
|
||||
$translation['no_conversion_type'] = 'No conversion type defined.';
|
||||
$translation['copy_failed'] = 'Error copying file on the server. copy() failed.';
|
||||
$translation['reading_failed'] = 'Error reading the file.';
|
||||
|
||||
?>
|
|
@ -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 caoshiwei@gmail.com |
|
||||
// | 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'] = '<27>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԡ<EFBFBD>';
|
||||
$translation['local_file_missing'] = '<27><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڡ<EFBFBD>';
|
||||
$translation['local_file_not_readable'] = '<27><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ɶ<EFBFBD><C9B6>';
|
||||
$translation['uploaded_too_big_ini'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>php.ini<6E><69>upload_max_filesize<7A><65><EFBFBD>õĴ<C3B5>С)<29><>';
|
||||
$translation['uploaded_too_big_html'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>HTML <20><><EFBFBD><EFBFBD><EFBFBD>õĴ<C3B5>С)<29><>';
|
||||
$translation['uploaded_partial'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ֶ<EFBFBD>ʧ)<29><>';
|
||||
$translation['uploaded_missing'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4>ļ<EFBFBD><C4BC><EFBFBD>ʧ)<29><>';
|
||||
$translation['uploaded_unknown'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (δ֪<CEB4><D6AA><EFBFBD><EFBFBD>).';
|
||||
$translation['try_again'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ԡ<EFBFBD>';
|
||||
$translation['file_too_big'] = '<27>ļ<EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['no_mime'] = 'δ֪<CEB4>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>͡<EFBFBD>';
|
||||
$translation['incorrect_file'] = '<27><><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ʽ<EFBFBD><CABD>';
|
||||
$translation['image_too_wide'] = 'ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['image_too_narrow'] = 'ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫С<CCAB><D0A1>';
|
||||
$translation['image_too_high'] = 'ͼƬ<CDBC>߶<EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['image_too_short'] = 'ͼƬ<CDBC>߶<EFBFBD>̫С<CCAB><D0A1>';
|
||||
$translation['ratio_too_high'] = 'ͼƬ<CDBC><C6AC>/<2F>߱<EFBFBD><DFB1><EFBFBD>̫<EFBFBD><CCAB>(ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫<EFBFBD><CCAB>)<29><>';
|
||||
$translation['ratio_too_low'] = 'ͼƬ<CDBC><C6AC>/<2F>߱<EFBFBD><DFB1><EFBFBD>̫<EFBFBD><CCAB>(ͼƬ<CDBC>߶<EFBFBD>̫<EFBFBD><CCAB>).';
|
||||
$translation['too_many_pixels'] = 'ͼƬλ<C6AC><CEBB>̫<EFBFBD>ߡ<EFBFBD>';
|
||||
$translation['not_enough_pixels'] = 'ͼƬλ<C6AC><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['file_not_uploaded'] = '<27>ļ<EFBFBD>δ<EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['already_exists'] = '%s <20>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['temp_file_missing'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ʱ)Դ<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['source_missing'] = '<27><><EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir'] = 'Ŀ<><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir_missing'] = 'Ŀ<><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_path_not_dir'] = 'Ŀ¼·<C2BC><C2B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>Ч<EFBFBD><D0A7>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir_write'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>д<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_path_write'] = 'Ŀ¼·<C2BC><C2B7><EFBFBD>Dz<EFBFBD><C7B2><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['temp_file'] = '<27><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['source_not_readable'] = 'Դ<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['no_create_support'] = '%s <20><>֧<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD>';
|
||||
$translation['create_error'] = '<27><>Դ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD> %s ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD>';
|
||||
$translation['source_invalid'] = '<27><EFBFBD><DEB7><EFBFBD>ȡԭʼͼƬ<CDBC><C6AC>ȷ<EFBFBD><C8B7><EFBFBD>Dz<EFBFBD><C7B2><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>ͼƬ<CDBC>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['gd_missing'] = 'GD <20><><EFBFBD><EFBFBD><F1B2BBBF><EFBFBD>ʹ<EFBFBD>á<EFBFBD>';
|
||||
$translation['watermark_no_create_support'] = '%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>, <20><><EFBFBD>ܶ<EFBFBD>ȡˮӡ<CBAE>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['watermark_create_error'] = '%s <20><>֧<EFBFBD>ֶ<EFBFBD>, <20><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD>ˮӡ<CBAE><D3A1>';
|
||||
$translation['watermark_invalid'] = 'δ֪<CEB4>ļ<EFBFBD><C4BC><EFBFBD>ʽ, <20><EFBFBD><DEB7><EFBFBD>ȡˮӡ<CBAE>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['file_create'] = '%s <20><>֧<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['no_conversion_type'] = 'δ<><CEB4><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['copy_failed'] = '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><CFB8><EFBFBD><EFBFBD>ļ<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD> copy() <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>.';
|
||||
$translation['reading_failed'] = '<27><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD>';
|
||||
|
||||
?>
|
|
@ -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 caoshiwei@gmail.com |
|
||||
// | 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'] = '读取过程中出错。';
|
||||
|
||||
?>
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
* 如果你不想使用异域上传可以删除本文件夹!
|
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
|
@ -0,0 +1,104 @@
|
|||
<?php
|
||||
require __DIR__.'/libs/function.php';
|
||||
require APP_ROOT.'/libs/class.upload.php';
|
||||
|
||||
// 检查是否开启api上传
|
||||
if($config['apiStatus']){header('Access-Control-Allow-Origin:*');}
|
||||
|
||||
$handle = new upload($_FILES['file'],'zh_CN');
|
||||
|
||||
if($handle->uploaded){
|
||||
// 允许上传的mime类型
|
||||
$handle->allowed = array ('image/*');
|
||||
// 文件命名
|
||||
$handle->file_new_name_body = uniqid();
|
||||
// 最大上传限制
|
||||
$handle->file_max_sizes = $config['maxSize'];
|
||||
// 最大宽度
|
||||
$handle->image_max_width = $config['maxWidth'];
|
||||
// 最大高度
|
||||
$handle->image_max_height = $config['maxHeight'];
|
||||
// 最小宽度
|
||||
$handle->image_min_width = $config['minWidth'];
|
||||
// 最小高度
|
||||
$handle->image_min_height = $config['minHeight'];
|
||||
// 转换图片为指定格式
|
||||
$handle->image_convert = $config['imgConvert'];
|
||||
//PNG图片压缩
|
||||
$handle->png_compression = $config['zipPNG'];
|
||||
//JPEG图片压缩
|
||||
$handle->jpeg_quality = $config['zipJPEG'];
|
||||
|
||||
//等比例缩减图片
|
||||
if($config['imgRatio']){
|
||||
$handle->image_x = $config['image_x'];
|
||||
}
|
||||
|
||||
// 设置水印
|
||||
if ($config['watermark'] > 0){
|
||||
switch ($config['watermark']){
|
||||
case 1: // 文字水印 过滤gif
|
||||
if (isAnimatedGif($handle->file_src_pathname)===0){
|
||||
$handle->image_text = $config['waterText'];
|
||||
$handle->image_text_direction = $config['textDirection'];
|
||||
$handle->image_text_color = $config['textColor'];
|
||||
$handle->image_text_opacity = $config['textOpacity'];
|
||||
$handle->image_text_font = $config['textFont'];
|
||||
$handle->image_text_size = $config['textSize'];
|
||||
$handle->image_text_padding = $config['textPadding'];
|
||||
$handle->image_text_position = $config['waterPosition'];
|
||||
}
|
||||
break;
|
||||
case 2: // 图片水印
|
||||
if (isAnimatedGif($handle->file_src_pathname)===0){
|
||||
$handle->image_watermark = $config['waterImg'];
|
||||
$handle->image_watermark_position = $config['waterPosition'];
|
||||
$handle->image_watermark_no_zoom_in = true;
|
||||
$handle->image_watermark_no_zoom_out = true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
echo $handle->error;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 存储图片路径:images/201807/
|
||||
$handle->process(APP_ROOT.config_path());
|
||||
|
||||
// 图片完整相对路径:images/201807/0ed7ccfd4dab9cbc.jpg
|
||||
if ($handle->processed){
|
||||
header('Content-type:text/json');
|
||||
// 上传成功后返回json数据
|
||||
$reJson = array (
|
||||
"result" => 'success',
|
||||
"url" => $config['domain'].config_path().$handle->file_dst_name,
|
||||
);
|
||||
echo json_encode($reJson);
|
||||
$handle->clean();
|
||||
}else{
|
||||
// 上传错误 返回错误信息
|
||||
$reJson = array (
|
||||
"result" => 'failed',
|
||||
"message" => $handle->error
|
||||
);
|
||||
echo json_encode($reJson);
|
||||
echo $handle->error;
|
||||
}
|
||||
|
||||
if($config['jpg_zip_php']>0 && $handle->file_dst_name_ext=='jpg'){
|
||||
$file = __DIR__.config_path().$handle->file_dst_name;
|
||||
$percent = $config['jpg_zip_php']; //图片压缩比
|
||||
list($width, $height) = getimagesize($file); //获取原图尺寸
|
||||
//缩放尺寸
|
||||
$newwidth = $width * $percent;
|
||||
$newheight = $height * $percent;
|
||||
$src_im = imagecreatefromjpeg($file);
|
||||
$dst_im = imagecreatetruecolor($newwidth, $newheight);
|
||||
imagecopyresized($dst_im, $src_im, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
|
||||
imagejpeg($dst_im,$file); //输出压缩后的图片
|
||||
imagedestroy($dst_im);
|
||||
imagedestroy($src_im);
|
||||
}
|
||||
unset($handle);
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
<?php
|
||||
include './libs/header.php';
|
||||
mustLogin();
|
||||
if (@$_GET['e']==1){
|
||||
setcookie('admin',null);
|
||||
echo '<code>退出成功</code>';
|
||||
header('Refresh:2;libs/login.php');
|
||||
}
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="col-md-12">
|
||||
<ul style="list-style: none;margin:1px 1px 30px 1px;">
|
||||
<?php if(!empty($config['tips'])){echo '<li class="icon icon-dot-circle text-muted">'.$config['tips'].'</li></ul>';} ?>
|
||||
<div id='upShowID' class="uploader col-md-10 col-md-offset-1" data-ride="uploader" data-url="file.php">
|
||||
<div class="uploader-message text-center">
|
||||
<div class="content"></div>
|
||||
<button type="button" class="close">×</button>
|
||||
</div>
|
||||
<div class="uploader-files file-list file-list-lg" data-drag-placeholder="选择文件或将图片直接拖拽至此处"></div>
|
||||
<div class="uploader-actions">
|
||||
<div class="uploader-status pull-right text-muted"></div>
|
||||
<button type="button" class="btn btn-link uploader-btn-browse">
|
||||
<i class="icon icon-plus"></i>选择文件</button>
|
||||
<button type="button" class="btn btn-link uploader-btn-start">
|
||||
<i class="icon icon-cloud-upload"></i>开始上传</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active">
|
||||
<a href="#" data-target="#tab2Content1" data-toggle="tab">直链</a></li>
|
||||
<li>
|
||||
<a href="#" data-target="#tab2Content2" data-toggle="tab">论坛代码</a></li>
|
||||
<li>
|
||||
<a href="#" data-target="#tab2Content3" data-toggle="tab">MarkDown</a></li>
|
||||
<li>
|
||||
<a href="#" data-target="#tab2Content4" data-toggle="tab">HTML</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="tab2Content1">
|
||||
<pre class="pre-scrollable" style="text-align: center;min-height: 100px;" id="links"></pre>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="tab2Content2">
|
||||
<pre class="pre-scrollable" style="text-align: center;min-height: 100px;" id="bbscode"></pre>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="tab2Content3">
|
||||
<pre class="pre-scrollable" style="text-align: center;min-height: 100px;" id="markdown"></pre>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="tab2Content4">
|
||||
<pre class="pre-scrollable" style="text-align: center;min-height: 100px;" id="html"></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#upShowID').uploader({
|
||||
// 当选择文件后立即自动进行上传操作
|
||||
autoUpload: true,
|
||||
// 文件上传提交地址
|
||||
url: '<?php echo crossdomain();?>file.php',
|
||||
//图片压缩
|
||||
resize: {
|
||||
quuality: 90,
|
||||
},
|
||||
// 最大支持的上传文件
|
||||
max_file_size: '5mb',
|
||||
// 是否分片上传 0为不分片 经测试分片容易使图片上传失败
|
||||
chunk_size: 0,
|
||||
//点击文件列表上传文件
|
||||
browseByClickList: true,
|
||||
// 上传格式过滤
|
||||
filters: { // 只允许上传图片或图标(.ico)
|
||||
mime_types: [{
|
||||
title: '图片',
|
||||
extensions: 'bmp,jpg,png,tif,gif,pcx,tga,svg,webp'
|
||||
},
|
||||
{
|
||||
title: '图标',
|
||||
extensions: 'ico'
|
||||
}
|
||||
],
|
||||
prevent_duplicates: true
|
||||
},
|
||||
// 限制文件上传数目
|
||||
limitFilesCount: 30,
|
||||
// 自动上传失败的文件
|
||||
autoResetFails: true,
|
||||
|
||||
responseHandler: function (responseObject, file) {
|
||||
// 当服务器返回的文本内容包含 `'success'` 文件上传成功
|
||||
if (responseObject.response.indexOf('success')) {
|
||||
console.log(responseObject.response);
|
||||
var obj = JSON.parse(responseObject.response); //由JSON字符串转换为JSON对象
|
||||
var links = document.getElementById("links");
|
||||
links.innerHTML += obj.url + "<br />";
|
||||
|
||||
var bbscode = document.getElementById("bbscode");
|
||||
bbscode.innerHTML += "[img]" + obj.url + "[/img]<br />";
|
||||
|
||||
var markdown = document.getElementById("markdown");
|
||||
markdown.innerHTML += "![](" + obj.url + ")<br />";
|
||||
|
||||
var html = document.getElementById("html");
|
||||
html.innerHTML += "<img src=\"" + obj.url + "\" /><br />";
|
||||
} else {
|
||||
return '上传失败。服务器返回了一个错误:' + responseObject.response;
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
include APP_ROOT.'/libs/footer.php';
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
// jsqrcode获取当前网址并赋值给id=text的value
|
||||
document.getElementById("text").value = window.location.href;
|
||||
|
||||
var qrcode = new QRCode(document.getElementById("qrcode"), {
|
||||
width: 150,
|
||||
height: 150
|
||||
});
|
||||
function makeCode() {
|
||||
var elText = document.getElementById("text");
|
||||
|
||||
if (!elText.value) {
|
||||
alert("Input a text");
|
||||
elText.focus();
|
||||
return;
|
||||
}
|
||||
|
||||
qrcode.makeCode(elText.value);
|
||||
}
|
||||
makeCode();
|
||||
|
||||
$("#text").on("blur",
|
||||
function() {
|
||||
makeCode();
|
||||
}).on("keydown",
|
||||
function(e) {
|
||||
if (e.keyCode == 13) {
|
||||
makeCode();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script src="./public/static/hm.js"></script>
|
||||
<footer class="text-muted small col-md-12" style="text-align: center">
|
||||
'.showAD('bot').'
|
||||
<hr />
|
||||
Copyright © 2018-'. date('Y').' EasyImage Powered By <code><a href="https://www.545141.com/easyimage.html" target="_blank">icret</a></code> Verson: '.$config['Version'].@$qqgroup.'
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
';
|
|
@ -0,0 +1,135 @@
|
|||
<?php
|
||||
require __DIR__.'/../config.php';
|
||||
|
||||
// 判断GIF图片是否为动态
|
||||
function isAnimatedGif($filename) {
|
||||
$fp = fopen($filename, 'rb');
|
||||
$filecontent = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
return strpos($filecontent, chr(0x21) . chr(0xff) . chr(0x0b) . 'NETSCAPE2.0') === FALSE ? 0 : 1;
|
||||
}
|
||||
|
||||
// 校验登录
|
||||
function checkLogin() {
|
||||
global $config;
|
||||
if (!empty( $_POST['password'] ) ) {
|
||||
if ( $_POST['password'] == $config['password'] ) {
|
||||
$psw = $_POST['password'];
|
||||
setcookie('admin',$psw);
|
||||
echo '<code>登录成功</code>';
|
||||
}else{
|
||||
echo '<code>密码错误</code>';
|
||||
exit( include __DIR__ . '/login.php' );
|
||||
}
|
||||
} elseif (!empty( $_COOKIE['admin'] ) ) {
|
||||
if ( $_COOKIE['admin'] == $config['password'] ) {
|
||||
|
||||
}
|
||||
} else {
|
||||
echo '<code>请登录</code>';
|
||||
header('loction:login.php');
|
||||
exit(include __DIR__.'/login.php');
|
||||
}
|
||||
}
|
||||
|
||||
// 仅允许登录后上传
|
||||
function mustLogin(){
|
||||
global $config;
|
||||
if ($config['mustLogin']){
|
||||
checkLogin();
|
||||
}
|
||||
}
|
||||
|
||||
// 检查配置文件中目录是否存在是否可写
|
||||
function config_path(){
|
||||
global $config;
|
||||
$real_path = APP_ROOT.$config['path'];
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777,true);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
//创建年目录
|
||||
$real_path = $config['path'].date('Y');
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
// 创建月目录
|
||||
$real_path = $real_path.'/'.date('m');
|
||||
if(!is_dir($real_path)){
|
||||
mkdir($real_path,0777);
|
||||
}elseif(!is_writable($real_path)){
|
||||
chmod($real_path,0777);
|
||||
}
|
||||
return $real_path.'/';
|
||||
}
|
||||
|
||||
// 设置广告
|
||||
function showAD($where) {
|
||||
global $config;
|
||||
switch ($where){
|
||||
case 'top':
|
||||
if ($config['ad_top']){
|
||||
include (APP_ROOT.'/public/static/ad_top.html');
|
||||
}
|
||||
break;
|
||||
case 'bot':
|
||||
if ($config['ad_bot']){
|
||||
include (APP_ROOT.'/public/static/ad_bot.html');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
echo '广告函数出错';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 设置一键CDN
|
||||
function static_cdn(){
|
||||
global $config;
|
||||
if ($config['static_cdn']){
|
||||
// 开启CDN
|
||||
return '
|
||||
<link href="https://cdn.bootcss.com/zui/1.8.1/css/zui.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.bootcss.com/zui/1.8.1/lib/uploader/zui.uploader.min.css" rel="stylesheet">
|
||||
|
||||
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js?v3.3.1"></script>
|
||||
<script src="https://cdn.bootcss.com/zui/1.8.1/js/zui.min.js?v1.8.1"></script>
|
||||
<script src="https://cdn.bootcss.com/zui/1.8.1/lib/uploader/zui.uploader.min.js?v1.8.1"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/icret/easyImages@1.5.3/static/qrcode.min.js?v1"></script>
|
||||
';
|
||||
|
||||
}else{
|
||||
// 本地文件
|
||||
return '
|
||||
<link href="../public/static/zui/css/zui.min.css?v1.8.1" rel="stylesheet">
|
||||
<link href="../public/static/zui/lib/uploader/zui.uploader.min.css?v1.8.1" rel="stylesheet">
|
||||
|
||||
<script src="../public/static/jquery.min.js?v3.3.1"></script>
|
||||
<script src="../public/static/zui/js/zui.min.js?v1.8.1"></script>
|
||||
<script src="../public/static/zui/lib/uploader/zui.uploader.min.js?v1.8.1"></script>
|
||||
<script src="../public/static/qrcode.min.js?v1.0"></script>
|
||||
';
|
||||
}
|
||||
}
|
||||
|
||||
// 开启管理
|
||||
function tinyfilemanager(){
|
||||
global $config;
|
||||
if(!$config['tinyfilemanager']){
|
||||
header('Location: '.$config['domain'].'?not_open_manager');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// 异域上传
|
||||
function crossdomain(){
|
||||
global $config;
|
||||
if($config['crossdomain']){
|
||||
return $config['CDomains'];
|
||||
}
|
||||
}
|
||||
|
||||
//$qqgroup = ' <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=3feb4e8be8f1839f71e53bf2e876de36afc6889b2630c33c877d8df5a5583a6f"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="EasyImage 简单图床" title="EasyImage 简单图床"></a>';
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
require_once __DIR__.'/function.php';
|
||||
echo '
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>'.$config['title'].'</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="keywords" content="'.$config['keywords'].'" />
|
||||
<meta name="description" content="'.$config['description'].'" />
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
'.static_cdn().'
|
||||
<style>
|
||||
.uploader-files{
|
||||
min-height:160px;
|
||||
border-style:dashed;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="container">
|
||||
'.showAD('top').'
|
||||
<div class="md-lg-12 header-dividing">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="index.php">首页</a></li>
|
||||
<li><a href="https://github.com/icret/easyImages2.0" target="_blank">GitHub<span class="label label-badge label-success"></span></a></li>
|
||||
<li><a href="public/data/tinyfilemanager.php" target="_blank">管理<span class="label label-badge label-success"></span></a></li>
|
||||
<li><a class="dropdown-toggle hidden-xs" data-toggle="dropdown" href="#">二维码<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<input id="text" type="hidden" value=""/>
|
||||
<li id="qrcode" style="width:100%;">扫描二维码使用手机上传</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 顶部导航栏END -->
|
||||
';
|
|
@ -0,0 +1,88 @@
|
|||
<?php
|
||||
// +------------------------------------------------------------------------+
|
||||
// | class.upload.xx_XX.php |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | Copyright (c) xxxxxx 200x. All rights reserved. |
|
||||
// | Version 0.25 |
|
||||
// | Last modified xx/xx/200x |
|
||||
// | Email xxx@xxx.xxx |
|
||||
// | Web http://www.xxxx.xxx |
|
||||
// +------------------------------------------------------------------------+
|
||||
// | 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 xxxxxx translation
|
||||
*
|
||||
* @version 0.28
|
||||
* @author xxxxxxxx (xxx@xxx.xxx)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* @copyright xxxxxxxx
|
||||
* @package cmf
|
||||
* @subpackage external
|
||||
*/
|
||||
|
||||
$translation = array();
|
||||
$translation['file_error'] = 'File error. Please try again.';
|
||||
$translation['local_file_missing'] = 'Local file doesn\'t exist.';
|
||||
$translation['local_file_not_readable'] = 'Local file is not readable.';
|
||||
$translation['uploaded_too_big_ini'] = 'File upload error (the uploaded file exceeds the upload_max_filesize directive in php.ini).';
|
||||
$translation['uploaded_too_big_html'] = 'File upload error (the uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the html form).';
|
||||
$translation['uploaded_partial'] = 'File upload error (the uploaded file was only partially uploaded).';
|
||||
$translation['uploaded_missing'] = 'File upload error (no file was uploaded).';
|
||||
$translation['uploaded_no_tmp_dir'] = 'File upload error (missing a temporary folder).';
|
||||
$translation['uploaded_cant_write'] = 'File upload error (failed to write file to disk).';
|
||||
$translation['uploaded_err_extension'] = 'File upload error (file upload stopped by extension).';
|
||||
$translation['uploaded_unknown'] = 'File upload error (unknown error code).';
|
||||
$translation['try_again'] = 'File upload error. Please try again.';
|
||||
$translation['file_too_big'] = 'File too big.';
|
||||
$translation['no_mime'] = 'MIME type can\'t be detected.';
|
||||
$translation['incorrect_file'] = 'Incorrect type of file.';
|
||||
$translation['image_too_wide'] = 'Image too wide.';
|
||||
$translation['image_too_narrow'] = 'Image too narrow.';
|
||||
$translation['image_too_high'] = 'Image too high.';
|
||||
$translation['image_too_short'] = 'Image too short.';
|
||||
$translation['ratio_too_high'] = 'Image ratio too high (image too wide).';
|
||||
$translation['ratio_too_low'] = 'Image ratio too low (image too high).';
|
||||
$translation['too_many_pixels'] = 'Image has too many pixels.';
|
||||
$translation['not_enough_pixels'] = 'Image has not enough pixels.';
|
||||
$translation['file_not_uploaded'] = 'File not uploaded. Can\'t carry on a process.';
|
||||
$translation['already_exists'] = '%s already exists. Please change the file name.';
|
||||
$translation['temp_file_missing'] = 'No correct temp source file. Can\'t carry on a process.';
|
||||
$translation['source_missing'] = 'No correct uploaded source file. Can\'t carry on a process.';
|
||||
$translation['destination_dir'] = 'Destination directory can\'t be created. Can\'t carry on a process.';
|
||||
$translation['destination_dir_missing'] = 'Destination directory doesn\'t exist. Can\'t carry on a process.';
|
||||
$translation['destination_path_not_dir'] = 'Destination path is not a directory. Can\'t carry on a process.';
|
||||
$translation['destination_dir_write'] = 'Destination directory can\'t be made writeable. Can\'t carry on a process.';
|
||||
$translation['destination_path_write'] = 'Destination path is not a writeable. Can\'t carry on a process.';
|
||||
$translation['temp_file'] = 'Can\'t create the temporary file. Can\'t carry on a process.';
|
||||
$translation['source_not_readable'] = 'Source file is not readable. Can\'t carry on a process.';
|
||||
$translation['no_create_support'] = 'No create from %s support.';
|
||||
$translation['create_error'] = 'Error in creating %s image from source.';
|
||||
$translation['source_invalid'] = 'Can\'t read image source. Not an image?.';
|
||||
$translation['gd_missing'] = 'GD doesn\'t seem to be present.';
|
||||
$translation['watermark_no_create_support'] = 'No create from %s support, can\'t read watermark.';
|
||||
$translation['watermark_create_error'] = 'No %s read support, can\'t create watermark.';
|
||||
$translation['watermark_invalid'] = 'Unknown image format, can\'t read watermark.';
|
||||
$translation['file_create'] = 'No %s create support.';
|
||||
$translation['no_conversion_type'] = 'No conversion type defined.';
|
||||
$translation['copy_failed'] = 'Error copying file on the server. copy() failed.';
|
||||
$translation['reading_failed'] = 'Error reading the file.';
|
||||
|
||||
?>
|
|
@ -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 caoshiwei@gmail.com |
|
||||
// | 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'] = '<27>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԡ<EFBFBD>';
|
||||
$translation['local_file_missing'] = '<27><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڡ<EFBFBD>';
|
||||
$translation['local_file_not_readable'] = '<27><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ɶ<EFBFBD><C9B6>';
|
||||
$translation['uploaded_too_big_ini'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>php.ini<6E><69>upload_max_filesize<7A><65><EFBFBD>õĴ<C3B5>С)<29><>';
|
||||
$translation['uploaded_too_big_html'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>HTML <20><><EFBFBD><EFBFBD><EFBFBD>õĴ<C3B5>С)<29><>';
|
||||
$translation['uploaded_partial'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ֶ<EFBFBD>ʧ)<29><>';
|
||||
$translation['uploaded_missing'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (<28>ϴ<EFBFBD><CFB4>ļ<EFBFBD><C4BC><EFBFBD>ʧ)<29><>';
|
||||
$translation['uploaded_unknown'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> (δ֪<CEB4><D6AA><EFBFBD><EFBFBD>).';
|
||||
$translation['try_again'] = '<27>ļ<EFBFBD><C4BC>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ԡ<EFBFBD>';
|
||||
$translation['file_too_big'] = '<27>ļ<EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['no_mime'] = 'δ֪<CEB4>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>͡<EFBFBD>';
|
||||
$translation['incorrect_file'] = '<27><><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ʽ<EFBFBD><CABD>';
|
||||
$translation['image_too_wide'] = 'ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['image_too_narrow'] = 'ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫С<CCAB><D0A1>';
|
||||
$translation['image_too_high'] = 'ͼƬ<CDBC>߶<EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>';
|
||||
$translation['image_too_short'] = 'ͼƬ<CDBC>߶<EFBFBD>̫С<CCAB><D0A1>';
|
||||
$translation['ratio_too_high'] = 'ͼƬ<CDBC><C6AC>/<2F>߱<EFBFBD><DFB1><EFBFBD>̫<EFBFBD><CCAB>(ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>̫<EFBFBD><CCAB>)<29><>';
|
||||
$translation['ratio_too_low'] = 'ͼƬ<CDBC><C6AC>/<2F>߱<EFBFBD><DFB1><EFBFBD>̫<EFBFBD><CCAB>(ͼƬ<CDBC>߶<EFBFBD>̫<EFBFBD><CCAB>).';
|
||||
$translation['too_many_pixels'] = 'ͼƬλ<C6AC><CEBB>̫<EFBFBD>ߡ<EFBFBD>';
|
||||
$translation['not_enough_pixels'] = 'ͼƬλ<C6AC><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['file_not_uploaded'] = '<27>ļ<EFBFBD>δ<EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['already_exists'] = '%s <20>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['temp_file_missing'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ʱ)Դ<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['source_missing'] = '<27><><EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ʧ<EFBFBD><CAA7><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir'] = 'Ŀ<><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir_missing'] = 'Ŀ<><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_path_not_dir'] = 'Ŀ¼·<C2BC><C2B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>Ч<EFBFBD><D0A7>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_dir_write'] = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ļ<EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>д<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['destination_path_write'] = 'Ŀ¼·<C2BC><C2B7><EFBFBD>Dz<EFBFBD><C7B2><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['temp_file'] = '<27><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['source_not_readable'] = 'Դ<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>ܽ<EFBFBD><DCBD>д<EFBFBD><D0B4><EFBFBD>';
|
||||
$translation['no_create_support'] = '%s <20><>֧<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD>';
|
||||
$translation['create_error'] = '<27><>Դ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD> %s ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD>';
|
||||
$translation['source_invalid'] = '<27><EFBFBD><DEB7><EFBFBD>ȡԭʼͼƬ<CDBC><C6AC>ȷ<EFBFBD><C8B7><EFBFBD>Dz<EFBFBD><C7B2><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>ͼƬ<CDBC>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['gd_missing'] = 'GD <20><><EFBFBD><EFBFBD><F1B2BBBF><EFBFBD>ʹ<EFBFBD>á<EFBFBD>';
|
||||
$translation['watermark_no_create_support'] = '%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>, <20><><EFBFBD>ܶ<EFBFBD>ȡˮӡ<CBAE>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['watermark_create_error'] = '%s <20><>֧<EFBFBD>ֶ<EFBFBD>, <20><><EFBFBD>ܴ<EFBFBD><DCB4><EFBFBD>ˮӡ<CBAE><D3A1>';
|
||||
$translation['watermark_invalid'] = 'δ֪<CEB4>ļ<EFBFBD><C4BC><EFBFBD>ʽ, <20><EFBFBD><DEB7><EFBFBD>ȡˮӡ<CBAE>ļ<EFBFBD><C4BC><EFBFBD>';
|
||||
$translation['file_create'] = '%s <20><>֧<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['no_conversion_type'] = 'δ<><CEB4><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||||
$translation['copy_failed'] = '<27>ڷ<EFBFBD><DAB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD><CFB8><EFBFBD><EFBFBD>ļ<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD> copy() <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>.';
|
||||
$translation['reading_failed'] = '<27><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD>';
|
||||
|
||||
?>
|
|
@ -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 caoshiwei@gmail.com |
|
||||
// | 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,14 @@
|
|||
<?php
|
||||
require_once __DIR__.'/header.php';
|
||||
echo '
|
||||
<div class="col-md-12" style="margin: 40px;">
|
||||
<form class="form-inline col-md-6 col-md-offset-3" action="../index.php" method="post">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputInviteCode3">密码</label>
|
||||
<input type="password" name="password" class="form-control" placeholder="请输入登录密码">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">登录</button>
|
||||
</form>
|
||||
</div>
|
||||
';
|
||||
include_once __DIR__.'/footer.php';
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,958 @@
|
|||
{
|
||||
"appName": "Tiny File Manager",
|
||||
"version": "2.3.5",
|
||||
"language": [
|
||||
{
|
||||
"name": "русский",
|
||||
"code": "ru",
|
||||
"translation": {
|
||||
"AppName": "Файловый менеджер",
|
||||
"AppTitle": "Файловый менеджер",
|
||||
"Login": "Войти",
|
||||
"Username": "Пользователь",
|
||||
"Password": "Пароль",
|
||||
"Logout": "Выйти",
|
||||
"Move": "Переместить",
|
||||
"Copy": "Копировать",
|
||||
"Save": "Сохранить",
|
||||
"SelectAll": "Выбрать всё",
|
||||
"UnSelectAll": "Отменить выбор",
|
||||
"File": "Файл",
|
||||
"Back": "Вернуться",
|
||||
"Size": "Размер",
|
||||
"Perms": "Права доступа",
|
||||
"Modified": "Обновление",
|
||||
"Owner": "Создатель",
|
||||
"Search": "Поиск",
|
||||
"NewItem": "Создать",
|
||||
"Folder": "Папка",
|
||||
"Delete": "Удалить",
|
||||
"Rename": "Переименовать",
|
||||
"CopyTo": "Скопировать в",
|
||||
"DirectLink": "Ссылка",
|
||||
"UploadingFiles": "Загрузка файлов",
|
||||
"ChangePermissions": "Изменить права",
|
||||
"Copying": "Копировать",
|
||||
"CreateNewItem": "Создать новый",
|
||||
"Name": "Имя",
|
||||
"AdvancedEditor": "Улучшеный редактор",
|
||||
"RememberMe": "Запомнить меня",
|
||||
"Actions": "Действия",
|
||||
"Upload": "Загрузить",
|
||||
"Cancel": "Отмена",
|
||||
"InvertSelection": "Обратная выборка",
|
||||
"DestinationFolder": "Папка назначения",
|
||||
"ItemType": "Тип элемента",
|
||||
"ItemName": "Имя элемента",
|
||||
"CreateNow": "Создать сейчас",
|
||||
"Download": "Загрузка",
|
||||
"Open": "Открыть",
|
||||
"UnZip": "Разархивировать",
|
||||
"UnZipToFolder": "Разархивировать в папку",
|
||||
"Edit": "Редактировать",
|
||||
"NormalEditor": "Стандартный редактор",
|
||||
"BackUp": "Back Up",
|
||||
"SourceFolder": "Путь папки",
|
||||
"Files": "Файлы",
|
||||
"Change": "Изменения",
|
||||
"Settings": "Свойства",
|
||||
"Language": "Язык",
|
||||
"MemoryUsed": "Используемая память",
|
||||
"PartitionSize": "Размер раздела"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Italiano",
|
||||
"code": "it",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "File Manager",
|
||||
"Login": "Connettiti",
|
||||
"Username": "Username",
|
||||
"Password": "Password",
|
||||
"Logout": "Disconnettiti",
|
||||
"Move": "Sposta",
|
||||
"Copy": "Copia",
|
||||
"Save": "Salva",
|
||||
"SelectAll": "Seleziona tutto",
|
||||
"UnSelectAll": "Deseleziona tutto",
|
||||
"File": "File",
|
||||
"Back": "Indietro",
|
||||
"Size": "Dimensione",
|
||||
"Perms": "Permessi",
|
||||
"Modified": "Modificato",
|
||||
"Owner": "Proprietario",
|
||||
"Search": "Cerca",
|
||||
"NewItem": "Nuovo Elemento",
|
||||
"Folder": "Cartella",
|
||||
"Delete": "Elimina",
|
||||
"Rename": "Rinomina",
|
||||
"CopyTo": "Copia su",
|
||||
"DirectLink": "Link diretto",
|
||||
"UploadingFiles": "Caricamento file",
|
||||
"ChangePermissions": "Modifica Permessi",
|
||||
"Copying": "Copia in corso",
|
||||
"CreateNewItem": "Crea Nuovo Elemento",
|
||||
"Name": "Nome",
|
||||
"AdvancedEditor": "Editor Avanzato",
|
||||
"RememberMe": "Ricordami",
|
||||
"Actions": "Azioni",
|
||||
"Upload": "Carica",
|
||||
"Cancel": "Annulla",
|
||||
"InvertSelection": "Inverti Selezione",
|
||||
"DestinationFolder": "Cartella di Destinazione",
|
||||
"ItemType": "Tipo Elemento",
|
||||
"ItemName": "Nome Elemento",
|
||||
"CreateNow": "Crea Adesso",
|
||||
"Download": "Scarica",
|
||||
"Open": "Apri",
|
||||
"UnZip": "Decomprimi",
|
||||
"UnZipToFolder": "Decomprimi su cartella",
|
||||
"Edit": "Modifica",
|
||||
"NormalEditor": "Editor Normale",
|
||||
"BackUp": "Back-Up",
|
||||
"SourceFolder": "Cartella di Origine",
|
||||
"Files": "File",
|
||||
"Change": "Cambia",
|
||||
"Settings": "Impostazioni",
|
||||
"Language": "Lingua",
|
||||
"MemoryUsed": "Memoria utilizzata",
|
||||
"PartitionSize": "Dimensione della partizione"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Français",
|
||||
"code": "fr",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "File Manager",
|
||||
"Login": "Connexion",
|
||||
"Username": "Utilisateur",
|
||||
"Password": "Mot de passe",
|
||||
"Logout": "Déconnexion",
|
||||
"Move": "Déplacer",
|
||||
"Copy": "Copier",
|
||||
"Save": "Sauvegarder",
|
||||
"SelectAll": "Tout sélectionner",
|
||||
"UnSelectAll": "Tout déselectionner",
|
||||
"File": "Fichier",
|
||||
"Back": "Retour",
|
||||
"Size": "Taille",
|
||||
"Perms": "Perms",
|
||||
"Modified": "Modifié le",
|
||||
"Owner": "Propriétaire",
|
||||
"Search": "Recherche",
|
||||
"NewItem": "Nouvel Élément",
|
||||
"Folder": "Dossier",
|
||||
"Delete": "Supprimer",
|
||||
"Rename": "Renommer",
|
||||
"CopyTo": "Copier vers",
|
||||
"DirectLink": "Lien direct",
|
||||
"UploadingFiles": "Envoyer des fichiers",
|
||||
"ChangePermissions": "Modifier les permissions",
|
||||
"Copying": "Copier",
|
||||
"CreateNewItem": "Créer un nouvel élément",
|
||||
"Name": "Nom",
|
||||
"AdvancedEditor": "Editeur avancé",
|
||||
"RememberMe": "Se rappeler de moi",
|
||||
"Actions": "Actes",
|
||||
"Upload": "Envoyer",
|
||||
"Cancel": "Annuler",
|
||||
"InvertSelection": "Inverser la sélection",
|
||||
"DestinationFolder": "Dossier destination",
|
||||
"ItemType": "Type d'élement",
|
||||
"ItemName": "Nom de l'élément",
|
||||
"CreateNow": "Créer",
|
||||
"Download": "Télécharger",
|
||||
"Open": "Ouvrir",
|
||||
"UnZip": "Décompressez",
|
||||
"UnZipToFolder": "Décompresser dans un dossier",
|
||||
"Edit": "Editeur",
|
||||
"NormalEditor": "Éditeur Normal",
|
||||
"BackUp": "Sauvegarder",
|
||||
"SourceFolder": "Dossier Source",
|
||||
"Files": "Fichiers",
|
||||
"Change": "Modifier",
|
||||
"Settings": "Réglages",
|
||||
"Language": "Langue",
|
||||
"MemoryUsed": "Mémoire utilisée",
|
||||
"PartitionSize": "Taille de la partition"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Español",
|
||||
"code": "es",
|
||||
"translation": {
|
||||
"AppName": "Pequeño Administrador de Archivos",
|
||||
"AppTitle": "Administrador de Archivos",
|
||||
"Login": "Iniciar Sesión",
|
||||
"Username": "Nombre de Usuario",
|
||||
"Password": "Contraseña",
|
||||
"Logout": "Desconectarse",
|
||||
"Move": "Mover",
|
||||
"Copy": "Copiar",
|
||||
"Save": "Guardar",
|
||||
"SelectAll": "Seleccionar Todo",
|
||||
"UnSelectAll": "Des-seleccionar Todo",
|
||||
"File": "Archivo",
|
||||
"Back": "Atrás",
|
||||
"Size": "Tamaño",
|
||||
"Perms": "Permisos",
|
||||
"Modified": "Modificado",
|
||||
"Owner": "Propietario",
|
||||
"Search": "Buscar",
|
||||
"NewItem": "Nuevo Ítem",
|
||||
"Folder": "Carpeta",
|
||||
"Delete": "Borrar",
|
||||
"Rename": "Cambiar Nombre",
|
||||
"CopyTo": "Copiar en",
|
||||
"DirectLink": "Link Directo",
|
||||
"UploadingFiles": "Subir Archivos",
|
||||
"ChangePermissions": "Cambiar Permisos",
|
||||
"Copying": "Copiando",
|
||||
"CreateNewItem": "Crear nuevo Item",
|
||||
"Name": "Nombre",
|
||||
"AdvancedEditor": "Editor Avanzado",
|
||||
"RememberMe": "Recuérdame",
|
||||
"Actions": "Acciones",
|
||||
"Upload": "Subir",
|
||||
"Cancel": "Cancelar",
|
||||
"InvertSelection": "Invertir Selección",
|
||||
"DestinationFolder": "Carpeta Destino",
|
||||
"ItemType": "Tipo de Ítem",
|
||||
"ItemName": "Nombre del Ítem",
|
||||
"CreateNow": "Crear",
|
||||
"Download": "Descargar",
|
||||
"Open": "Abrir",
|
||||
"UnZip": "Descomprimir",
|
||||
"UnZipToFolder": "Descomprimir en Carpeta",
|
||||
"Edit": "Editar",
|
||||
"NormalEditor": "Editor Normal",
|
||||
"BackUp": "Copia de Seguridad",
|
||||
"SourceFolder": "Carpeta Actual",
|
||||
"Files": "Archivos",
|
||||
"Change": "Cambiar",
|
||||
"Settings": "Preferencias",
|
||||
"Language": "Lenguaje"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Català",
|
||||
"code": "ca",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "Administrador d'Arxius",
|
||||
"Login": "Iniciar Sessió",
|
||||
"Username": "Nom d'Usuari",
|
||||
"Password": "Contrasenya",
|
||||
"Logout": "Desconnectar-se",
|
||||
"Move": "Moure",
|
||||
"Copy": "Copiar",
|
||||
"Save": "Desar",
|
||||
"SelectAll": "Seleccionar Tot",
|
||||
"UnSelectAll": "Deseleccionar Tot",
|
||||
"File": "Arxiu",
|
||||
"Back": "Enrere",
|
||||
"Size": "Mida",
|
||||
"Perms": "Permisos",
|
||||
"Modified": "Modificat",
|
||||
"Owner": "Propietari",
|
||||
"Search": "Cercar",
|
||||
"NewItem": "Nou Ítem",
|
||||
"Folder": "Carpeta",
|
||||
"Delete": "Esborrar",
|
||||
"Rename": "Canviar Nom",
|
||||
"CopyTo": "Copiar a",
|
||||
"DirectLink": "Enllaç Directe",
|
||||
"UploadingFiles": "Pujar Arxius",
|
||||
"ChangePermissions": "Canviar Permisos",
|
||||
"Copying": "Copiant",
|
||||
"CreateNewItem": "Crear un Nou Ítem",
|
||||
"Name": "Nom",
|
||||
"AdvancedEditor": "Editor Avançat",
|
||||
"RememberMe": "Recorda'm",
|
||||
"Actions": "Accions",
|
||||
"Upload": "Pujar",
|
||||
"Cancel": "Cancel·lar",
|
||||
"InvertSelection": "Invertir Selecció",
|
||||
"DestinationFolder": "Carpeta Destí",
|
||||
"ItemType": "Tipus d'Ítem",
|
||||
"ItemName": "Nom de l'Ítem",
|
||||
"CreateNow": "Crear",
|
||||
"Download": "Descarregar",
|
||||
"Open": "Obrir",
|
||||
"UnZip": "Descomprimir",
|
||||
"UnZipToFolder": "Descomprimir a Carpeta",
|
||||
"Edit": "Editar",
|
||||
"NormalEditor": "Editor Normal",
|
||||
"BackUp": "Còpia de Seguretat",
|
||||
"SourceFolder": "Carpeta Actual",
|
||||
"Files": "Arxius",
|
||||
"Change": "Canviar",
|
||||
"Settings": "Preferències",
|
||||
"Language": "Idioma",
|
||||
"Preview": "Previsualitzar"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Deutsch",
|
||||
"code": "de",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "Datei Manager",
|
||||
"Login": "Einloggen",
|
||||
"Username": "Benutzername",
|
||||
"Password": "Passwort",
|
||||
"Logout": "Ausloggen",
|
||||
"Move": "Verschieben",
|
||||
"Copy": "Kopieren",
|
||||
"Save": "Speichern",
|
||||
"SelectAll": "Alles auswählen",
|
||||
"UnSelectAll": "Alles abwählen",
|
||||
"File": "Datei",
|
||||
"Back": "Zurück",
|
||||
"Size": "Größe",
|
||||
"Perms": "Berechtigungen",
|
||||
"Modified": "Geändert",
|
||||
"Owner": "Eigentümer",
|
||||
"Search": "Suchen",
|
||||
"NewItem": "Neues Element",
|
||||
"Folder": "Ordner",
|
||||
"Delete": "Löschen",
|
||||
"Rename": "Umbenennen",
|
||||
"CopyTo": "Kopieren nach",
|
||||
"DirectLink": "Direktlink",
|
||||
"UploadingFiles": "Datei hochladen",
|
||||
"ChangePermissions": "Berechtigungen ändern",
|
||||
"Copying": "Kopieren",
|
||||
"CreateNewItem": "Neue Datei erstellen",
|
||||
"Name": "Name",
|
||||
"AdvancedEditor": "Erweiterter Editor",
|
||||
"RememberMe": "Eingeloggt bleiben",
|
||||
"Actions": "Aktionen",
|
||||
"Upload": "Hochladen",
|
||||
"Cancel": "Abbrechen",
|
||||
"InvertSelection": "Auswahl umkehren",
|
||||
"DestinationFolder": "Zielordner",
|
||||
"ItemType": "Dateityp",
|
||||
"ItemName": "Dateiname",
|
||||
"CreateNow": "Jetzt erstellen",
|
||||
"Download": "Download",
|
||||
"Open": "Öffnen",
|
||||
"UnZip": "Entpacken",
|
||||
"UnZipToFolder": "Entpacken im Ordner",
|
||||
"Edit": "Bearbeiten",
|
||||
"NormalEditor": "Standard Editor",
|
||||
"BackUp": "Backup",
|
||||
"SourceFolder": "Quellordner",
|
||||
"Files": "Dateien",
|
||||
"Change": "Ändern",
|
||||
"Settings": "Einstellungen",
|
||||
"Language": "Sprache"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ภาษาไทย",
|
||||
"code": "th",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "ตัวจัดการไฟล์",
|
||||
"Login": "เข้าสู่ระบบ",
|
||||
"Username": "ชื่อผู้ใช้งาน",
|
||||
"Password": "รหัสผ่าน",
|
||||
"Logout": "ออกจากระบบ",
|
||||
"Move": "ย้าย",
|
||||
"Copy": "คัดลอก",
|
||||
"Save": "บันทึก",
|
||||
"SelectAll": "เลือกท้งหมด",
|
||||
"UnSelectAll": "ไม่เลือกทั้งหมด",
|
||||
"File": "ไฟล์",
|
||||
"Back": "กลับ",
|
||||
"Size": "ขนาด",
|
||||
"Perms": "รหัสสิทธิ์",
|
||||
"Modified": "แก้ไขล่าสุดเมื่อ",
|
||||
"Owner": "เจ้าของ",
|
||||
"Search": "ค้นหา",
|
||||
"NewItem": "สร้างใหม่",
|
||||
"Folder": "โฟลเดอร์",
|
||||
"Delete": "ลบ",
|
||||
"Rename": "เปลี่ยนชื่อ",
|
||||
"CopyTo": "คัดลอกไปยัง",
|
||||
"DirectLink": "ไปยังลิ้งก์นั้น",
|
||||
"UploadingFiles": "อัพโหลด",
|
||||
"ChangePermissions": "เปลี่ยนสิทธิ์",
|
||||
"Copying": "กำลังย้ายข้อมูล",
|
||||
"CreateNewItem": "สร้างไฟล์ใหม่",
|
||||
"Name": "ชื่อ",
|
||||
"AdvancedEditor": "แก้ไขขั้นสูง",
|
||||
"RememberMe": "จดจำฉันไว้",
|
||||
"Actions": "การทำงาน",
|
||||
"Upload": "อัพโหลด",
|
||||
"Cancel": "ยกเลิก",
|
||||
"InvertSelection": "เปลี่ยนข้อมูล",
|
||||
"DestinationFolder": "โฟลเดอร์ปลายทาง",
|
||||
"ItemType": "ข้อมูลประเภท",
|
||||
"ItemName": "ชื่อไฟล์",
|
||||
"CreateNow": "สร้างตอนนี้",
|
||||
"Download": "ดาวโหลด",
|
||||
"Open": "เปิด",
|
||||
"UnZip": "แตก Zip",
|
||||
"UnZipToFolder": "แตกไฟล์ในโฟเดอร์นี้",
|
||||
"Edit": "แก้ไข",
|
||||
"NormalEditor": "แก้ไขปกติ",
|
||||
"BackUp": "สำรองข้อมูล",
|
||||
"SourceFolder": "โฟลเดอร์ต้นทาง",
|
||||
"Files": "ไฟล์",
|
||||
"Change": "เปลี่ยน",
|
||||
"Settings": "การตั้งค่า",
|
||||
"Language": "ภาษา"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "简体中文",
|
||||
"code": "zh-CN",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "文件及目录管理器",
|
||||
"Login": "登录",
|
||||
"Username": "账号",
|
||||
"Password": "密码",
|
||||
"Logout": "退出",
|
||||
"Move": "移动",
|
||||
"Copy": "拷贝",
|
||||
"Save": "保存",
|
||||
"SelectAll": "全选",
|
||||
"UnSelectAll": "取消全选",
|
||||
"File": "文件",
|
||||
"Back": "取消上传",
|
||||
"Size": "文档大小",
|
||||
"Perms": "权限",
|
||||
"Modified": "修改时间",
|
||||
"Owner": "拥有者",
|
||||
"Search": "查找",
|
||||
"NewItem": "创建新文件/文件夹",
|
||||
"Folder": "文件夹",
|
||||
"Delete": "删除",
|
||||
"CopyTo": "复制到",
|
||||
"DirectLink": "直链",
|
||||
"UploadingFiles": "上传",
|
||||
"ChangePermissions": "修改权限",
|
||||
"Copying": "复制中",
|
||||
"CreateNewItem": "创建新文件",
|
||||
"Name": "文件名",
|
||||
"AdvancedEditor": "高级编辑器",
|
||||
"RememberMe": "记住登录信息",
|
||||
"Actions": "可执行操作",
|
||||
"Upload": "上传",
|
||||
"Cancel": "取消",
|
||||
"InvertSelection": "反向选择",
|
||||
"DestinationFolder": "目标文件夹",
|
||||
"ItemType": "文件类型",
|
||||
"ItemName": "创建名称",
|
||||
"CreateNow": "创建",
|
||||
"Download": "下載",
|
||||
"UnZip": "解压缩",
|
||||
"UnZipToFolder": "解压至目标文件夹",
|
||||
"Edit": "编辑",
|
||||
"NormalEditor": "编辑器",
|
||||
"BackUp": "备份",
|
||||
"SourceFolder": "源文件夹",
|
||||
"Files": "文件",
|
||||
"Change": "修改",
|
||||
"Settings": "配置",
|
||||
"Language": "语言",
|
||||
"Open": "开启",
|
||||
"Group": "用户组",
|
||||
"Other": "其它用户",
|
||||
"Read": "读取权限",
|
||||
"Write": "写入权限",
|
||||
"Execute": "执行权限",
|
||||
"Rename": "重命名",
|
||||
"enable": "启用",
|
||||
"disable": "禁用",
|
||||
"ErrorReporting": "上传错误报告",
|
||||
"ShowHiddenFiles": "显示隐藏文件"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "中文(繁體)",
|
||||
"code": "zh-TW",
|
||||
"translation": {
|
||||
"AppName": "檔案管理器",
|
||||
"AppTitle": "檔案管理器",
|
||||
"Login": "登入",
|
||||
"Username": "帳號",
|
||||
"Password": "密碼",
|
||||
"Logout": "登出",
|
||||
"Move": "移動",
|
||||
"Copy": "複製",
|
||||
"Save": "保存",
|
||||
"SelectAll": "選擇全部",
|
||||
"UnSelectAll": "取消選擇全部",
|
||||
"File": "檔案",
|
||||
"Back": "返回",
|
||||
"Size": "大小",
|
||||
"Perms": "權限",
|
||||
"Modified": "修改時間",
|
||||
"Owner": "擁有者",
|
||||
"Search": "搜尋",
|
||||
"NewItem": "新檔案",
|
||||
"Folder": "資料夾",
|
||||
"Delete": "移除",
|
||||
"CopyTo": "複製到",
|
||||
"DirectLink": "直接連結",
|
||||
"UploadingFiles": "上傳檔案",
|
||||
"ChangePermissions": "變更權限",
|
||||
"Copying": "複製",
|
||||
"CreateNewItem": "建立新檔案",
|
||||
"Name": "檔名",
|
||||
"AdvancedEditor": "進階編輯",
|
||||
"RememberMe": "記住我",
|
||||
"Actions": "動作",
|
||||
"Upload": "上傳",
|
||||
"Cancel": "取消",
|
||||
"InvertSelection": "選擇反轉",
|
||||
"DestinationFolder": "目標資料夾",
|
||||
"ItemType": "檔案類型",
|
||||
"ItemName": "檔案檔名",
|
||||
"CreateNow": "建立",
|
||||
"Download": "下載",
|
||||
"UnZip": "解壓縮",
|
||||
"UnZipToFolder": "解壓縮至資料夾",
|
||||
"Edit": "編輯",
|
||||
"NormalEditor": "普通編輯",
|
||||
"BackUp": "上傳",
|
||||
"SourceFolder": "來源資料夾",
|
||||
"Files": "檔案",
|
||||
"Change": "變更",
|
||||
"Settings": "設定",
|
||||
"Language": "語言",
|
||||
"Open": "開啟",
|
||||
"Group": "群組",
|
||||
"Other": "其他",
|
||||
"Read": "讀取",
|
||||
"Write": "寫入",
|
||||
"Execute": "執行",
|
||||
"Rename": "重新命名",
|
||||
"enable": "開啟",
|
||||
"disable": "關閉"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Bahasa Indonesia",
|
||||
"code": "id",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "Pengelola File",
|
||||
"Login": "Masuk",
|
||||
"Username": "Nama pengguna",
|
||||
"Password": "Kata sandi",
|
||||
"Logout": "Keluar",
|
||||
"Move": "Pindah",
|
||||
"Copy": "Salin",
|
||||
"Save": "Simpan",
|
||||
"SelectAll": "Pilih semua",
|
||||
"UnSelectAll": "Batalkan pilihan semua",
|
||||
"File": "File",
|
||||
"Back": "Kembali",
|
||||
"Size": "Ukuran",
|
||||
"Perms": "Perizinan",
|
||||
"Modified": "Terakhir diubah",
|
||||
"Owner": "Pemilik",
|
||||
"Search": "Cari",
|
||||
"NewItem": "Item baru",
|
||||
"Folder": "Folder",
|
||||
"Delete": "Hapus",
|
||||
"Rename": "Ganti nama",
|
||||
"CopyTo": "Salin ke",
|
||||
"DirectLink": "Link langsung",
|
||||
"UploadingFiles": "Mengupload file",
|
||||
"ChangePermissions": "Ubah perizinan",
|
||||
"Copying": "Menyalin",
|
||||
"CreateNewItem": "Buat item baru",
|
||||
"Name": "Nama",
|
||||
"AdvancedEditor": "Editor tingkat lanjut",
|
||||
"RememberMe": "Ingat saya",
|
||||
"Actions": "Aksi",
|
||||
"Upload": "Upload",
|
||||
"Cancel": "Batal",
|
||||
"InvertSelection": "Pilihan sebaliknya",
|
||||
"DestinationFolder": "Folder tujuan",
|
||||
"ItemType": "Tipe item",
|
||||
"ItemName": "Nama item",
|
||||
"CreateNow": "Buat sekarang",
|
||||
"Download": "Unduh",
|
||||
"Open": "Buka",
|
||||
"UnZip": "UnZip",
|
||||
"UnZipToFolder": "UnZip ke folder",
|
||||
"Edit": "Edit",
|
||||
"NormalEditor": "Editor normal",
|
||||
"BackUp": "Cadangkan",
|
||||
"SourceFolder": "Folder sumber",
|
||||
"Files": "File",
|
||||
"Change": "Ubah",
|
||||
"Settings": "Pengaturan",
|
||||
"Language": "Bahasa",
|
||||
"MemoryUsed": "Memori terpakai",
|
||||
"PartitionSize": "Ukuran partisi"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Ελληνικά",
|
||||
"code": "gr",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "File Manager",
|
||||
"Login": "Είσοδος",
|
||||
"Username": "Username",
|
||||
"Password": "Password",
|
||||
"Logout": "Αποσύνδεση",
|
||||
"Move": "Μετακίνση",
|
||||
"Copy": "Αντιγραφή",
|
||||
"Save": "Αποθήκευση",
|
||||
"SelectAll": "Επιλογή όλων",
|
||||
"UnSelectAll": "Αποεπιλογή όλων",
|
||||
"File": "Αρχείο",
|
||||
"Back": "Πίσω",
|
||||
"Size": "Μέγεθος",
|
||||
"Perms": "Άδειες",
|
||||
"Modified": "Τροποποιημένο",
|
||||
"Owner": "Ιδιοκτήτης",
|
||||
"Search": "Αναζήτηση",
|
||||
"NewItem": "Νέο Αντικείμενο",
|
||||
"Folder": "Φάκελος",
|
||||
"Delete": "Διαγραφή",
|
||||
"Rename": "Μετονομασία",
|
||||
"CopyTo": "Αντιγραφή σε",
|
||||
"DirectLink": "Direct Link",
|
||||
"UploadingFiles": "Ανέβασμα αρχείων",
|
||||
"ChangePermissions": "Αλλαγή αδειών",
|
||||
"Copying": "Αντιγραφή σε εξέλιξη",
|
||||
"CreateNewItem": "Δημιουργία νέου αντικειμένου",
|
||||
"Name": "Όνομα",
|
||||
"AdvancedEditor": "Editor για προχωρημένους",
|
||||
"RememberMe": "Θυμήσου με",
|
||||
"Actions": "Ενέργειες",
|
||||
"Upload": "Ανέβασμα",
|
||||
"Cancel": "Ακύρωση",
|
||||
"InvertSelection": "Αναίρεση επιλογής",
|
||||
"DestinationFolder": "Φάκελος προορισμού",
|
||||
"ItemType": "Τύπος αντικειμένου",
|
||||
"ItemName": "Όνομα αντικειμένου",
|
||||
"CreateNow": "Δημιούργησε τώρα",
|
||||
"Download": "Download",
|
||||
"Open": "Άνοιξε",
|
||||
"UnZip": "Αποσυμπίεση",
|
||||
"UnZipToFolder": "Αποσυμπίεση σε φάκελο",
|
||||
"Edit": "Επεξεργασία",
|
||||
"NormalEditor": "Βασικός editor",
|
||||
"BackUp": "Back-Up",
|
||||
"SourceFolder": "Πηγή",
|
||||
"Files": "Αρχεία",
|
||||
"Change": "Τροποποίησε",
|
||||
"Settings": "Ρυθμίσεις",
|
||||
"Language": "Γλώσσα",
|
||||
"MemoryUsed": "Η μνήμη χρησιμοποιείται",
|
||||
"PartitionSize": "Μέγεθος partition"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Português",
|
||||
"code": "pt",
|
||||
"translation": {
|
||||
"AppName": "Gerenciador de arquivos Tiny",
|
||||
"AppTitle": "Gerenciador de arquivos",
|
||||
"Login": "Iniciar Sessão",
|
||||
"Username": "Nome de usuário",
|
||||
"Password": "Senha",
|
||||
"Logout": "Sair",
|
||||
"Move": "Mover",
|
||||
"Copy": "Copiar",
|
||||
"Save": "Salvar",
|
||||
"SelectAll": "Selecionar tudo",
|
||||
"UnSelectAll": "Desmarcar tudo",
|
||||
"File": "Arquivo",
|
||||
"Back": "Voltar",
|
||||
"Size": "Tamanho",
|
||||
"Perms": "Permissões",
|
||||
"Modified": "Modificado",
|
||||
"Owner": "Proprietário",
|
||||
"Search": "Buscar",
|
||||
"NewItem": "Novo Item",
|
||||
"Folder": "Pasta",
|
||||
"Delete": "Excluir",
|
||||
"Rename": "Renomear",
|
||||
"CopyTo": "Copiar em",
|
||||
"DirectLink": "Link direto",
|
||||
"UploadingFiles": "Upload de arquivos",
|
||||
"ChangePermissions": "Alterar permissões",
|
||||
"Copying": "Copiando",
|
||||
"CreateNewItem": "Criar novo item",
|
||||
"Name": "Nome",
|
||||
"AdvancedEditor": "Editor Avançado",
|
||||
"RememberMe": "Lembra de mim",
|
||||
"Actions": "Ações",
|
||||
"Upload": "Upload",
|
||||
"Cancel": "Cancelar",
|
||||
"InvertSelection": "Seleção reversa",
|
||||
"DestinationFolder": "Pasta de destino",
|
||||
"ItemType": "Tipo de Item",
|
||||
"ItemName": "Nome do item",
|
||||
"CreateNow": "Criar",
|
||||
"Download": "Baixar",
|
||||
"Open": "Abrir",
|
||||
"UnZip": "Descompactar os arquivos",
|
||||
"UnZipToFolder": "Descompactar na pasta",
|
||||
"Edit": "Editar",
|
||||
"NormalEditor": "Editor Normal",
|
||||
"BackUp": "Copia de segurança",
|
||||
"SourceFolder": "Pasta atual",
|
||||
"Files": "Arquivos",
|
||||
"Change": "Alterar",
|
||||
"Settings": "Preferências",
|
||||
"Language": "Idioma"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Polski",
|
||||
"code": "pl",
|
||||
"translation": {
|
||||
"AppName": "Tiny File Manager",
|
||||
"AppTitle": "Menedżer plików",
|
||||
"Login": "Login",
|
||||
"Username": "Nazwa Użytkownika",
|
||||
"Password": "Hasło",
|
||||
"Logout": "Wyloguj",
|
||||
"Move": "Przenieś",
|
||||
"Copy": "Kopiuj",
|
||||
"Save": "Zapisz",
|
||||
"SelectAll": "Zaznacz wszystko",
|
||||
"UnSelectAll": "Odznacz wszystko",
|
||||
"File": "Plik",
|
||||
"Back": "Cofnij",
|
||||
"Size": "Rozmiar",
|
||||
"Perms": "Uprawnienia",
|
||||
"Modified": "Zmodyfikowano",
|
||||
"Owner": "Właściciel",
|
||||
"Search": "Szukaj",
|
||||
"NewItem": "Nowy plik",
|
||||
"Folder": "Folder",
|
||||
"Delete": "Usuń",
|
||||
"Rename": "Zmień nazwę",
|
||||
"CopyTo": "Kopiuj do",
|
||||
"DirectLink": "Link bezpośredni",
|
||||
"UploadingFiles": "Wysyłanie plików",
|
||||
"ChangePermissions": "Zmień uprawnienia",
|
||||
"Copying": "Kopiowanie",
|
||||
"CreateNewItem": "Utwórz nowy plik",
|
||||
"Name": "Nazwa",
|
||||
"AdvancedEditor": "Zaawansowany edytor",
|
||||
"RememberMe": "Pamiętaj mnie",
|
||||
"Actions": "Akcje",
|
||||
"Upload": "Wyślij",
|
||||
"Cancel": "Anuluj",
|
||||
"InvertSelection": "Odwróć zaznaczenie",
|
||||
"DestinationFolder": "Folder docelowy",
|
||||
"ItemType": "Typ pliku",
|
||||
"ItemName": "Nazwa pliku",
|
||||
"CreateNow": "Utwórz nowy",
|
||||
"Download": "Pobierz",
|
||||
"Open": "Otwórz",
|
||||
"UnZip": "Rozpakuj",
|
||||
"UnZipToFolder": "Rozpakuj do",
|
||||
"Edit": "Edytuj",
|
||||
"NormalEditor": "Edytuj normalnie",
|
||||
"BackUp": "Kopia zapasowa",
|
||||
"SourceFolder": "Folder źródłowy",
|
||||
"Files": "Pliki",
|
||||
"Change": "Zmień",
|
||||
"Settings": "Ustawienia",
|
||||
"Language": "Język"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Việt Nam",
|
||||
"code": "vi",
|
||||
"translation": {
|
||||
"AppName": "Trình quản lí tệp Tiny",
|
||||
"AppTitle": "Trình quản lí",
|
||||
"Login": "Đăng nhập",
|
||||
"Username": "Tên đăng nhập",
|
||||
"Password": "Mật khẩu",
|
||||
"Logout": "Đăng xuất",
|
||||
"Move": "Di chuyển",
|
||||
"Copy": "Sao chép",
|
||||
"Save": "Lưu",
|
||||
"SelectAll": "Chọn tất cả",
|
||||
"UnSelectAll": "Hủy chọn tất cả",
|
||||
"File": "Tệp tin",
|
||||
"Back": "Trở lại",
|
||||
"Size": "Kích cỡ",
|
||||
"Perms": "Quyền",
|
||||
"Modified": "Sửa đổi",
|
||||
"Owner": "Sở hữu",
|
||||
"Search": "Tìm kiếm",
|
||||
"NewItem": "Tạo mới",
|
||||
"Folder": "Thư mục",
|
||||
"Delete": "Xóa",
|
||||
"Rename": "Đổi tên",
|
||||
"CopyTo": "Sao chép đến",
|
||||
"DirectLink": "Đường dẫn URL",
|
||||
"UploadingFiles": "Tải lên file",
|
||||
"ChangePermissions": "Thay đổi quyền",
|
||||
"Copying": "Đang sao chép",
|
||||
"CreateNewItem": "Tạo mới",
|
||||
"Name": "Tên",
|
||||
"AdvancedEditor": "Chỉnh sửa nâng cao",
|
||||
"RememberMe": "Ghi nhớ đăng nhập",
|
||||
"Actions": "Hành động",
|
||||
"Upload": "Tải lên",
|
||||
"Cancel": "Hủy",
|
||||
"InvertSelection": "Lừa chọn đảo ngươc",
|
||||
"DestinationFolder": "Thư mục đích",
|
||||
"ItemType": "Kiểu",
|
||||
"ItemName": "Tên tệp",
|
||||
"CreateNow": "Tạo",
|
||||
"Download": "Tải xuống",
|
||||
"Open": "Mở",
|
||||
"UnZip": "Giải nén",
|
||||
"UnZipToFolder": "Giải nén đến thư mục",
|
||||
"Edit": "Sửa",
|
||||
"NormalEditor": "Chỉnh sửa",
|
||||
"BackUp": "Back up",
|
||||
"SourceFolder": "Thư mục",
|
||||
"Files": "Tệp tin",
|
||||
"Change": "Thay đổi",
|
||||
"Settings": "Cài đặt",
|
||||
"Language": "Ngôn ngữ",
|
||||
"PartitionSize": "Kích thước"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Hebrew",
|
||||
"code": "he",
|
||||
"translation": {
|
||||
"AppName": "סייר קבצים - טיני",
|
||||
"AppTitle": "סייר קבצים",
|
||||
"Login": "התחבר",
|
||||
"Username": "שם משתמש",
|
||||
"Password": "סיסמה",
|
||||
"Logout": "התנתק",
|
||||
"Move": "העבר",
|
||||
"Copy": "העתק",
|
||||
"Save": "שמור",
|
||||
"SelectAll": "בחר הכל",
|
||||
"UnSelectAll": "בטל בחירה מהכל",
|
||||
"File": "קובץ",
|
||||
"Back": "חזור",
|
||||
"Size": "גודל",
|
||||
"Perms": "הרשאות",
|
||||
"Modified": "עודכן בתאריך",
|
||||
"Owner": "בעלים",
|
||||
"Search": "חיפוש",
|
||||
"NewItem": "חדש",
|
||||
"Folder": "תיקייה",
|
||||
"Delete": "מחק",
|
||||
"Rename": "שנה שם",
|
||||
"CopyTo": "העתק ל",
|
||||
"DirectLink": "קישור ישיר",
|
||||
"UploadingFiles": "מעלה קבצים",
|
||||
"ChangePermissions": "שנה הרשאות",
|
||||
"Copying": "העותק",
|
||||
"CreateNewItem": "צור פריט חדש",
|
||||
"Name": "שם",
|
||||
"AdvancedEditor": "עורך מתקדם",
|
||||
"RememberMe": "זכור אותי",
|
||||
"Actions": "פעולות",
|
||||
"Upload": "העלה",
|
||||
"Cancel": "ביטול",
|
||||
"InvertSelection": "הפוך את הבחירה",
|
||||
"DestinationFolder": "תיקיית יעד",
|
||||
"ItemType": "סוג פריט",
|
||||
"ItemName": "שם הפריט",
|
||||
"CreateNow": "צור עכשיו",
|
||||
"Download": "הורד",
|
||||
"Open": "פתח",
|
||||
"UnZip": "חילוץ",
|
||||
"UnZipToFolder": "חלץ לתיקייה",
|
||||
"Edit": "ערוך",
|
||||
"NormalEditor": "עורך רגיל",
|
||||
"BackUp": "גיבוי",
|
||||
"SourceFolder": "תקיית מקור",
|
||||
"Files": "קבצים",
|
||||
"Change": "שנה",
|
||||
"Settings": "הגדרות",
|
||||
"Language": "שפה",
|
||||
"MemoryUsed": "זיכרון בשימוש",
|
||||
"PartitionSize": "גודל מחיצה"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "العربية",
|
||||
"code": "Ar",
|
||||
"translation": {
|
||||
"AppName": "مدير الملفات الصغير",
|
||||
"AppTitle": "مدير الملفات",
|
||||
"Login": "دخول",
|
||||
"Username": "اسم المستخدم",
|
||||
"Password": "كلمة المرور",
|
||||
"Logout": "خروج",
|
||||
"Move": "نقل",
|
||||
"Copy": "نسخ",
|
||||
"Save": "حفظ",
|
||||
"SelectAll": "تحديد الكل",
|
||||
"UnSelectAll": "الغاء تحديد الكل",
|
||||
"File": "ملف",
|
||||
"Back": "رجوع",
|
||||
"Size": "حجم",
|
||||
"Perms": "صلاحيات",
|
||||
"Modified": "عدل بـ",
|
||||
"Owner": "المالك",
|
||||
"Search":"بحث",
|
||||
"NewItem": "عنصر جديد",
|
||||
"Folder": "مجلد",
|
||||
"Delete": "حذف",
|
||||
"Rename": "تسمية",
|
||||
"CopyTo": "نسخ الى",
|
||||
"DirectLink": "رابط مباشر",
|
||||
"UploadingFiles": "رفع ملفات",
|
||||
"ChangePermissions": "تغيير الصلاحيات",
|
||||
"Copying": "جاري النسخ",
|
||||
"CreateNewItem": "انشاء عنصر جديد",
|
||||
"Name": "اسم",
|
||||
"AdvancedEditor": "محرر متقدم",
|
||||
"RememberMe": "تذكرني",
|
||||
"Actions": "عمليات",
|
||||
"Upload": "رفع",
|
||||
"Cancel": "الغاء",
|
||||
"InvertSelection": "عكس التحديد",
|
||||
"DestinationFolder": "مجلد",
|
||||
"ItemType": "نوع العنصر",
|
||||
"ItemName": "اسم العنصر",
|
||||
"CreateNow": "انشأ الآن",
|
||||
"Download": "تحميل",
|
||||
"Open": "فتح",
|
||||
"UnZip": "فك الضغط",
|
||||
"UnZipToFolder": "فك الصغط لملف",
|
||||
"Edit": "نحرير",
|
||||
"NormalEditor": "محرر عادي",
|
||||
"BackUp": "نسخة احتياطية",
|
||||
"SourceFolder": "مجلد المصدر",
|
||||
"Files": "ملفات",
|
||||
"Change": "تغيير",
|
||||
"Settings": "اعدادات",
|
||||
"Language": "لغة",
|
||||
"MemoryUsed": "الذاكرة المستخدمة",
|
||||
"PartitionSize": "حجم القسم",
|
||||
|
||||
"Free of": "مساحة فارغة من ",
|
||||
"Preview": "عرض",
|
||||
"Full size": "الحجم الكلي",
|
||||
|
||||
"ErrorReporting": "التبليغ باخطاء",
|
||||
"ShowHiddenFiles": "اظهار الملفات المخفية",
|
||||
"Help": "مساعدة"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
|
@ -0,0 +1,4 @@
|
|||
<!--顶部广告 按照这个范例替换相应链接,如果想多几个广告,就多复制几个-->
|
||||
<div id="ad" class="col-md-12" align="center" style="padding:5px;">
|
||||
<a href="https://img.545141.com" target="_blank"><img src="public/static/ad.jpg" /></a>
|
||||
</div>
|
|
@ -0,0 +1,4 @@
|
|||
<!--顶部广告 按照这个范例替换相应链接,如果想多几个广告,就多复制几个-->
|
||||
<div id="ad" class="col-md-12" align="center" style="padding:5px;">
|
||||
<a href="https://img.545141.com" target="_blank"><img src="public/static/ad.jpg" /></a>
|
||||
</div>
|
|
@ -0,0 +1,9 @@
|
|||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?5320b69f4f1caa9328dfada73c8e6a75";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 290 KiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,613 @@
|
|||
/*!
|
||||
* ZUI: 文件上传 - v1.8.1 - 2018-04-08
|
||||
* http://zui.sexy
|
||||
* GitHub: https://github.com/easysoft/zui.git
|
||||
* Copyright (c) 2018 cnezsoft.com; Licensed MIT
|
||||
*/
|
||||
|
||||
.uploader {
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.uploader-btn-hidden {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
opacity: 0;
|
||||
}
|
||||
.file-dragable {
|
||||
position: relative;
|
||||
}
|
||||
[data-drop-placeholder]:before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
content: attr(data-drop-placeholder);
|
||||
background-color: rgba(255, 240, 213, .5);
|
||||
filter: alpha(opacity=0);
|
||||
border: 2px dashed #f1a325;
|
||||
opacity: 0;
|
||||
-webkit-transition: all .2s;
|
||||
-o-transition: all .2s;
|
||||
transition: all .2s;
|
||||
-webkit-transform: scale(.95);
|
||||
-ms-transform: scale(.95);
|
||||
-o-transform: scale(.95);
|
||||
transform: scale(.95);
|
||||
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.ie [data-drop-placeholder]:before {
|
||||
display: none !important;
|
||||
}
|
||||
.file-dragable[data-drop-placeholder]:before {
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
-webkit-transform: scale(1);
|
||||
-ms-transform: scale(1);
|
||||
-o-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
.file-drag-enter[data-drop-placeholder]:before {
|
||||
background-color: #fff0d5;
|
||||
border-style: solid;
|
||||
}
|
||||
.uploader-files,
|
||||
.file-list {
|
||||
position: relative;
|
||||
min-height: 32px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
.uploader-files[data-drag-placeholder]:before,
|
||||
.file-list[data-drag-placeholder]:before {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
margin-top: -15px;
|
||||
line-height: 32px;
|
||||
color: #ddd;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
content: attr(data-drag-placeholder);
|
||||
-webkit-transition: all .4s;
|
||||
-o-transition: all .4s;
|
||||
transition: all .4s;
|
||||
}
|
||||
.uploader-files[data-drag-placeholder]:hover:before,
|
||||
.file-list[data-drag-placeholder]:hover:before {
|
||||
color: #808080;
|
||||
}
|
||||
.uploader-files .file-icon,
|
||||
.file-list .file-icon {
|
||||
position: relative;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
filter: alpha(opacity=70);
|
||||
opacity: .7;
|
||||
-webkit-transition: opacity .4s;
|
||||
-o-transition: opacity .4s;
|
||||
transition: opacity .4s;
|
||||
}
|
||||
.uploader-files .file-icon-image,
|
||||
.file-list .file-icon-image {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
bottom: 5px;
|
||||
left: 5px;
|
||||
background-color: #fff;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
-webkit-background-size: cover;
|
||||
background-size: cover;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
.uploader-files .file-name,
|
||||
.file-list .file-name {
|
||||
text-decoration: none;
|
||||
-webkit-transition: all .2s;
|
||||
-o-transition: all .2s;
|
||||
transition: all .2s;
|
||||
}
|
||||
.uploader-files .file-name[contenteditable],
|
||||
.file-list .file-name[contenteditable] {
|
||||
padding: 0 5px;
|
||||
background-color: #fff;
|
||||
outline: 1px solid #3280fc;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #97befd;
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #97befd;
|
||||
}
|
||||
.uploader-files .file-name,
|
||||
.file-list .file-name,
|
||||
.uploader-files .file-size,
|
||||
.file-list .file-size {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.uploader-files .file-renaming .file-name[contenteditable],
|
||||
.file-list .file-renaming .file-name[contenteditable] {
|
||||
text-overflow: initial;
|
||||
}
|
||||
.uploader-files .file:hover .file-name,
|
||||
.file-list .file:hover .file-name {
|
||||
color: #3280fc;
|
||||
}
|
||||
.uploader-files .file:hover .file-icon,
|
||||
.file-list .file:hover .file-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
.uploader-files .file-status,
|
||||
.file-list .file-status {
|
||||
display: inline-block;
|
||||
line-height: 20px;
|
||||
text-align: right;
|
||||
}
|
||||
.uploader-files .file-status:hover,
|
||||
.file-list .file-status:hover {
|
||||
background-color: rgba(0, 0, 0, .07);
|
||||
}
|
||||
.uploader-files .file-status > .icon,
|
||||
.file-list .file-status > .icon {
|
||||
line-height: 20px;
|
||||
vertical-align: middle;
|
||||
opacity: 1;
|
||||
-webkit-transition: all .8s;
|
||||
-o-transition: all .8s;
|
||||
transition: all .8s;
|
||||
-webkit-transform: scale(1);
|
||||
-ms-transform: scale(1);
|
||||
-o-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
.uploader-files .file-status > .icon:before,
|
||||
.file-list .file-status > .icon:before {
|
||||
content: '\e653';
|
||||
}
|
||||
.uploader-files .file-status > .text,
|
||||
.file-list .file-status > .text {
|
||||
display: inline-block;
|
||||
padding: 0 6px;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
.uploader-files .file-status > .text:empty,
|
||||
.file-list .file-status > .text:empty {
|
||||
display: none;
|
||||
}
|
||||
.uploader-files .file[data-status="uploading"] .file-status > .icon,
|
||||
.file-list .file[data-status="uploading"] .file-status > .icon {
|
||||
filter: alpha(opacity=0);
|
||||
opacity: 0;
|
||||
-webkit-transform: scale(0);
|
||||
-ms-transform: scale(0);
|
||||
-o-transform: scale(0);
|
||||
transform: scale(0);
|
||||
}
|
||||
.uploader-files .file[data-status="uploading"] .file-status > .text,
|
||||
.file-list .file[data-status="uploading"] .file-status > .text {
|
||||
color: #fff;
|
||||
background-color: #3280fc;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.uploader-files .file[data-status="queue"] .file-status,
|
||||
.file-list .file[data-status="queue"] .file-status {
|
||||
color: #f1a325;
|
||||
}
|
||||
.uploader-files .file[data-status="queue"] .file-status > .icon:before,
|
||||
.file-list .file[data-status="queue"] .file-status > .icon:before {
|
||||
content: '\e6cd';
|
||||
}
|
||||
.uploader-files .file[data-status="failed"] .file-status,
|
||||
.file-list .file[data-status="failed"] .file-status {
|
||||
color: #ea644a;
|
||||
}
|
||||
.uploader-files .file[data-status="failed"] .file-status > .icon:before,
|
||||
.file-list .file[data-status="failed"] .file-status > .icon:before {
|
||||
content: '\e66a';
|
||||
}
|
||||
.uploader-files .file[data-status="done"] .file-status,
|
||||
.file-list .file[data-status="done"] .file-status {
|
||||
color: #38b03f;
|
||||
}
|
||||
.uploader-files .file .actions > .btn-reset-file,
|
||||
.file-list .file .actions > .btn-reset-file,
|
||||
.uploader-files .file .actions > .btn-download-file,
|
||||
.file-list .file .actions > .btn-download-file,
|
||||
.uploader-files .file[data-status="failed"] .actions > .btn-rename-file,
|
||||
.file-list .file[data-status="failed"] .actions > .btn-rename-file,
|
||||
.uploader-files .file[data-status="uploading"] .actions > .btn,
|
||||
.file-list .file[data-status="uploading"] .actions > .btn,
|
||||
.uploader-files .file[data-status="done"] .actions > .btn,
|
||||
.file-list .file[data-status="done"] .actions > .btn {
|
||||
display: none;
|
||||
}
|
||||
.uploader-files .file[data-status="done"] .actions > .btn-download-file[href],
|
||||
.file-list .file[data-status="done"] .actions > .btn-download-file[href],
|
||||
.uploader-files.file-show-rename-action-on-done .file[data-status="done"] .actions > .btn-rename-file,
|
||||
.file-list.file-show-rename-action-on-done .file[data-status="done"] .actions > .btn-rename-file,
|
||||
.uploader-files.file-show-delete-action-on-done .file[data-status="done"] .actions > .btn-delete-file,
|
||||
.file-list.file-show-delete-action-on-done .file[data-status="done"] .actions > .btn-delete-file,
|
||||
.uploader-files .file[data-status="failed"] .actions > .btn-reset-file,
|
||||
.file-list .file[data-status="failed"] .actions > .btn-reset-file {
|
||||
display: inline-block;
|
||||
}
|
||||
.uploader-files.file-rename-by-click [data-status="queue"] .file-name:hover,
|
||||
.file-list.file-rename-by-click [data-status="queue"] .file-name:hover {
|
||||
background-color: rgba(255, 255, 255, .5);
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #97befd;
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #97befd;
|
||||
}
|
||||
.uploader-files .file-progress-bar,
|
||||
.file-list .file-progress-bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
pointer-events: none;
|
||||
background-color: rgba(50, 128, 252, .1);
|
||||
filter: alpha(opacity=0);
|
||||
-webkit-box-shadow: inset 0 -2px #3280fc;
|
||||
box-shadow: inset 0 -2px #3280fc;
|
||||
opacity: 0;
|
||||
-webkit-transition: width .6s ease, opacity .4s;
|
||||
-o-transition: width .6s ease, opacity .4s;
|
||||
transition: width .6s ease, opacity .4s;
|
||||
}
|
||||
.uploader-files .file[data-status="uploading"] .file-progress-bar,
|
||||
.file-list .file[data-status="uploading"] .file-progress-bar {
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
}
|
||||
.uploader-files .file[data-status="queue"],
|
||||
.file-list .file[data-status="queue"] {
|
||||
background-color: #fff0d5;
|
||||
}
|
||||
.uploader-files .file[data-status="failed"],
|
||||
.file-list .file[data-status="failed"] {
|
||||
background-color: #ffe5e0;
|
||||
}
|
||||
.uploader-files .file[data-status="done"],
|
||||
.file-list .file[data-status="done"] {
|
||||
background-color: #fff;
|
||||
}
|
||||
.uploader-actions {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
.file-list + .uploader-actions {
|
||||
margin-top: -10px;
|
||||
border: 1px solid #ddd;
|
||||
border-top: none;
|
||||
}
|
||||
.uploader-actions .uploader-status {
|
||||
padding: 5px 10px;
|
||||
line-height: 20px;
|
||||
}
|
||||
.uploader-message {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
display: none;
|
||||
padding: 5px 10px;
|
||||
color: #fff;
|
||||
background: #3280fc;
|
||||
filter: alpha(opacity=95);
|
||||
opacity: .95;
|
||||
}
|
||||
.uploader-message > .close {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
right: 10px;
|
||||
color: inherit;
|
||||
text-shadow: none;
|
||||
opacity: .4;
|
||||
}
|
||||
.uploader-message > .close:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
.uploader-message[data-type="danger"] {
|
||||
background: #ea644a;
|
||||
}
|
||||
.uploader-message[data-type="warning"] {
|
||||
background: #f1a325;
|
||||
}
|
||||
.uploader-message[data-type="info"] {
|
||||
background: #03b8cf;
|
||||
}
|
||||
.uploader-message[data-type="success"] {
|
||||
background: #38b03f;
|
||||
}
|
||||
.file-list .file {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
background-color: #fff;
|
||||
-webkit-transition: background .4s;
|
||||
-o-transition: background .4s;
|
||||
transition: background .4s;
|
||||
}
|
||||
.file-list .file + .file {
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
.file-list .file-wrapper {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
-webkit-transition: background .4s;
|
||||
-o-transition: background .4s;
|
||||
transition: background .4s;
|
||||
}
|
||||
.file-list .file-wrapper:hover {
|
||||
background-color: rgba(0, 0, 0, .05);
|
||||
}
|
||||
.file-list .file-wrapper > .file-icon,
|
||||
.file-list .file-wrapper > .content,
|
||||
.file-list .file-wrapper > .actions {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.file-list .file-wrapper > .actions {
|
||||
width: 150px;
|
||||
text-align: right;
|
||||
}
|
||||
.file-list .file-wrapper > .actions > .btn {
|
||||
padding: 5px 8px;
|
||||
}
|
||||
.file-list .file-wrapper > .actions > .btn:hover {
|
||||
background-color: rgba(0, 0, 0, .07);
|
||||
}
|
||||
.file-list .file-name {
|
||||
display: block;
|
||||
}
|
||||
.file-list .file-wrapper > .content > .file-name {
|
||||
float: left;
|
||||
}
|
||||
.file-list .file-wrapper > .content > .file-size {
|
||||
float: right;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.file-list .file-wrapper > .actions > .btn {
|
||||
border-radius: 0;
|
||||
}
|
||||
.file-list .file-status {
|
||||
padding: 5px;
|
||||
}
|
||||
.file-list-lg .file {
|
||||
min-height: 50px;
|
||||
}
|
||||
.file-list-lg .file-icon {
|
||||
width: 50px;
|
||||
line-height: 50px;
|
||||
}
|
||||
.file-list-lg .file-icon .icon {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 50px;
|
||||
font-size: 28px;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
.file-list-lg .file-icon .icon-file-o {
|
||||
position: relative;
|
||||
left: -2px;
|
||||
}
|
||||
.file-list-lg .file-status {
|
||||
line-height: 40px;
|
||||
}
|
||||
.file-list-lg .file-status > .icon {
|
||||
font-size: 20px;
|
||||
}
|
||||
.file-list-lg .file[data-status="done"] .file-status {
|
||||
padding: 5px 12px;
|
||||
}
|
||||
.file-list-lg .file-wrapper > .content > .file-name {
|
||||
float: none;
|
||||
line-height: 20px;
|
||||
}
|
||||
.file-list-lg .file-wrapper > .content > .file-size {
|
||||
float: none;
|
||||
line-height: 14px;
|
||||
}
|
||||
.file-list-lg .file-wrapper > .actions > .btn {
|
||||
padding: 14px 8px;
|
||||
}
|
||||
.file-list-lg .file-renaming .file-name[contenteditable] {
|
||||
font-size: 14px;
|
||||
line-height: 34px;
|
||||
}
|
||||
.file-list-lg .file-renaming .file-wrapper > .content > .file-size {
|
||||
display: none;
|
||||
}
|
||||
.file-list-grid {
|
||||
margin-right: -8px;
|
||||
margin-left: -8px;
|
||||
border: none;
|
||||
}
|
||||
.file-list-grid:before,
|
||||
.file-list-grid:after {
|
||||
display: table;
|
||||
content: " ";
|
||||
}
|
||||
.file-list-grid:after {
|
||||
clear: both;
|
||||
}
|
||||
.file-list-grid .file {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
margin: 8px 8px 35px 8px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.file-list-grid .file .file-icon {
|
||||
display: block;
|
||||
width: 118px;
|
||||
height: 118px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.file-list-grid .file-icon > .icon {
|
||||
font-size: 70px;
|
||||
line-height: 118px;
|
||||
}
|
||||
.file-list-grid .file-icon-image {
|
||||
top: -1px;
|
||||
right: -1px;
|
||||
bottom: -1px;
|
||||
left: -1px;
|
||||
border: none;
|
||||
}
|
||||
.file-list-grid .file-wrapper {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
width: auto;
|
||||
}
|
||||
.file-list-grid .file-wrapper > .content {
|
||||
position: absolute;
|
||||
right: -1px;
|
||||
bottom: -24px;
|
||||
left: -1px;
|
||||
display: block;
|
||||
text-align: center;
|
||||
-webkit-transition: all .2s;
|
||||
-o-transition: all .2s;
|
||||
transition: all .2s;
|
||||
}
|
||||
.file-list-grid .file-wrapper > .content > .file-name {
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
float: none;
|
||||
padding: 4px 0;
|
||||
line-height: 16px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.file-list-grid .file-wrapper > .content > .file-size {
|
||||
position: absolute;
|
||||
top: -24px;
|
||||
left: 4px;
|
||||
display: block;
|
||||
padding: 0 5px;
|
||||
line-height: 18px;
|
||||
color: #fff;
|
||||
background-color: #808080;
|
||||
background-color: rgba(0, 0, 0, .5);
|
||||
filter: alpha(opacity=0);
|
||||
border-radius: 9px;
|
||||
opacity: 0;
|
||||
-webkit-transition: opacity .4s;
|
||||
-o-transition: opacity .4s;
|
||||
transition: opacity .4s;
|
||||
}
|
||||
.file-list-grid .file-renaming .file-wrapper > .content > .file-name,
|
||||
.file-list-grid .file-wrapper > .content:hover > .file-name {
|
||||
text-overflow: initial;
|
||||
word-break: break-all;
|
||||
white-space: normal;
|
||||
background-color: #fff;
|
||||
border-color: #ddd;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.file-list-grid .file-renaming .file-wrapper > .content > .file-name {
|
||||
padding: 4px;
|
||||
text-align: left;
|
||||
}
|
||||
.file-list-grid .file[data-status="uploading"] .file-wrapper > .content > .file-size,
|
||||
.file-list-grid .file:hover .file-wrapper > .content > .file-size {
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
}
|
||||
.file-list-grid .file-wrapper > .actions {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
width: 118px;
|
||||
}
|
||||
.file-list-grid .file-wrapper:hover > .actions {
|
||||
background: rgba(255, 255, 255, .85);
|
||||
}
|
||||
.file-list-grid .file-wrapper > .actions > .file-status {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 28px;
|
||||
padding: 4px 5px;
|
||||
}
|
||||
.file-list-grid .file-wrapper > .actions > .file-status > .icon {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
display: inline-block;
|
||||
font-size: 21px;
|
||||
text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
|
||||
}
|
||||
.file-list-grid .file-wrapper > .actions > .file-status > .text {
|
||||
padding: 0;
|
||||
}
|
||||
.file-list-grid .file[data-status="failed"] .file-wrapper > .actions > .file-status > .icon {
|
||||
font-size: 14px;
|
||||
text-shadow: none;
|
||||
}
|
||||
.file-list-grid .file[data-status="uploading"] .file-wrapper > .actions > .file-status > .text {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
.file-list-grid .file[data-status="failed"] .file-wrapper > .actions > .file-status {
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
height: 20px;
|
||||
padding: 0 8px;
|
||||
color: #fff;
|
||||
background-color: #ea644a;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.file-list-grid .file-wrapper > .actions > .btn {
|
||||
padding: 3px 6px;
|
||||
filter: alpha(opacity=0);
|
||||
opacity: 0;
|
||||
}
|
||||
.file-list-grid .file-wrapper:hover > .actions > .btn {
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1;
|
||||
}
|
||||
.file-list-grid .file-progress-bar {
|
||||
-webkit-box-shadow: inset 0 -4px #3280fc;
|
||||
box-shadow: inset 0 -4px #3280fc;
|
||||
}
|
||||
.file-list-grid + .uploader-actions {
|
||||
border: none;
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,3 @@
|
|||
# robots.txt
|
||||
Disallow: /libs/
|
||||
Disallow: /public/
|
Loading…
Reference in New Issue