My Forum source code (ix)
Last Update:2017-02-28
Source: Internet
Author: User
<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>
<TD height= ">"
<div align= "right" ></div>
</td>
<TD height= "width=" > </td>
<TD height= "width=" > </td>
<TD height= "width=" > </td>
<TD height= "width=" > </td>
</tr>
<tr>
<TD height= ">"
<div align= "right" ></div>
</td>
<TD height= "Width=" >
<div align= "center" ><a href= "Reguse.php?action=xy" ></a></div>
</td>
<TD height= "Width=" >
<div align= "center" ><a href= "Useinfo.php?action=find" ></a></div>
</td>
<TD height= "width=" 10% "><a href=" Useinfo.php?action=use "></a></td>
<TD height= "width=" "><a href=" foxbbs.php?d=q "></a></td>
</tr>
<tr>
<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>
<TD height= "width=" 10% ">
<div align= "center" ><? echo "<a href= ' repal.php?action=add&id=". $id. " &zt= ". $bbsmes [3]." &use= ". $use." ' >< /a> ";?></div>
</td>
<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" >
<TD colspan= "2" >
<table width= "100%" border= "0" cellspacing= "1" cellpadding= "1" >
<tr bgcolor= "#009999" >
<TD width= "20%" >
<div align= "center" ><font color= "#FFFFFF" > original posted author </font></div>
</td>
<TD width= "80%" >
<div align= "center" ><font color= "#FFFFFF" > Original content </font></div>
</td>
</tr>
<tr bgcolor= "#eeeeee" valign= "Top" >
<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>
<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" >
<TD width= "20%" >
<div align= "left" > ? Echo $bbsmes [4];?></div>
</td>
<TD width= "80%" >
<div align= "left" ><?
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>