$conditions = "WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid NOT IN ($fids) AND t.replies !=0 AND t.displayorder>='0' ORDER BY t.lastpost DESC LIMIT 0, 11";
break;
case 'todaynewmems':
$table = 'members';
$cols = 'COUNT(*)';
$datecut = time() - (3600 * 24);
$conditions = "WHERE regdate>='$datecut'";
break;
case 'todayvisit':
$table = 'members';
$cols = "COUNT(*)";
$datecut = time() - (3600 * 24);
$conditions = "WHERE lastactivity>='$datecut' ORDER BY lastvisit DESC";
$db->query("DELETE FROM {$tablepre}polls WHERE tid='$tid'";
$db->query("DELETE FROM {$tablepre}polloptions WHERE tid='$tid'";
複製代碼
下加
updatecache('newtopic');
複製代碼
找
$db->query("UPDATE {$tablepre}threads SET replies=replies-'1', attachment='$thread_attachment', lastposter='$lastpost[author]', lastpost='$lastpost[dateline]' WHERE tid='$tid'", 'UNBUFFERED');