本帖有隐藏内容,请您登录后查看。
';
$preg_login = preg_match_all('/\[login\](.*?)\[\/login\]/i',$first['message_fmt'],$array);
if($preg_login){
for($i=0;$i".$array[1][$i]."";
if($user){
$first['message_fmt'] = str_replace($a,$b,$first['message_fmt']);
}else{
$first['message_fmt'] = str_replace($a,$html_login,$first['message_fmt']);
}
}
}
$preg_reply = preg_match_all('/\[reply\](.*?)\[\/reply\]/i',$first['message_fmt'],$array);
$html_reply = '本帖有隐藏内容,请您回复后查看。
';
$is_reply = db_find_one('post',array('uid'=>$uid,'tid'=>$tid));
if($preg_reply){
for($i=0;$i".$array[1][$i]."";
if($is_reply){
$first['message_fmt'] = str_replace($a,$b,$first['message_fmt']);
}else{
$first['message_fmt'] = str_replace($a,$html_reply,$first['message_fmt']);
}
}
}
?>