You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
changes
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace Verot\Upload;
|
||||
|
||||
require_once __DIR__ . '/../application/function.php';
|
||||
require_once APP_ROOT . '/application/class.upload.php';
|
||||
require_once __DIR__ . '/../app/function.php';
|
||||
require_once APP_ROOT . '/app/class.upload.php';
|
||||
require_once APP_ROOT . '/config/api_key.php';
|
||||
|
||||
// 允许跨域 https://stackoverflow.com/questions/8719276/cross-origin-request-headerscors-with-php-headers
|
||||
@@ -141,18 +141,18 @@ if ($handle->uploaded) {
|
||||
|
||||
// 源图保护 key值是由crc32加密的hide_key
|
||||
if ($config['hide'] == 1) {
|
||||
$imageUrl = $config['domain'] . '/application/hide.php?key=' . urlHash($pathIMG, 0, crc32($config['hide_key']));
|
||||
$imageUrl = $config['domain'] . '/app/hide.php?key=' . urlHash($pathIMG, 0, crc32($config['hide_key']));
|
||||
}
|
||||
|
||||
// 删除文件链接
|
||||
if ($config['show_user_hash_del']) {
|
||||
$delUrl = $config['domain'] . '/application/del.php?hash=' . urlHash($pathIMG, 0);
|
||||
$delUrl = $config['domain'] . '/app/del.php?hash=' . urlHash($pathIMG, 0);
|
||||
} else {
|
||||
$delUrl = "Admin closed user delete";
|
||||
}
|
||||
|
||||
// 当设置访问生成缩略图时自动生成 2022-12-30 修正 2023-01-30
|
||||
$handleThumb = $config['domain'] . '/application/thumb.php?img=' . $pathIMG;
|
||||
$handleThumb = $config['domain'] . '/app/thumb.php?img=' . $pathIMG;
|
||||
if ($config['thumbnail'] == 2) {
|
||||
// 自定义缩略图长宽
|
||||
$handle->image_resize = true;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
* 2022年2月22日11:41:38
|
||||
* @author Icret
|
||||
*/
|
||||
require_once '../application/function.php';
|
||||
require_once '../application/chart.php';
|
||||
require_once '../app/function.php';
|
||||
require_once '../app/chart.php';
|
||||
|
||||
// 检查是否开启查询
|
||||
if ($config['public'] == 0) die('开放数据接口已关闭!');
|
||||
|
||||
Reference in New Issue
Block a user