You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
v2.2.0
- 增加根目录静态属性 - 增加浏览页面懒加载 - 增加浏览页面启用选定日期查看图片 - 增加版本检测 ***每月10日06点和25日01点检测Github是否更新*** - 增加上传压缩 ***此压缩有可能使图片变大!特别是小图片 也有一定概率改变图片方向*** - 增加批量压缩目录 ***TinyImag或本机压缩,本机压缩出现的问题*** - 修复title - 修复二级目录安装 - 修复对PHP5.6的兼容 ***建议使用php7.0及以上!***
This commit is contained in:
25
index.php
25
index.php
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
require_once './libs/header.php';
|
||||
require_once 'libs/header.php';
|
||||
|
||||
// 公告
|
||||
if (isset($config['tips'])) {
|
||||
echo '<ul style="list-style: none;margin:1px 1px 30px 1px;"><li class="icon icon-dot-circle text-muted"> ' . $config['tips'] . '</li></ul>';
|
||||
}
|
||||
|
||||
// 检查登录
|
||||
mustLogin();
|
||||
?>
|
||||
@@ -46,7 +45,7 @@ mustLogin();
|
||||
<a href="#" data-target="#tab2Content5" data-toggle="tab">删除</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" align="right">
|
||||
<div class="tab-content" style="text-align:right">
|
||||
<div class="tab-pane fade active in" id="tab2Content1">
|
||||
<textarea class="form-control" style="text-align: center;min-height: 100px;" id="links" readonly></textarea>
|
||||
<button class="btn" style="margin-top:10px;" onclick="location.reload()"><i class="icon icon-repeat"></i> 刷新</button>
|
||||
@@ -94,25 +93,19 @@ mustLogin();
|
||||
browseByClickList: true,
|
||||
// 上传格式过滤
|
||||
filters: { // 只允许上传图片或图标(.ico)
|
||||
mime_types: [{
|
||||
title: '图片',
|
||||
extensions: <?php echo "'";
|
||||
foreach ($config['extensions'] as $extensions) {
|
||||
echo $extensions . ',';
|
||||
}
|
||||
echo "'"; ?>,
|
||||
}, {
|
||||
title: '图标',
|
||||
extensions: 'ico'
|
||||
}],
|
||||
mime_types: [
|
||||
{title: '图片',extensions: <?php echo $config['extensions']; ?>},
|
||||
{title: '图标',extensions: 'ico'}
|
||||
],
|
||||
prevent_duplicates: true
|
||||
|
||||
},
|
||||
// 限制文件上传数目
|
||||
limitFilesCount: <?php echo $config['maxUploadFiles']; ?>,
|
||||
// 自动上传失败的文件
|
||||
autoResetFails: true,
|
||||
<?php imgRatio(); ?>
|
||||
responseHandler: function(responseObject, file) {
|
||||
responseHandler : function(responseObject, file) {
|
||||
var obj = JSON.parse(responseObject.response); //由JSON字符串转换为JSON对象
|
||||
console.log(responseObject.response); // 输出log
|
||||
if (obj.result === 'success') {
|
||||
@@ -140,4 +133,4 @@ mustLogin();
|
||||
</script>
|
||||
<?php
|
||||
checkEnv($config['checkEnv']); // 环境检测
|
||||
require_once __DIR__ . '/libs/footer.php';
|
||||
require_once APP_ROOT . '/libs/footer.php';
|
||||
|
||||
Reference in New Issue
Block a user