//最新回复// //论坛精华// $hack_cut_str =34; //修改标题显示字数
$hack_cut_strauthor = 9;
$new_digest_threadlist = array();
$dthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threadsmod tm, {$tablepre}threads t, {$tablepre}forums f WHERE (tm.action='DIG') OR (tm.action='EDI' AND tm.expiration<'$timestamp') AND tm.status='1' AND t.fid<>'$fid' AND f.fid NOT IN (1,2) AND f.fid=t.fid ORDER BY tm.dateline DESC LIMIT 0, 10"); //修改显示帖子条数
while($dthread = $db->fetch_array($query)) {
$dthread['forumname'] = $dthread['name'];
$dthread['view_subject'] = cutstr($dthread['subject'],$hack_cut_str);
$dthread['view_author'] = cutstr($dthread['author'],$hack_cut_strauthor);
$dthread['date']= gmdate("$dateformat $timeformat", $dthread['dateline'] + $timeoffset * 3600);
$dthread['lastreplytime']= gmdate("$dateformat $timeformat", $dthread[lastpost] + ($timeoffset * 3600));
if($dthread['highlight']) {
$string = sprintf('%02d', $dthread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$dthread['highlight'] = 'style="';
$dthread['highlight'] .= $stylestr[0] ? 'font-w1eight: bold;' : '';
$dthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
$dthread['highlight'] .= $stylestr[2] ? 'text-d1ecoration: underline;' : '';
$dthread['highlight'] .= $string[1] ? 'color: '.$c1olorarray[$string[1]] : '';
$dthread['highlight'] .= '"';
} else {
$dthread['highlight'] = '';
}
$new_digest_threadlist[] = $dthread;
}
//论坛精华//
这个是我修改的。。。。似乎传完这个index.php。。我的空间的php就打不开了。。。晕死。所以至今还没看到效果。。该不会是这样改后导致数据库挂了? |