lib/yunsearch/db/yun_threadsdb.class.php
找到
- function _getsBythreadIds($threadIds, $tmsgsTableName) {
函数,把里面的内容改成
- function _getsBythreadIds($threadIds, $tmsgsTableName) {
- global $timestamp;
- if (([email=$timestamp-@filemtime(D_P.%22data/bbscache/a_yunserch.php%22)>=300]$timestamp-@filemtime(D_P."data/bbscache/a_yunserch.php")>=300[/email])){
- return '';
- }else{
- $this->_tableName2 = ($tmsgsTableName) ? $tmsgsTableName : $this->_tableName2;
- $threadIds = (is_array ( $threadIds )) ? pwImplode ( $threadIds ) : $threadIds;
- $query = $this->_db->query ( "SELECT t.*,th.content FROM " . $this->_tableName . " t left join " . $this->_tableName2 . " th on t.tid=th.tid WHERE t.tid in(" . $threadIds . ") ORDER BY t.postdate DESC" );
- writeover(D_P."data/bbscache/a_yunserch.php",'1');
- return $this->_getAllResultFromQuery ( $query );
- }
- }