diff --git a/README.md b/README.md index 24ff6ce..ce01806 100755 --- a/README.md +++ b/README.md @@ -25,18 +25,18 @@ - [x] 支持仅登录后上传 - [x] 支持设置图片质量 -- [x] 支持上传图片转换为指定格式 - [x] 支持文字/图片水印 - [x] 支持设置图片指定宽/高 +- [x] 支持上传图片转换为指定格式 - [x] 支持限制最低宽度/高度上传 -- [x] 支持设置广告 -- [x] 支持自定义 -- [x] 支持图片监黄 - [x] 支持API - [x] 在线管理图片 - [x] 支持网站统计 -- [x] 支持上次黑白名单 -- [x] 更多支持··· +- [x] 支持设置广告 +- [x] 支持图片监黄 +- [x] 支持自定义代码 +- [x] 支持上传IP黑白名单 +- [x] 更多支持请安装尝试··· #### 界面演示 @@ -87,7 +87,8 @@ Deny from all
点击查看2.0版更新日志 * 2022-1-19 v2.4.6 beta - 视图优化 +- 视图优化 +- 删除重复内容 - 增加图片信息页面 - 增加上传黑/白名单 - 修复因关闭上传日志而导致的无法鉴黄和后端压缩图片 diff --git a/admin/admin.inc.php b/admin/admin.inc.php index 91ff164..bb4c170 100755 --- a/admin/admin.inc.php +++ b/admin/admin.inc.php @@ -712,7 +712,8 @@ if (isset($_GET['reimg'])) { startView: 2, minView: 2, forceParse: 0, - format: "yyyy/mm/dd/" + format: "yyyy/mm/dd/", + endDate: new Date() // 只能选当前日期之前 }); // 更改网页标题 diff --git a/application/function.php b/application/function.php index 9046595..4ac4d92 100755 --- a/application/function.php +++ b/application/function.php @@ -470,30 +470,35 @@ function getVersion() global $config; if ($config['checkEnv']) { + require_once APP_ROOT . '/application/class.version.php'; - // 获取版本地址 - $url = "https://api.github.com/repositories/188228357/releases/latest"; - $getVersion = new getVerson($url); - $now = date('dH'); // 当前日期时间 - $get_ver_day = array('1006', '2501'); // 检测日期的时间 + if (file_get_contents('https://github.com/icret/EasyImages2.0')) { + // 判断服务器是否可以访问GitHub + // 获取版本地址 + $url = "https://api.github.com/repositories/188228357/releases/latest"; + $getVersion = new getVerson($url); - foreach ($get_ver_day as $day) { - if (empty($getVersion->readJson())) { // 不存在就下载 - $getVersion->downJson(); - } else if ($day == $now) { // 是否在需要更新的日期 - $getVersion->downJson(); - /* + $now = date('dH'); // 当前日期时间 + $get_ver_day = array('1006', '2501'); // 检测日期的时间 + + foreach ($get_ver_day as $day) { + if (empty($getVersion->readJson())) { // 不存在就下载 + $getVersion->downJson(); + } else if ($day == $now) { // 是否在需要更新的日期 + $getVersion->downJson(); + /* } elseif ($config['version'] == $getVersion->readJson()) { // 版本相同不提示 return null; */ - } else { // 返回版本 - return $getVersion->readJson(); + } else { // 返回版本 + return $getVersion->readJson(); + } } } - } else { - return null; } + + return null; } // 删除非空目录 diff --git a/config/config.php b/config/config.php index 7945494..745f20e 100755 --- a/config/config.php +++ b/config/config.php @@ -37,7 +37,7 @@ $config=Array 'imgRatio_crop'=>0, 'imgRatio_preserve_headers'=>1, 'static_cdn'=>0, - 'theme'=>'red', + 'theme'=>'default', 'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0', 'TinyImag_key'=>'', 'moderatecontent_key'=>'', @@ -77,5 +77,5 @@ $config=Array 'check_ip_model'=>0, 'check_ip_list'=>'', 'version'=>'2.4.6 beta', - 'form'=>'2022-01-20 02:15:29' + 'form'=>'2022-01-20 02:21:08' ); \ No newline at end of file