复制内容到剪贴板
代码:
} elseif(submitcheck('movedthreadsubmit', 1)) {
if(!$current) {
$current = 0;
}
$pertask = intval($pertask);
$current = intval($current);
$next = $current + $pertask;
$nextlink = "admincp.php?action=counter¤t=$next&pertask=$pertask&movedthreadsubmit=yes";
$processed = 0;
$tids = 0;
$query = $db->query("SELECT t1.tid, t2.tid AS threadexists FROM {$tablepre}threads t1
LEFT JOIN {$tablepre}threads t2 ON t2.tid=t1.closed AND t2.displayorder>='0'
WHERE t1.closed>'1' LIMIT $current, $pertask");
while($thread = $db->fetch_array($query)) {
$processed = 1;
if($thread['threadexists']) {
$tids .= ','.$thread['tid'];
}
}
if($tids) {
$db->query("DELETE FROM {$tablepre}threads WHERE tid IN ($tids)", 'UNBUFFERED');
}
if($processed) {
cpmsg("$lang[counter_moved_thread]: $lang[counter_processing]", $nextlink);
} else {
cpmsg('counter_moved_thread_succeed');
}我也只会找出这些了