My Forum source code three

Source: Internet
Author: User
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:
































$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 " ";}}?>















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 "";
?>








"; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo "
Huitie authorReply to Content (No. ". $x. " No.
". $temp [1]."

OICQ: ". $temp [2]."
From: ". $temp [6]."
". $temp [0]."
". $temp [7]."";
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.

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