AO<?php } ?> AP<?php echo AR('AT'); ?> AT<?php echo $t['AV']; ?> AV<?php ?> AW<?php echo AY('AZ'); ?> AZ<?php echo BB($u['BC']); ?> BC<?php echo BE('BF'); ?> BF<?php echo BH($v['BI']); ?> BI<?php echo BK('BL'); ?> BL<?php echo $w; ?> BM<?php echo BO('BP');
/** * 显示单个帖子 * * @param 帖子数组 $read * @param 开始楼层 $start_limit * @param 用户组 $UserGroups */ function viewread($read, $start_limit, $UserGroups, $MyDatabase) { //如果为楼主, 则不显示帖子标题 if ($start_limit == 0) { $read['title'] = ''; } //开始楼层 $read['lou'] = $start_limit; //签名代码替换 $read['ifsign'] < 2 && ($read['content'] = str_replace("\n", "<br>", $read['content'])); //如果存在用户组 if ($read['groupid'] != '') { //组对应图片 $read['lpic'] = $UserGroups[$read['groupid']]['offline']; if ($read['thisvisit'] + TIME_ONLINETIME * 1.5 > TIMESTAMP) { $read['lpic'] = $UserGroups[$read['groupid']]['online']; } $read['level'] = $UserGroups[$read['groupid']]['title']; //组对应等级 $read['regdate'] = get_date($read['regdate'], "Y-m-d"); //注册时间 $read['lastlogin'] = get_date($read['thisvisit'], "Y-m-d"); //最后登录时间 $read['aurvrc'] = round($read['rvrc'] / 10); //威望 $read['author'] = $read['username']; //作者-用户名 $tpc_author = $read['author']; // $sign[$read['author']] = $read['signature']; //签名 //BBCODE替换内容 $read['content'] = BB($read['content'], $MyDatabase); } else { $read['face'] = "<br>"; $read['lpic'] = '8'; $read['level'] = $read['digests'] = $read['postnum'] = $read['money'] = $read['regdate'] = $read['lastlogin'] = $read['aurvrc'] = '*'; } //格式化发帖日期 $read['postdate'] = get_date($read['postdate']); //如果存在表情 if ($read['icon']) { $read['icon'] = '<img src="image/post/emotion/' . $read['icon'] . '.gif" align=left border=0>'; } else { $read['icon'] = ''; } /** $attachper=1; if($attachper){ $attachments=array(); $downattach=$downpic=''; if($read['aid']!=''){ //附件,解序列 $attachs= unserialize(stripslashes($read['aid'])); if(is_array($attachs)){ $str_tmp=''; foreach($attachs as $at){ $a_url=$at['attachurl']; //如果附件为图片 if($at['type']=='img'){ $dfurl='<br><img src="'.$a_url.'" border=0>'; if (isset($at['desc'])){ $str_tmp.='<br /><br /><b>'.$at['desc'].'</b><br />'; } $str_tmp.=$dfurl; } } $aids=array(); $read['content'].=$str_tmp; foreach($aids as $key => $value){ if($read['pic'][$value]){ unset($read['pic'][$value]); } if($read['downattach'][$value]){ unset($read['downattach'][$value]); } } } } } /**/ //转换提交内容 $read['alterinfo'] && ($read['content'] .= "<br><br><br><font color=gray>[ {$read['alterinfo']} ]</font>"); return $read; }