<title>Untitled Document</title>
Include "linkfox.inc.php";
Include "info.inc.php";
?>
$query = "SELECT * from Foxbbs where";
$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]= "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
}
}
if ($lock ==yes)
{
$query = "Update Foxbbs set Lockes=1 where";
$req =mysql_query ($query);
if ($req)
{
Err_info ("lock success");
echo ";";
echo "Information modified successfully, returned";
}
}
if ($unlock ==yes)
{
$query = "Update Foxbbs set lockes=0 where";
$req =mysql_query ($query);
if ($req)
{
Err_info ("lock success");
echo ";";
echo "Information modified successfully, returned";
}
}
?>
|
|
|
|
|
|
|
|
|
|
Current position: Fox network ─> Fox Network Forum ─> topic:
|
|
|
|
|
Original Sticker Author
|
Original paste Content
|
Echo $useinfo [2]. " "; echo " "; echo $useinfo [11]. ""; echo "Number of posts [". $useinfo ["Ftnum"]. "] "; ?>
|
$ft = "foxbbs/". $bbsmes [5]. ". Fox "; $message = @file ($ft); for ($i =0; $i {if (Ord (substr ($message [$i],0,1)) ==161)//first digit whether full-width space echo $message [$i]; else { $message [$i]= "". Trim ($message [$i]); echo $message [$i]; } } ?> |
|
if ($useinfo [9]== "Don't Tell You") echo ""; else echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; ?>
|
|
|
The above describes the forum source code of my Forum source code nine, including the Forum source code content, I hope that the PHP tutorial interested in a friend helpful.