You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-16 11:53:58 +08:00
兼容PHP5.6
This commit is contained in:
@@ -134,11 +134,6 @@ if ($handle->uploaded) {
|
||||
// 后续处理地址
|
||||
$processUrl = $config['domain'] . $pathIMG;
|
||||
|
||||
/**
|
||||
* 以下为控制开启源图保护或者返回值隐藏config文件中的path目录所更改
|
||||
* 2022年5月1日
|
||||
*/
|
||||
|
||||
// 隐藏config文件中的path目录,需要搭配网站设置
|
||||
if ($config['hide_path'] == 1) {
|
||||
$imageUrl = str_replace($config['path'], '/', $imageUrl);
|
||||
@@ -150,14 +145,9 @@ if ($handle->uploaded) {
|
||||
$imageUrl = $config['domain'] . '/application/hide.php?key=' . urlHash($pathIMG, 0, crc32($config['hide_key']));
|
||||
}
|
||||
|
||||
// 关闭删除链接
|
||||
// 删除文件链接
|
||||
if ($config['show_user_hash_del']) {
|
||||
// 判断PHP版本启用删除
|
||||
if (PHP_VERSION >= '7') {
|
||||
$delUrl = $config['domain'] . '/application/del.php?hash=' . urlHash($pathIMG, 0);
|
||||
} else {
|
||||
$delUrl = "Sever PHP version lower 7.0";
|
||||
}
|
||||
$delUrl = $config['domain'] . '/application/del.php?hash=' . urlHash($pathIMG, 0);
|
||||
} else {
|
||||
$delUrl = "Admin closed user delete";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user