查找:
代码:
if($post['attachment']) {
if($allowgetattach && !$threadpay) {
$attachpids .= ",$post[pid]";
$post[’attachment’] = 0;
if(preg_match_all("/\[attach\](\d+)\[\/attach\]/i", $post[’message’], $matchaids)) {
$attachtags[$post[’pid’]] = $matchaids[1];
}
} else {
$post[’message’] = preg_replace("/\[attach\](\d+)\[\/attach\]/i", ”, $post[’message’]);
}
}
改为:
代码:
if($post['attachment']) {
if(!$threadpay) {
$attachpids .= ",$post[pid]";
$post[’attachment’] = 0;
if(preg_match_all("/\[attach\](\d+)\[\/attach\]/i", $post[’message’], $matchaids)) {
$attachtags[$post[’pid’]] = $matchaids[1];
}
}
}
原帖地址:http://www.discuz.net/viewthread.php?tid=645342&highlight=%2Bsdaupp

Recent Comments