| @@ -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' "); | $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 (empty($tinfos)) die( DedeAlert("栏目信息获取失败,请检查是否存在当前栏目", ALERT_DANGER)); | ||||
| if ($tinfos['issystem'] == -1) { | if ($tinfos['issystem'] == -1) { | ||||
| $nativeplace = ((empty($nativeplace) || !is_numeric($nativeplace)) ? 0 : $nativeplace); | $nativeplace = ((empty($nativeplace) || !is_numeric($nativeplace)) ? 0 : $nativeplace); | ||||
| $infotype = ((empty($infotype) || !is_numeric($infotype)) ? 0 : $infotype); | $infotype = ((empty($infotype) || !is_numeric($infotype)) ? 0 : $infotype); | ||||
| @@ -702,10 +702,8 @@ function DedeSearchAPIURL($action, $parms=array()) | |||||
| //拼接完整URL | //拼接完整URL | ||||
| $finalQueryString = http_build_query($parms); | $finalQueryString = http_build_query($parms); | ||||
| $finalUrl = $baseUrl . '?' . $finalQueryString; | $finalUrl = $baseUrl . '?' . $finalQueryString; | ||||
| return $finalUrl; | return $finalUrl; | ||||
| } | } | ||||
| function ConvertMysqlToSqlite($mysqlQuery) { | function ConvertMysqlToSqlite($mysqlQuery) { | ||||
| //移除CHARACTER SET和COLLATE | //移除CHARACTER SET和COLLATE | ||||
| $query = preg_replace('/character set \S+/i', '', $mysqlQuery); | $query = preg_replace('/character set \S+/i', '', $mysqlQuery); | ||||
| @@ -787,7 +785,6 @@ function ConvertMysqlToSqlite($mysqlQuery) { | |||||
| $query = str_ireplace('rand', 'RANDOM', $query); | $query = str_ireplace('rand', 'RANDOM', $query); | ||||
| return trim($query); | return trim($query); | ||||
| } | } | ||||
| function ThemeInclude($path) | function ThemeInclude($path) | ||||
| { | { | ||||
| global $cfg_basedir, $cfg_templets_dir, $cfg_df_style; | global $cfg_basedir, $cfg_templets_dir, $cfg_df_style; | ||||
| @@ -9,7 +9,5 @@ if (!defined('DEDEINC')) exit ('dedebiz'); | |||||
| * @license GNU GPL v2 (https://www.dedebiz.com/license) | * @license GNU GPL v2 (https://www.dedebiz.com/license) | ||||
| * @link https://www.dedebiz.com | * @link https://www.dedebiz.com | ||||
| */ | */ | ||||
| // 当前文件用于用户进行自定义扩展函数,官方开发不要动这个文件 | |||||
| //当前文件用于用户进行自定义扩展函数,官方开发不要动这个文件 | |||||
| ?> | ?> | ||||
| @@ -59,7 +59,7 @@ function ch_softlinks_all($fvalue, &$ctag, &$refObj, &$row) | |||||
| //分析本地链接 | //分析本地链接 | ||||
| if (!isset($firstLink) && $islocal == 1) $firstLink = $link; | if (!isset($firstLink) && $islocal == 1) $firstLink = $link; | ||||
| if ($islocal == 1 && $row['islocal'] != 1) continue; | 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') { | if (!preg_match("#^(http|https):\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link) && $cfg_multi_site == 'Y') { | ||||
| $link = $cfg_mainsite.$link; | $link = $cfg_mainsite.$link; | ||||
| } | } | ||||