My Forum source code (ix)

Source: Internet
Author: User
Tags include query
<title>untitled document</title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style type=text/css>
P {font-family:normal; font-size:9pt; LINE-HEIGHT:14PT}
DIV {font-family:normal; font-size:9pt; LINE-HEIGHT:14PT}
</STYLE>
<link href= "Js/cpcw.css" rel=stylesheet/link>
<?php
Include "linkfox.inc.php";
Include "info.inc.php";
?>

<body bgcolor= "#FFFFFF" >
?
$query = "SELECT * from Foxbbs where id= '". $bbsid. "'";
$req =mysql_query ($query);
if ($req) {
$bbsmes =mysql_fetch_array ($req);
$djnum = $bbsmes ["Djnum"]+1;
$query = "Update Foxbbs set djnum= ' $djnum ' where id= '". $bbsid. "'";
$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]= "admin";
Break
Case ($useinfo [11]==4):
$useinfo [11]= "webmaster";
Break
Default
$useinfo [11]= "tourists";
Break
}
}
if ($lock ==yes)
{
$query = "Update Foxbbs set Lockes=1 where id= '". $bbsid. "'";
$req =mysql_query ($query);
if ($req)
{
Err_info ("lock success");
echo "<script language= ' JavaScript ' > javascript:location.href= ' Superuse.php?d=editbbs '; </script>; ";
echo "<div align= ' center ' ><a href= ' Superuse.php?d=editbbs ' > Information modified successfully, return </a></div>";
}
}
if ($unlock ==yes)
{
$query = "Update Foxbbs set lockes=0 where id= '". $bbsid. "'";
$req =mysql_query ($query);
if ($req)
{
Err_info ("lock success");
echo "<script language= ' JavaScript ' > javascript:location.href= ' Superuse.php?d=editbbs '; </script>; ";
echo "<div align= ' center ' ><a href= ' Superuse.php?d=editbbs ' > Information modified successfully, return </a></div>";
}
}
?>
<table width= "100%" cellpadding= "4" cellspacing= "0" border= "0" >
<tr>
&LT;TD height= ">"
<div align= "right" ></div>
</td>
&LT;TD height= "width=" > </td>
&LT;TD height= "width=" > </td>
&LT;TD height= "width=" > </td>
&LT;TD height= "width=" > </td>
</tr>
<tr>
&LT;TD height= ">"
<div align= "right" ></div>
</td>
&LT;TD height= "Width=" >
<div align= "center" ><a href= "Reguse.php?action=xy" ></a></div>
</td>
&LT;TD height= "Width=" >
<div align= "center" ><a href= "Useinfo.php?action=find" ></a></div>
</td>
&LT;TD height= "width=" 10% "><a href=" Useinfo.php?action=use "></a></td>
&LT;TD height= "width=" "><a href=" foxbbs.php?d=q "></a></td>
</tr>
<tr>
&LT;TD height= ">"
<div align= "Left" > Current position: <font color= "#0000FF" > Fox net ─> Fox web forum ─> topic:</font></div>
</td>
<td>
<div align= "center" ><a href= "foxbbs.php" ></a></div>
</td>
<td>

<div align= "center" ><a href= "post.php" ></a></div>
</td>
&LT;TD height= "width=" 10% ">
<div align= "center" &GT;&LT;? echo "<a href= ' repal.php?action=add&id=". $id. " &zt= ". $bbsmes [3]." &use= ". $use." ' >< /a> ";?></div>
</td>
&LT;TD height= "width=" 10% ">
<div align= "center" ><a href= "reguse.php?action=dl" ></a></div>
</td>
</tr>
</table>
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" >
<tr bgcolor= "#000000" >
&LT;TD colspan= "2" >
<table width= "100%" border= "0" cellspacing= "1" cellpadding= "1" >
<tr bgcolor= "#009999" >
&LT;TD width= "20%" >
<div align= "center" ><font color= "#FFFFFF" > original posted author </font></div>
</td>
&LT;TD width= "80%" >
<div align= "center" ><font color= "#FFFFFF" > Original content </font></div>
</td>
</tr>
<tr bgcolor= "#eeeeee" valign= "Top" >
&LT;TD width= "20%" >
<div align= "center" >
Echo $useinfo [2]. " <br> ";
echo "<br> ";
echo $useinfo [11]. " <p> ";
echo "Number of postings [". $useinfo ["Ftnum"]. "] <br> ";
?></div>
</td>
&LT;TD width= "80%" ><div align= "left" >
$ft = "foxbbs/". $bbsmes [5]. ". Fox ";
$message = @file ($ft);
for ($i =0; $i <count ($message); $i + +)
{if (Ord ($message [$i],0,1)) ==161)//first digit full-width space
echo $message [$i];
else {
$message [$i]= "". Trim ($message [$i]);
echo $message [$i];
}
}
?></div></td>
</tr>
<tr bgcolor= "#009999" >
&LT;TD width= "20%" >
<div align= "left" > ? Echo $bbsmes [4];?></div>
</td>
&LT;TD width= "80%" >
<div align= "left" &GT;&LT;?
if ($useinfo [9]== "Don't Tell You")
echo " ";
else echo "<a href= ' mailto:". $useinfo [8]. "' > </a> ";
echo "<a href= '". $useinfo [9]. "' ></a> ';
echo "<a href= ' useinfo.php?action=look ' ></a> ';
echo "<a href= ' Useinfo.php?action=edit" ></a> ';
echo "<a href= ' foxbbs.php?action=find&user=". $useinfo [0]. "' ></a> ";
echo "<a href= ' repal.php?action=add&use=". $useinfo [13]. " &id= ". $id." &zt= ". $bbsmes [3]." &c=dd ' ></a> ';
echo "<a href= ' ></a> ";
?> </div>
</td>
</tr>
<tr bgcolor= "#ffffff" ><td colspan= "2" ><div align= "center" ><form method= "POST" ><input type= "checkbox" Name= "lock" value= "yes" > locked? <input type= "checkbox" Name= "unlock" value= "yes" > unlock? <input type= "Submit" name= "Submit" value= "OK" ></form></div></td></tr>
</table>
</td>
</tr>
</table>
</body>

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.