while($r=$empire->fetch($sql))
{
if(empty($r[username]))
{$r[username]=$fun_r['nomember'];}
$r['saytext']=stripSlashes($r['saytext']);
//ip
$ipr=explode(".",$r[sayip]);
$r[sayip]="";
$ipnum=count($ipr);
for($i=0;$i<$ipnum;$i++)
{
if($i!=0)
{$d=".";}
if($i==$ipnum-1)
{
$ipr[$i]="*";
}
$r[sayip].=$d.$ipr[$i];
}
//副表
$fr=$empire->fetch1("select * from {$dbtbpre}enewspl_data_".$r[stb]." where plid='$r[plid]'");
$saytext=RepPltextFace(stripSlashes($fr['saytext']));//替换表情
$includelink=" onclick=\"javascript:document.saypl.saytext.value+='[quote]".$r[plid]."[/quote]';document.saypl.repid.value='".$r[plid]."';document.saypl.saytext.focus();\"";
?>
}
db_close();
$empire=null;
?>
|