Displays the topic content page.
<title>Fox Network Forum</title>
Include "linkfox.inc.php";
Include "info.inc.php";
?>
$query = "SELECT * from Foxbbs where"; This ID is transmitted from the previous page, foxbbs.php.
$req =mysql_query ($query);
if ($req) {
$bbsmes =mysql_fetch_array ($req);
$djnum = $bbsmes ["Djnum"]+1; Number of clicks plus one
$query = "Update Foxbbs set djnum= ' $djnum ' where";
$req =mysql_query ($query);
}
$query = "SELECT * from Useinfo where usename= '". $bbsmes ["Usename"]. "'"; Remove the user's information from the user repository
$req =mysql_query ($query);
if ($req) {
$useinfo =mysql_fetch_array ($req);
Switch ($useinfo [11])//Because I use a single digit to represent the user identity
{
Case ($useinfo [11]==1):
$useinfo [11]= "member";
Break
Case ($useinfo [11]==2):
$useinfo [11]= "moderator";
Break
Case ($useinfo [11]==3):
$useinfo [11]= "Administrator";
Break
Case ($useinfo [11]==4):
$useinfo [11]= "webmaster";
Break
Default
$useinfo [11]= "tourists";
Break
}
}
?>
|
|
|
|
|
|
|
|
|
|
Current position: Fox network ─> Fox Network Forum ─> topic:
|
|
|
|
|
Original Sticker Author
|
Original paste Content
|
!--? The path and extension echo $useinfo [2] are not stored in the user repository for the emoticon image.
";
echo "
";
Echo $useinfo [11]. "
";
Echo "Number of posts [". $useinfo ["Ftnum"]. "]
";
?>
|
$ft = "foxbbs/". $bbsmes [5]. ". Fox "; Remove the stored file name
$message = @file ($ft),//read out the contents of the file
for ($i =0; $i {if (Ord. substr ($messag e[$i],0,1)) ==161)//first digit whether full-width space
echo $message [$i];
Else {
$message [$i]= "". Trim ($message [$i]);
Echo $message [$i];//Display subject content
}
}
?> |
|
if ($useinfo [9]== "Don't Tell You")
echo "";
else echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
?>
|
|
$hfft = "foxbbs/". substr ($bbsmes [5]). ". BBS "; if (file_exists ($HFFT))//whether there is a reply {$tem = @file ($HFFT); $temp =implode ("", $tem); First, the array is converted into a string, without the addition of the =explode character $tem ("Δεζ", $temp); $num =count ($tem)-1; for ($i =0; $i < $num; $i + +) {$x = $i +1; $temp =explode ("ㄞㄚㄓ", $tem [$i]); Separate each reply message if ($temp [5]>0) $temp [5]= "images/". $temp [5]. ". GIF "; Show reply content Else $temp [5]= "Images/a.gif"; if (! $temp [6]) $temp [6]= "Don't Want to tell you"; echo "
"; echo "
| Huitie author | "; echo "
Reply to Content (No. ". $x. " No. |
"; echo "
". $temp [1]."
OICQ: ". $temp [2]."
From: ". $temp [6]." | "; echo "
". $temp [0]." |
"; echo "
| ". $temp [7]." | "; echo "
";
echo "";
echo "";
echo "";
echo " |
"; echo "
|
";}}?>
The above is the introduction of my forum source code three, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.