Forum Source Code My forum source code IX

Source: Internet
Author: User


<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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.