显示主题内容页面。
狐网论坛 include "linkfox.inc.php";
include "info.inc.php";
?>
$query="select * from foxbbs where"; //这个ID是从上一页面也就是FOXBBS.PHP里传过来的。
$req=mysql_query($query);
if ($req) {
$bbsmes=mysql_fetch_array($req);
$djnum=$bbsmes["djnum"]+1; //点击数加一
$query="update foxbbs set djnum='$djnum' where";
$req=mysql_query($query);
}
$query="select * from useinfo where usename='".$bbsmes["usename"]."'"; //从用户信息库里取出发帖用户的信息
$req=mysql_query($query);
if ($req) {
$useinfo=mysql_fetch_array($req);
switch ($useinfo[11]) //因为我是用一位数字来表示用户身份
{
case ($useinfo[11]==1):
$useinfo[11]="会员";
break;
case ($useinfo[11]==2):
$useinfo[11]="版主";
break;
case ($useinfo[11]==3):
$useinfo[11]="管理员";
break;
case ($useinfo[11]==4):
$useinfo[11]="站长";
break;
default:
$useinfo[11]="游客";
break;
}
}
?>
|
|
|
|
|
|
|
|
 |
 |
当前位置:狐网─>狐网论坛─>论题: |
|
|
echo "  "; ?> |
|
原贴作者 | 原 贴 内 容 | //在用户信息库里没存放表情图象的路径和扩展名 echo $useinfo[2]." "; echo "  "; echo $useinfo[11]." "; echo "发帖数 [".$useinfo["ftnum"]."] "; ?> | $ft="foxbbs/".$bbsmes[5].".fox"; //取出存放的文件名 $message=@file($ft); //读出文件内容 for ($i=0;$i { if (ord(substr($message[$i],0,1))==161) //第一位是否全角空格 echo $message[$i]; else { $message[$i]=" ".trim($message[$i]); echo $message[$i]; //显示主题内容 } } ?> |  echo $bbsmes[4]; ?> | if ($useinfo[9]=="不告诉你") echo "  "; else echo "  "; echo "  "; echo "  "; echo "  "; echo "  "; echo "  "; echo " ![".$bbsmes[11]."](images/ip.gif) "; ?> | |
$hfft="foxbbs/".substr($bbsmes[5]).".bbs";
if (file_exists($hfft)) //是否有回复
{
$tem=@file($hfft);
$temp=implode("",$tem); //先把数组转变成字符串,不用加分融符
$tem=explode("δεζ",$temp);
$num=count($tem)-1;
for ($i=0;$i<$num;$i++)
{ $x=$i+1;
$temp=explode("ㄞㄚㄓ",$tem[$i]); //把每条回复信息分开
if ($temp[5]>0) $temp[5]="images/".$temp[5].".gif"; //显示回复内容
else $temp[5]="images/a.gif";
if (!$temp[6]) $temp[6]="不想告诉你";
echo "
"; echo "回贴作者 | "; echo "回 复 内 容 (第NO.".$x."号) | "; echo "".$temp[1]."  OICQ:".$temp[2]. " 来自:".$temp[6]." | " echo "< ;td width='80%'>".$temp[0]." "; echo " ".$temp[7]." | "; 에코 "< ;td width='80%'> "; echo " |
";
}
}
?>
테이블>
以上就介绍了 나는 论坛源代码 3, 包括了方面的内容, 希望对PHP教程有兴趣的朋友有所帮助.
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
저자별 최신 기사
-
2025-02-26 03:58:14
-
2025-02-26 03:38:10
-
2025-02-26 03:17:10
-
2025-02-26 02:49:09
-
2025-02-26 01:08:13
-
2025-02-26 00:46:10
-
2025-02-25 23:42:08
-
2025-02-25 22:50:13
-
2025-02-25 21:54:11
-
2025-02-25 20:45:11