From 2dec9fd3bc33efa457e0b053fcbeebfa93b15b9a Mon Sep 17 00:00:00 2001 From: xushubieli Date: Fri, 21 Oct 2022 11:36:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=A9=E7=95=A5=E5=9B=BE?= =?UTF-8?q?=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/inc/inc_archives_functions.php | 4 ++-- src/user/inc/inc_archives_functions.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/admin/inc/inc_archives_functions.php b/src/admin/inc/inc_archives_functions.php index ac127bfa..9ca98955 100644 --- a/src/admin/inc/inc_archives_functions.php +++ b/src/admin/inc/inc_archives_functions.php @@ -403,7 +403,7 @@ function GetDDImage($litpic, $picname, $isremote) } else { if ($litpic == 'ddfirst' && !preg_match("#^http:\/\/#i", $picname)) { $oldpic = $cfg_basedir.$picname; - $litpic = str_replace('.', '-lp.', $picname); + $litpic = str_replace('.', '-ty.', $picname); if ($GLOBALS['cfg_ddimg_full'] == 'Y') @ImageResizeNew($oldpic, $cfg_ddimg_width, $cfg_ddimg_height, $cfg_basedir.$litpic); else @ImageResize($oldpic, $cfg_ddimg_width, $cfg_ddimg_height, $cfg_basedir.$litpic); if (!is_file($cfg_basedir.$litpic)) $litpic = ''; @@ -642,7 +642,7 @@ function GetImageMapDD($filename, $maxwidth) { global $cuserLogin, $dsql, $cfg_ddimg_height, $cfg_ddimg_full; $ddn = substr($filename, -3); - $ddpicok = preg_replace("#\.".$ddn."$#", "-lp.".$ddn, $filename); + $ddpicok = preg_replace("#\.".$ddn."$#", "-ty.".$ddn, $filename); $toFile = $GLOBALS['cfg_basedir'].$ddpicok; if ($cfg_ddimg_full == 'Y') ImageResizeNew($GLOBALS['cfg_basedir'].$filename, $maxwidth, $cfg_ddimg_height, $toFile); else ImageResize($GLOBALS['cfg_basedir'].$filename, $maxwidth, $cfg_ddimg_height, $toFile); diff --git a/src/user/inc/inc_archives_functions.php b/src/user/inc/inc_archives_functions.php index bf1e2696..4c7bb8be 100755 --- a/src/user/inc/inc_archives_functions.php +++ b/src/user/inc/inc_archives_functions.php @@ -95,7 +95,7 @@ function GetImageMapDD($filename, $ddm, $oldname = '') $ddpicok = $oldname; } else { $ddn = substr($filename, -3); - $ddpicok = preg_replace("#\.".$ddn."$#", "-lp.".$ddn, $filename); + $ddpicok = preg_replace("#\.".$ddn."$#", "-ty.".$ddn, $filename); } $toFile = $GLOBALS['cfg_basedir'].$ddpicok; ImageResize($GLOBALS['cfg_basedir'].$filename, $ddm, 300, $toFile);