From 05c16d208bfaebf2909a76a606763a9ef3864e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Mon, 31 Mar 2025 23:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=8C=96=E6=B8=85=E9=99=A4=E6=AE=B5?= =?UTF-8?q?=E8=90=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/list.php | 1 - src/system/common.func.php | 3 --- src/system/extend.func.php | 4 +--- src/system/taglib/channel/softlinks.lib.php | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/apps/list.php b/src/apps/list.php index 47cdca69..d1627905 100755 --- a/src/apps/list.php +++ b/src/apps/list.php @@ -24,7 +24,6 @@ if (!empty($channelid) && empty($tid)) { $tinfos = $dsql->GetOne("SELECT ch.issystem FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$tid' "); } if (empty($tinfos)) die( DedeAlert("栏目信息获取失败,请检查是否存在当前栏目", ALERT_DANGER)); - if ($tinfos['issystem'] == -1) { $nativeplace = ((empty($nativeplace) || !is_numeric($nativeplace)) ? 0 : $nativeplace); $infotype = ((empty($infotype) || !is_numeric($infotype)) ? 0 : $infotype); diff --git a/src/system/common.func.php b/src/system/common.func.php index d75b2a5b..5bbab783 100755 --- a/src/system/common.func.php +++ b/src/system/common.func.php @@ -702,10 +702,8 @@ function DedeSearchAPIURL($action, $parms=array()) //拼接完整URL $finalQueryString = http_build_query($parms); $finalUrl = $baseUrl . '?' . $finalQueryString; - return $finalUrl; } - function ConvertMysqlToSqlite($mysqlQuery) { //移除CHARACTER SET和COLLATE $query = preg_replace('/character set \S+/i', '', $mysqlQuery); @@ -787,7 +785,6 @@ function ConvertMysqlToSqlite($mysqlQuery) { $query = str_ireplace('rand', 'RANDOM', $query); return trim($query); } - function ThemeInclude($path) { global $cfg_basedir, $cfg_templets_dir, $cfg_df_style; diff --git a/src/system/extend.func.php b/src/system/extend.func.php index 9a804334..47525240 100755 --- a/src/system/extend.func.php +++ b/src/system/extend.func.php @@ -9,7 +9,5 @@ if (!defined('DEDEINC')) exit ('dedebiz'); * @license GNU GPL v2 (https://www.dedebiz.com/license) * @link https://www.dedebiz.com */ -// 当前文件用于用户进行自定义扩展函数,官方开发不要动这个文件 - - +//当前文件用于用户进行自定义扩展函数,官方开发不要动这个文件 ?> \ No newline at end of file diff --git a/src/system/taglib/channel/softlinks.lib.php b/src/system/taglib/channel/softlinks.lib.php index a048d8b9..721ebecf 100755 --- a/src/system/taglib/channel/softlinks.lib.php +++ b/src/system/taglib/channel/softlinks.lib.php @@ -59,7 +59,7 @@ function ch_softlinks_all($fvalue, &$ctag, &$refObj, &$row) //分析本地链接 if (!isset($firstLink) && $islocal == 1) $firstLink = $link; if ($islocal == 1 && $row['islocal'] != 1) continue; - //支持http,迅雷下载,ftp,flashget + //支持http、迅雷下载、ftp、flashget if (!preg_match("#^(http|https):\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link) && $cfg_multi_site == 'Y') { $link = $cfg_mainsite.$link; }