我的论坛源代码(四)

okey.php重要管理客户登陆和宣布的信息管理

reguse.inc.php管理登记客户时的音信

POST.PHP公布主旨的页面,宣布的新闻提交到OKEY.PHP中去管理。

<html>
<head>
<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”;
?>
</head>

repal.php回复用的页面,因为回复能够不必尽管顾客,所以没加顾客身份校验

<?
if ($username)                       //是或不是有客商音讯
$useinfo=$username.”|”.$userpass;
setcookie(“FlyFoxNet”,$useinfo,time()+3600);   

<?

<html>
<head>
<title>论坛发帖</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>
<?
include “linkfox.inc.php”;
include “info.inc.php”;
?>
<LINK href=”js/cpcw.css” rel=stylesheet /LINK>
</head>

<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);
}

<html>
<head>
<title>回复论题:<? echo $zt;?></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”;

if ($d==q)
setcookie(“Fly福克斯Net”);     //假使是退出的话,把老董KIE置为空
?>
<HTML><HEAD><TITLE>公布小说</TITLE>
<LINK href=”js/cpcw.css” rel=stylesheet /LINK>
<?
include “linkfox.inc.php”;
include “info.inc.php”;
function postf($useinfo,$title,$message)        //发帖消息管理
{
       $query=”select * from foxbbs order by id desc limit 1″;
       $row=@mysql_query($query);
       $info=@mysql_fetch_array($row);
       if
($useinfo[2]==$info[1]&&$title==$info[3])         //检查近些日子一条消息是还是不是和近期音讯同样。
          echo “<script language=’JavaScript’>
alert(‘请勿重复发帖,感谢协作!’); </script>”;
       else{
         $time=date(Y年n月j日G时i分);
         $filename=date(YmjGis);               //文件名取当前的年月
         $gip=getenv(“REMOTE_ADD福睿斯”);        //写入信息
         $query=”insert into foxbbs
(usename,ftbq,title,ftdate,mesname,djnum,hfnum,ip) values
(‘”.$useinfo[0].”‘,'”.$useinfo[14].”‘,'”.$title.”‘,'”.$time.”‘,'”.$filename.”‘,1,0,'”.$gip.”‘)”;
         $req=@mysql_query($query);
         if ($req)
{                      //倘若写入成功,则给顾客发帖数加一,营造内容文件
            $query=”select ftnum from useinfo where
usename='”.$useinfo[0].”‘”;
            $req=@mysql_query($query);
            $ftnum=@mysql_fetch_array($req);
            $ftnum=$ftnum[0]+1;
            $query=”update useinfo set ftnum=’$ftnum’ where
usename='”.$useinfo[0].”‘”;
            $req=@mysql_query($query);
            $ft=$filename;
            $fp=fopen($ft,”w”);         //把全体的”<“,”>”符号转产生”<“,”&rt;”能够去除HTML标志,好像有个函数能够平素删除,但自身记不到了,也没在参照他事他说加以考察手册里查到,所以用个笨法子了。
            $message=str_replace(“<“,”<“,str_replace(“>”,”>”,$message));
            $message=nl2br($message);    //先去除符号再转换行,免得换行符也改为字符展现出来。
            $f=fputs($fp,$message);
            $fp=@fclose($fp);
            echo “<script language=’JavaScript’>
alert(‘”.$useinfo[2].”!恭喜你,发贴成功!’); </script>”;
            }
         else {
            echo “<script language=’JavaScript’>
alert(‘极其报歉,因数据库原因,你的帖子未能保存!’); </script>”;
              }
        }

function regok($mess,$reginfo)       //记录成功后输出客户信息
{
echo “<table width=’70%’ border=’0′ cellspacing=’0′ cellpadding=’0′
bgcolor=’#000000′ align=’center’>”;
echo “<tr><td><table width=’100%’ border=’0′
cellspacing=’1′ cellpadding=’1′ align=’center’
bgcolor=’#eeeeee’><tr bgcolor=’#006699′><td
colspan=’4′><div align=’center’><font
color=’ffffff’>”.$mess.”</font></div></td></tr>”;
echo “<tr ><td width=’15%’ ><div
align=’left’>ID号:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[13].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>用户:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[0].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>密码:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[1].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>主页:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[9].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>邮箱:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[8].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>oicq:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[3].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>昵称:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[2].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>等级:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[11].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>性别:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[4].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>年龄:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[5].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>职业:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[6].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>来自:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[7].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>音讯保密:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[12].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>签名:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[10].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>邮件通知:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[18].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>注册时间:</div></td><td width=’35%’
><div align=’center’><font
color=’#FF0000′>”.$reginfo[15].”</div></td></tr>”;
echo “<tr ><td width=’15%’><div
align=’left’>登入时间:</div></td><td
width=’35%’><div align=’center’><font
color=’#FF0000′>”.$reginfo[16].”</font></div></td>”;
echo “<td width=’15%’><div
align=’left’>头像:</div></td><td width=’35%’
><div align=’center’><img
src=’images/”.$reginfo[14].”.gif’></div></td></tr>”;
$reginfo=$reginfo[0];
echo “<tr bgcolor=’#006699′><td colspan=’4′><div
align=’center’><a
href=’reguse.php?action=dl&use=”.$reginfo.”‘>顾客登入</a></div></td></tr>”;
echo “</table></td></tr></table>”;

<body bgcolor=”#FFFFFF”>
<?
$tem=$HTTP_COOKIE_VARS[FlyFoxNet];          //取COOKIE信息
$temp=explode(“|”,$tem);
$cookiem=$temp[0];
$useinfo=cuser($cookiem,$action);
if ($useinfo[2]==”游客”) $usename=1;
?>
<table width=”100%” cellpadding=”4″ cellspacing=”0″ border=”0″>
  <tr>
    <td height=”40″ rowspan=”2″ width=”60%”>
      <div align=”right”></div>
      <div align=”right”></div>
    </td>
    <td height=”20″ width=”10%”> </td>
    <td height=”20″ width=”10%”> </td>
    <td height=”20″ width=”10%”> </td>
    <td height=”20″ width=”10%”> </td>
  </tr>
  <tr>
    <td height=”20″ width=”10%”>
     <div align=”center”><a
href=”reguse.php?action=xy”><img src=”images/top_register.gif”
width=”74″ height=”21″ border=”0″></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a
href=”useinfo.php?action=find”><img src=”images/top_members.gif”
width=”74″ height=”21″ border=”0″></a></div>
    </td>
    <td height=”20″ width=”10%”><a
href=”useinfo.php?action=edit”><img src=”images/top_profile.gif”
width=”74″ height=”21″ border=”0″></a></td>
    <td height=”20″ width=”10%”><a
href=”okey.php?d=q”><img src=”images/top_logout.gif” width=”74″
height=”21″ border=”0″></a></td>
  </tr>
  <tr>
    <td height=”20″>
      <div align=”left”>当前地点:<font
color=”#0000FF”>狐网─>狐网论坛─>发表论题</font>  <?
echo “<font color=’00dd00′>”.$useinfo[2].”</font>”;
?></div>
    </td>
    <td height=”20″>
      <div align=”center”><a href=”foxbbs.php”><img
src=”images/index.gif” width=”70″ height=”20″ border=”0″
align=”middle”></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a href=”superuse.php”><img
src=”images/super.gif” width=”70″ height=”20″ border=”0″
align=”middle”></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a
href=”reguse.php?action=xy”><img src=”images/dl.gif” width=”70″
height=”20″ border=”0″ align=”middle”></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a href=”../index.php”><img
src=”images/fox.gif” width=”70″ height=”20″ border=”0″
align=”middle”></a></div>
    </td>
  </tr>
</table>
<script
language=”JavaScript”>            //这段JS用来检查表单内新闻意况,是否有一些眼熟?呵呵……OSO上CUT下来的了。
<!–
var submitcount=0;

$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]=”会员”;
        break;
      case ($useinfo[11]==2):
        $useinfo[11]=”版主”;
        break;
      case ($useinfo[11]==3):
        $useinfo[11]=”管理员”;
        break;
      case ($useinfo[11]==4):
        $useinfo[11]=”站长”;
        break;
      default:
        $useinfo[11]=”游客”;
      break;
      }
}
if ($lock==yes)
{
$query=”update foxbbs set lockes=1 where id='”.$bbsid.”‘”;
$req=mysql_query($query);
if ($req)
{
err_info(“锁定成功”);
echo “<script language=’JavaScript’>
javascript:location.href=’superuse.php?d=editbbs’; </script>;”;
echo “<div align=’center’><a
href=’superuse.php?d=editbbs’>音讯修改成功,再次回到</a></div>”;
}
}
if ($unlock==yes)
{
$query=”update foxbbs set lockes=0 where id='”.$bbsid.”‘”;
$req=mysql_query($query);
if ($req)
{
err_info(“锁定成功”);
echo “<script language=’JavaScript’>
javascript:location.href=’superuse.php?d=editbbs’; </script>;”;
echo “<div align=’center’><a
href=’superuse.php?d=editbbs’>消息修改成功,再次回到</a></div>”;
}
}
?>
<table width=”100%” cellpadding=”4″ cellspacing=”0″ border=”0″>
  <tr>
    <td height=”20″>
      <div align=”right”></div>
    </td>
    <td height=”20″ width=”75″> </td>
    <td height=”20″ width=”75″> </td>
    <td height=”20″ width=”75″> </td>
    <td height=”20″ width=”75″> </td>
  </tr>
  <tr>
    <td height=”20″>
      <div align=”right”></div>
    </td>
    <td height=”20″ width=”75″>
      <div align=”center”><a
href=”reguse.php?action=xy”><img src=”images/top_register.gif”
width=”74″ height=”21″ border=”0″></a></div>
    </td>
    <td height=”20″ width=”75″>
      <div align=”center”><a
href=”useinfo.php?action=find”><img src=”images/top_members.gif”
width=”74″ height=”21″ border=”0″></a></div>
    </td>
    <td height=”20″ width=”10%”><a
href=”useinfo.php?action=use”><img src=”images/top_profile.gif”
width=”74″ height=”21″ border=”0″></a></td>
     <td height=”20″ width=”75″><a
href=”foxbbs.php?d=q”><img src=”images/top_logout.gif” width=”74″
height=”21″ border=”0″></a></td>
  </tr>
  <tr>
    <td height=”20″>
      <div align=”left”>当前位置:<font
color=”#0000FF”>狐网─>狐网论坛─>论题:</font></div>
    </td>
    <td>
      <div align=”center”><a href=”foxbbs.php”><img
src=”images/index.gif” width=”70″ height=”20″
border=”0″></a></div>
    </td>
    <td>

function yy($f)
{
  $oldmess=@file($f);                                    //援引原来的文章管理
  for ($i=0;$i<count($oldmess);$i++)
  {
   if (ord(substr($oldmess[$i],0,1))==161)   //第一人是不是全角空格
   $mess=$mess.$oldmess[$i];
   else $mess=$mess.”  ”.trim($oldmess[$i]);
  }
  return $mess;
}

}
function
userr($username,$userpass,$title,$message)        //客户音讯校验函数
{
    $query=”select * from useinfo where usename='”.$username.”‘”;
    $req=mysql_query($query);
    $useinfo=mysql_fetch_array($req);
     if ($useinfo[0]==$username)
     {
//假诺由此校检就调用信息管理函数
       if
($userpass==$useinfo[1])  {postf($useinfo,$title,$message);return
$useinfo;}
       else {
       echo “<script language=’JavaScript’>
alert(‘密码不科学,请检查!’); </script>”;
       echo “<meta HTTP-EQUIV=’REFRESH’
CONTENT=’2;URL=post.php’>”;
       }
     }
     else
     {
       echo “<script language=’JavaScript’>
alert(‘顾客子虚乌有,请确认已登记!’); </script>”;
     }
}
?>
<META content=”text/html; charset=gb2312″
http-equiv=Content-Type>
<meta HTTP-EQUIV=”REFRESH” CONTENT=”2;URL=foxbbs.php”>
</head><body topmargin=”0″>
<?
$tem=$HTTP_COOKIE_VARS[FlyFoxNet];
$temp=explode(“|”,$tem);
$cookiem=$temp[0];
$useinfo=cuser($cookiem,$action);
if (isset($message))
{
  if($username)
  {
     $useinfo=userr($username,$userpass,$title,$message);
  }
  else if($useinfo) {
     userr($useinfo[0],$useinfo[1],$title,$message);
     }
  else {echo “<script language=’JavaScript’>
alert(‘你不是法定顾客,不可能在此论坛发帖!’); </script>”;}

}

function checkSubmit() {
    if (submitcount == 0) {
      submitcount++;
      return true;
    } else {
            if (submitcount>0){
            alert(“帖子已成功交付了,别急,等等!”);
            return false;
      }
    }
}

      <div align=”center”><a href=”post.php”><img
src=”images/newthread.gif” width=”70″ height=”20″ border=”0″
alt=”发表新帖”></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><? echo “<a
href=’repal.php?action=add&id=”.$id.”&zt=”.$bbsmes[3].”&use=”.$use.”‘><img
src=’images/reply.gif’ width=’70’ height=’20’ border=’0′
alt=’回复此贴’></a>”; ?></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a
href=”reguse.php?action=dl”><img src=”images/dl.gif” width=”70″
height=”20″ border=”0″></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”>原贴小编</font></div>
          </td>
          <td width=”80%”>
            <div align=”center”><font
color=”#FFFFFF”>原 贴 内 容</font></div>
          </td>
        </tr>
        <tr bgcolor=”#eeeeee” valign=”top”>
          <td width=”20%”>
            <div align=”center”> <?
           echo $useinfo[2].”<br>”;
           echo “<img
src=’images/”.$bbsmes[2].”‘.gif><br>”;
           echo $useinfo[11].”<p>”;
           echo “发帖数 [“.$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(substr($message[$i],0,1))==161)   //第3个人是不是全角空格
            echo $message[$i];
            else {
            $message[$i]=”  ”.trim($message[$i]);
            echo $message[$i];
            }
          }
          ?></div></td>
        </tr>
        <tr bgcolor=”#009999″>
          <td width=”20%”>
            <div align=”left”><img src=”images/posticon.gif”
width=”14″ height=”11″><? echo $bbsmes[4]; ?></div>
          </td>
          <td width=”80%”>
            <div align=”left”><?
          if ($useinfo[9]==”不告诉你”)
          echo “<img src=’images/email.gif’ width=’43’
height=’17’>”;
          else echo “<a href=’mailto:”.$useinfo[8].”‘><img
src=’images/email.gif’ width=’43’ height=’17’ alt=’给小编发邮件’
border=’0′></a>”;
          echo “  <a href='”.$useinfo[9].”‘ ><img
src=’images/home.gif’ width=’43’ height=’17’ alt=’小编的主页’
border=’0′></a>”;
          echo “  <a href=’useinfo.php?action=look’><img
src=’images/profile.gif’ width=’43’ height=’16’ alt=’笔者的详细音信’
border=’0′></a>”;
          echo “  <a href=’useinfo.php?action=edit’><img
src=’images/edit.gif’ width=’43’ height=’17’ alt=’修改音讯’
border=’0′></a>”;
          echo “  <a
href=’foxbbs.php?action=find&user=”.$useinfo[0].”‘><img
src=’images/find.gif’ width=’43’ height=’17’ alt=’查找该客户的之所以文章’
border=’0′></a>”;
          echo “  <a
href=’repal.php?action=add&use=”.$useinfo[13].”&id=”.$id.”&zt=”.$bbsmes[3].”&c=dd’><img
src=’images/quote.gif’ width=’43’ height=’17’ alt=’援引该顾客的小说回复’
border=’0′></a>”;
          echo “  <a href=’#’><img src=’images/ip.gif’
border=’0′ alt='”.$bbsmes[11].”‘></a>”;
         ?> </div>
          </td>
        </tr>
        <tr bgcolor=”#ffffff”><td colspan=”2″><div
align=”center”><form  method=”post”><input type=”checkbox”
name=”lock”  value=”yes”>锁住?<input type=”checkbox”
name=”unlock”  value=”yes”>解锁?<input type=”submit”
name=”Submit”
value=”确定”></form></div></td></tr>
       </table>
    </td>
  </tr>
</table>
</body>
</html> 

function mesput($query,$use,$id)       
{
      $req=mysql_query($query);
      if ($req)
        {
          echo “<script language=’JavaScript’>
alert(‘多谢你的重整旗鼓!系统将回到论题!’); </script>”;
          echo “<script language=’JavaScript’>
javascript:location.href=’dispbbs.php?id=”.$id.”&use=”.$use.”‘;
</script>;”;
          echo “<div align=’center’><a
href=’dispbbs.php?id=”.$id.”&use=”.$use.”‘>假设系统尚未影响,请点击</a></a>”;
        }
      else
      echo  “<script language=’JavaScript’> alert(‘写入退步!’);
</script>”;
}
function
usehf($message,$useinfo,$id,$use,$ft,$mess,$c)         //客户回复就间接从表里调出客户音讯
{
   $query=”select * from useinfo where usename='”.$useinfo[0].”‘”;
   $req=mysql_query($query);
      if ($req)
         {
             $useinfo=mysql_fetch_array($req);
             $fo=fopen($ft,”a”);
             $message=str_replace(“<“,”<“,str_replace(“>”,”>”,$message));
             $message=nl2br($message);
             $gip=getenv(“REMOTE_ADDR”);
             $messages=$message.”ㄞㄚㄓ”.$useinfo[2].”ㄞㄚㄓ”.$useinfo[3].”ㄞㄚㄓ”.$useinfo[9].”ㄞㄚㄓ”.$useinfo[8].”ㄞㄚㄓ”.$useinfo[14].”ㄞㄚㄓ”.$useinfo[11].”ㄞㄚㄓ”.$time.”ㄞㄚㄓ”.$gip.”δεζ”;
            if($c==dd)       //假如是援用回复,加上最先的作品内容
               {
          $messages=”<font color=’999999′>”.$mess.”<div
align=’center’>★原文……★……引用★</div></font><br>”.$messages;
               }
             $fp=fputs($fo,$messages);
             $time=date(Y年n月j日G时i分);   //宗旨回复数加一,覆盖上贰回复人与时光
             $query=”update foxbbs set
hfnum=hfnum+1,hfname='”.$ft.”‘,hfusename='”.$useinfo[2].”‘,hfdate='”.$time.”‘
where id='”.$id.”‘”;
             mesput($query,$use,$id);
          }
      else
         {
      echo “<script language=’JavaScript’>
alert(‘数据库错误:104号’); </script>”;
         }
}

}
if ($d==q)
{
echo “<script language=’JavaScript’>
alert(‘你已脱离登陆情状,将以旅客身份回来论坛’); </script>”;
}
?>
<br><br><br><br><br>
<div align=”center”><a
href=foxbbs.php>假如系统未自行回到页面,请点击这里反回.</a></div>
</body>
</html> 

     //检查音信并写入记录
function
reg($usename,$usepass,$usemail,$useweb,$useni,$useoicq,$usesex,$useage,$usezy,$useaddr,$useinf,$usety,$usebq,$useqm)
{
  if ($usename)     //如若有客商名传入则管理   客户注册模块
    {
      if(strlen($usename)>8) return 1;
      else if(strlen($usepass)>8) return 2;
      else if(strlen($useoicq)>12) return 3;
      else if(!uinfo($usepass,pass)) return 4;
      else if(!uinfo($usename,name)) return 5;
      else if(!uinfo($useoicq,oicq)) return 6;
      else if(!uinfo($usemail,mail)) return 7;
      else
        {
          if(!$useinf) $useinf=2;
          $query=”select * from useinfo where
usename='”.$usename.”‘”;  //是或不是曾经存在客商
          $req=mysql_query($query);
          $useinfp=mysql_fetch_array($req);
          if ($useinfp[0]) return 8;
          else
            {
              $time=date(Y年n月j日G时i分);
              $useqm=nl2br($useqm);                                                                            //写入客商音讯
              $query=”insert into useinfo
(usename,usepass,usemail,useweb,useni,useoicq,usesex,useage,usezy,useaddr,useinf,usety,usebq,useqm,useattr,regdate,enddate)
values
(‘”.$usename.”‘,'”.$usepass.”‘,'”.$usemail.”‘,'”.$useweb.”‘,'”.$useni.”‘,'”.$useoicq.”‘,'”.$usesex.”‘,'”.$useage.”‘,'”.$usezy.”‘,'”.$useaddr.”‘,'”.$useinf.”‘,'”.$usety.”‘,'”.$usebq.”‘,'”.$useqm.”‘,1,now(),'”.$time.”‘)”;
              $req=mysql_query($query);
              if ($req)
                 {
                 $query=”select * from useinfo where
usename='”.$usename.”‘”;  //抽取顾客消息,并传播客商端
                 $req=mysql_query($query);
                 $useinfo=mysql_fetch_array($req);
                 return $useinfo;
                 }
              else return 10;
            }
        }
        return 9;
    }
}

function check_com(){
   if(document.form.title.value.length ==0){
      submitcount–;
      alert(“主旨不能够为空!快填上呢!”);
      return false;
   }

function
gr($ft,$message,$youname,$youmail,$youoicq,$youweb,$youaddr,$youbq,$id,$use,$mess,$c)        //非注册客户
{
if (!uinfo($youmail,mail)||strlen($youmail)<12)  //校验MAIL
{
     echo “<script language=’JavaScript’>
alert(‘请输入精确的MAIL地址!’); </script>”;
}
else if (!uinfo($youoicq,oicq)||strlen($youoicq)>12)
//校验OICQ,只可以判定是不是数字和位数,如若有更加好的情势就好。
{

function
usemess($mess,$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm)      //消息输入表单
{
echo “<FORM METHOD=post>”;
echo “<table width=’90%’ border=’0′ cellspacing=’0′ cellpadding=’0′
bgcolor=’#000000′ align=’center’>”;
echo “<tr><td><table width=’100%’ border=’0′
cellspacing=’1′ cellpadding=’1′ align=’center’>”;
echo “<tr bgcolor=’#006699′><td colspan=’2′><font
color=’ffffff’><div align=’center’>狐网论坛顾客注册—<font
color=’00ff00′>”.$mess.”</font></div></font></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’> 用 户 名:<font
color=’#FF0000′>捌位,第一人必得是字母</FONT></div></td><td
width=’二分之一’><input onFocus=’this.select()’
style=’BACKGROUND-COLOLX570: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’usename’ size=’30’
maxlength=’8′ value='”.$usename.”‘></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>密  码:<font
color=’#FF0000′>八位,数字和字母组合.</font></div></td><td
width=’四分之二’><input style=’BACKGROUND-COLOENCORE: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
type=’password’ name=’usepass’ size=’30’
maxlength=’8′></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’百分之三十三’><div
align=’left’>电子信箱:<font
color=’#FF0000′>请填入真正的邮箱地址。</font></div></td><td
width=’五分二’><input onFocus=’this.select()’
style=’BACKGROUND-COLO昂科威: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’usemail’ size=’50’
maxlength=’50’ value='”.$usemail.”‘></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’百分之二十五’><div
align=’left’>个人主页:</div></td><td
width=’56%’><div align=’left’><input onFocus=’this.select()’
style=’BACKGROUND-COLOENVISION: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’useweb’ size=’50’
maxlength=’50’
value='”.$useweb.”‘></div></td></tr>”;
echo “<tr bgcolor=’#006699′><td colspan=’2′><div
align=’center’><font
color=’#FFFFFF’>个人新闻设定</font></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’十分二’><div
align=’left’>你的外号:</div></td><td
width=’1/3′><div align=’left’><input onFocus=’this.select()’
style=’BACKGROUND-COLOWrangler: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’useni’ size=’30’
maxlength=’15’
value='”.$useni.”‘></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>OICQ:</div></td><td
width=’52%’><div align=’left’><input onFocus=’this.select()’
style=’BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’useoicq’ size=’20’
maxlength=’20’
value='”.$useoicq.”‘></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>性  别:</div></td><td
width=’52%’><div align=’left’><select
onFocus=’this.select()’ style=’BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
name=’usesex’><option value=’1′
selected>作者是男生</option><option
value=’0′>小编是女子</option></select></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>年  龄:</div></td><td
width=’52%’><div align=’left’><select
onFocus=’this.select()’ style=’BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
name=’useage’><option
value=’14’>15岁以下</option><option value=’15’>15
岁</option><option value=’16’>16 岁</option><option
value=’17’>17 岁</option>”;
echo “<option value=’18’>18 岁</option><option
value=’19’>19 岁</option><option value=’20’ selected>20
岁</option><option value=’21’>21 岁</option><option
value=’22’>22 岁</option><option value=’23’>23
岁</option><option value=’24’>24 岁</option><option
value=’25’>25 岁</option><option value=’26’>26
岁</option><option value=’27’>27 岁</option><option
value=’28’>28 岁</option><option value=’29’>29
岁</option><option
value=’30’>30或以上</option></select></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’40%’><div
align=’left’>职  业:</div></td><td
width=’52%’><div align=’left’><select
onFocus=’this.select()’ style=’BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
name=’usezy’><option value=’5′
selected>小编是学生</option><option
value=’1′>公务员</option><option
value=’2′>集团雇员</option><option
value=’3′>自由专业</option><option
value=’4′>髀里肉生</option><option
value=’5′>不报告您</option></select></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’五分之一’><div
align=’left’>来自何处:</div></td><td
width=’四分之二’><div align=’left’><input onFocus=’this.select()’
style=’BACKGROUND-COLO福睿斯: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’useaddr’ size=’50’
maxlength=’50’
value='”.$useaddr.”‘></div></td></tr>”;
echo “<tr bgcolor=’#006699′><td colspan=’2′><div
align=’left’></div><div align=’center’><font
color=’#FFFFFF’>参数设定</font></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’五分之二’><div
align=’left’>是或不是充许旁人查看你的消息:</div></td><td
width=’51%’><div align=’left’><input type=’radio’
name=’useinf’ value=’2′>否  <input type=’radio’ name=’useinf2′
value=’1′ checked>是</div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’百分之三十’
valign=’top’><div
align=’left’>个人具名档:</div></td><td
width=’四分之三’><div align=’left’><textarea
onFocus=’this.select()’ style=’BACKGROUND-COLO纳瓦拉: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;’
name=’useqm’ cols=’40’ wrap=’VIRTUAL’
rows=’5′>”.$useqm.”</textarea></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td width=’伍分叁’><div
align=’left’>是还是不是同意版主或管理人给您发邮件公告:</div></td><td
width=’三分之一’><div align=’left’><input type=’radio’
name=’usety’ value=’2′>否  <input type=’radio’ name=’usee2′
value=’1′ checked>是</div></td></tr>”;
echo “<tr bgcolor=’#006699′><td colspan=’2′><div
align=’center’><font
color=’#FFFFFF’>头像设定</font></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td colspan=’2′><div
align=’center’><input type=’radio’ name=’bq[0]’
value=’a’><img src=’images/a.gif’ width=’15’ height=’15’
checked>  <input type=’radio’ name=’bq[1]’ value=’1′><img
src=’images/1.gif’ width=’15’ height=’15’>  <input type=’radio’
name=’bq[2]’ value=’2′><img src=’images/2.gif’ width=’15’
height=’15’>  <input type=’radio’ name=’bq[3]’
value=’3′><img src=’images/3.gif’ width=’15’ height=’15’>
 <input type=’radio’ name=’ba[4]’ value=’4′><img
src=’images/4.gif’ width=’15’ height=’15’>  ”;
echo “<input type=’radio’ name=’bq[5]’ value=’5′><img
src=’images/5.gif’ width=’15’ height=’15’>  <input type=’radio’
name=’bq[6]’ value=’6′><img src=’images/6.gif’ width=’15’
height=’15’>  <input type=’radio’ name=’ba7′
value='[7]’><img src=’images/7.gif’ width=’15’ height=’15’>
 <input type=’radio’ name=’ba[8]’ value=’8′><img
src=’images/8.gif’ width=’15’ height=’15’>  <input type=’radio’
name=’ba[9]’ value=’9′><img src=’images/9.gif’ width=’15’
height=’15’></div></td></tr>”;
echo “<tr bgcolor=’#eeeeee’><td
colspan=’2′></td></tr>”;
echo “</table></td></tr></table>”;
echo “<div align=’center’><INPUT TYPE=’HIDDEN’ NAME=’action’
VALUE=’add’><INPUT class=’bott’ TYPE=’SUBMIT’ name=’submit’
VALUE=’提 交!’><INPUT class=bott TYPE=’RESET’ NAME=’Reset’
VALUE=’重 填’></form></div>”;
}
function dlmes($mess)
{
echo “<table width=’50%’ border=’0′ cellspacing=’0′ cellpadding=’0′
bgcolor=’#000000′ align=’center’>”;
echo “<tr><td>”;
echo “<table width=’100%’ border=’0′ cellspacing=’1′ cellpadding=’1′
bgcolor=’#eeeeee’><form method=’post’>”;
echo “<tr bgcolor=’#009999′><td><div
align=’center’><font
color=’#FFFFFF’>”.$mess.”</font></div></td></tr>”;
echo “<tr><td><div align=’center’>用户名:<input
type=’text’ name=’uname’></div></td></tr>”;
echo “<tr><td><div align=’center’>密 码:<input
type=’password’ name=’upass’></div></td></tr>”;
echo “<tr><td><div align=’center’><input
type=’submit’ name=’Submit’
value=’确定’></div></td></tr>”;
echo “<tr><td><input type=’hidden’ name=’action’
value=’dl’></td></tr>”;
echo “<tr><td><div align=’center’><a
href=’useinfo.php?action=pass’>[忘却密码]</a>     <a
href=’reguse.php?action=xy’>[小编要注册]</a></div></td></tr>”;
echo “<tr bgcolor=’#009999′><td
height=’20’></td></tr>”;
echo
“</form></table></td></tr></table>”;
}
?> 

   if(document.form.message.value.length == 0){
      submitcount–;
      alert(“OH!SORRY!加贴内容无法为空!”);
      return false;
   }
   return true;
}
//–>
</script>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
  <tr bgcolor=”#009999″>
    <td height=”20″><div align=’center’><font
color=”ffffff”>
    <?            //在头里检查是还是不是顾客时给$USEINFO[0]赋了顾客音讯。
      if ($useinfo[0]) echo “<font
color=’00ff00′>[“.$useinfo[2].”]</font>
你好!请在上边填写您的贴子。”;
      else echo “<font
color=’00ff00′>”.$useinfo[2].”</font>你好,请首先登场入,再发帖,借使您还未注册,请先挂号吧!”;
      ?></font></div>
      </td>
  </tr>
  <tr>
    <td height=”20″>  </td>
  </tr>
  <tr>
    <td height=”20″ class=”bott”>
      <table width=”65%” border=”0″ cellspacing=”0″ cellpadding=”0″
align=”center”>
        <tr>
          <td height=”100″>
            <div align=”left”>
              <form name=”form” method=”post” onSubmit=”return
check_com()” ACTION=’okey.php’>
                              <? if
($usename==1)       //后边防检查查时假使没找到音信,则给$usename赋值为1,这里,用来推断是或不是须要客商地方校验。
                       {
                  echo “用户名:<input style=’BACKGROUND-COLOR:
#ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px
dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px
dashed; type=’text’ name=’username’ maxlength=’8′
size=’20’>    若是您还未注册,就来<a
href=’reguse.php?action=xy’>这里登记</a><br>”;
                  echo “密 码:<input style=’BACKGROUND-COLOR:
#ffffff; BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px
dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px
dashed; type=’password’ name=’userpass’ size=’20’
maxlength=’8′>    忘了密码来此地<a
href=’useinfo.php?c=pass’>取回密码</a>!<p>”;
                       }
                  ?>
                <div align=”center”>主 题:<input
style=”BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;” type=”text” name=”title” size=”40″
maxlength=”20″></div><br>
                <div align=”center”>帖子内容<br>
                  <textarea style=”BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed;
BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed;”
name=”message” wrap=”VIRTUAL” cols=”75″ rows=”10″></textarea>
                  <input type=”submit” class=”bott” name=”Submit”
value=”好了!提交” onClick=”return
checkSubmit()”>             <input type=”reset” class=”bott”
name=”Submit2″ value=”擦了!重写”>
                </div>
              </form>
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr bgcolor=”#009999″>
    <td height=”20″> </td>
  </tr>
</table>
</body>
</html> 

     echo “<script language=’JavaScript’>
alert(‘请输入精确的OICQ号!’); </script>”;
}

else
{
      if (uinfo($youweb,web)==OK&&substr($youweb,0,3)!=htt)
$youweb=”;
      else if (uinfo($youweb,web)==OK&&substr($youweb,0,3)==htt)
$youweb=$youweb;
      else $youweb=”不报告您”;
      $time=date(Y年n月j日G时i分);          //取当后天子
      $message=str_replace(“<“,”<“,str_replace(“>”,”>”,$message));
      $message=nl2br($message);
      $gip=getenv(“REMOTE_ADDR”);
      $messages=$message.”ㄞㄚㄓ”.$youname.”ㄞㄚㄓ”.$youoicq.”ㄞㄚㄓ”.$youweb.”ㄞㄚㄓ”.$youmail.”ㄞㄚㄓ”.$youbq.”ㄞㄚㄓ”.$youaddr.”ㄞㄚㄓ”.$time.”ㄞㄚㄓ”.$gip.”δεζ”;
       if($c==dd)       //如若是引用回复
         {
        $messages=”<font color=’999999′>”.$mess.”<div
align=’center’>★原文……★……引用★</div></font><br>”.$messages;
         }
      $fo=fopen($ft,”a”);
      $fp=fputs($fo,$messages);
      $query=”update foxbbs set
hfnum=hfnum+1,hfname='”.$ft.”‘,hfusename='”.$youname.”‘,hfdate='”.$time.”‘
where id='”.$id.”‘”;
      mesput($query,$use,$id);
}
}
?>
</head>

<body bgcolor=”#FFFFFF”>
<?
$tem=$HTTP_COOKIE_VARS[FlyFoxNet];
$temp=explode(“|”,$tem);
$cookiem=$temp[0];
$useinfo=cuser($cookiem,$action);

if (!$useinfo[0]){  $useinfo[2]=”游客”; $usename=1;}

$query=”select mesname from foxbbs where id='”.$id.”‘”;
$req=mysql_query($query);
  if ($req)
  {
  $f=mysql_fetch_array($req);
  $mess=yy($f[0]);
      if ($message&&$action=add)
        {
          $ft=”foxbbs/”.$f[0].”.bbs”;
          if (ord(substr($message,0,1))!=161)
$message=”  ”.$message;
          for ($i=0;$i<10;$i++)
          {
            if ($bq[$i]) $youbq=$bq[$i];
          }
          if
($usename)  gr($ft,$message,$youname,$youmail,$youoicq,$youweb,$youaddr,$youbq,$id,$use,$mess,$c);
          else usehf($message,$useinfo,$id,$use,$ft,$mess,$c);
        }
   }
   else echo “<script language=’JavaScript’>
alert(‘张开文件破绽百出!恐怕服务器忙,请稍候再试!’); </script>”;

?>
<table width=”100%” cellpadding=”4″ cellspacing=”0″ border=”0″>
  <tr>
    <td height=”20″>
      <div align=”right”></div>
    </td>
    <td height=”20″ width=”75″> </td>
    <td height=”20″ width=”75″> </td>
    <td height=”20″ width=”75″> </td>
    <td height=”20″ width=”75″> </td>
  </tr>
  <tr>
    <td height=”20″>
      <div align=”right”></div>
    </td>
   <td height=”20″ width=”10%”>
     <div align=”center”><a
href=”reguse.php?action=xy”><img src=”images/top_register.gif”
width=”74″ height=”21″ border=”0″></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a
href=”useinfo.php?action=find”><img src=”images/top_members.gif”
width=”74″ height=”21″ border=”0″></a></div>
    </td>
    <td height=”20″ width=”10%”><a
href=”useinfo.php?action=edit”><img src=”images/top_profile.gif”
width=”74″ height=”21″ border=”0″></a></td>
    <td height=”20″ width=”10%”><a
href=”okey.php?d=q”><img src=”images/top_logout.gif” width=”74″
height=”21″ border=”0″></a></td>
  </tr>
  <tr>
    <td height=”20″>
      <div align=”left”>当前任务:<font
color=”#0000FF”>狐网─>狐网论坛─>回复宗旨:<?echo “<font
color=’ff0000′>”.$zt.”</font>”;?></font></div>
    </td>
    <td>    <div align=”center”><a
href=”foxbbs.php”><img src=”images/index.gif” width=”70″
height=”20″ border=”0″ align=”middle”></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a href=”superuse.php”><img
src=”images/super.gif” width=”70″ height=”20″ border=”0″
align=”middle”></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a
href=”reguse.php?action=xy”><img src=”images/dl.gif” width=”70″
height=”20″ border=”0″ align=”middle”></a></div>
    </td>
    <td height=”20″ width=”10%”>
      <div align=”center”><a href=”../index.php”><img
src=”images/fox.gif” width=”70″ height=”20″ border=”0″
align=”middle”></a></div>
     </td>  </tr>
</table>

<script language=”JavaScript”>
<!–
var submitcount=0;

function checkSubmit() {
    if (submitcount == 0) {
      submitcount++;
      return true;
    } else {
            if (submitcount>0){
            alert(“帖子已成功交付了,别急,等等!”);
            return false;
      }
    }
}

function check_com(){
   if(document.form.youname.value.length ==0){
      submitcount–;
      alert(“名字不可能为空!快填上吧!”);
      return false;
   }
      if(document.form.youmail.value.length ==0){
      submitcount–;
      alert(“EMAIL不可能为空!快填上吧!”);
      return false;
   }
   if(document.form.youoicq.value.length ==0){
      submitcount–;
      alert(“OICQ不能够为空!快填上呢!”);
      return false;
   }

   if(document.form.message.value.length == 0){
      submitcount–;
      alert(“内容无法为空!”);
      return false;
   }
   return true;
}
//–>
</script>

<table width=’70%’ border=’0′ cellspacing=’0′ cellpadding=’0′
bgcolor=’#000000′ align=’center’>
  <tr>
    <td>
      <table width=’100%’ border=’0′ cellspacing=’0′
cellpadding=’0′>
        <tr bgcolor=’#006699′>
          <td><div align=”center”><font
color=”ffffff”><? echo “<font
color=’00ff00′>”.$useinfo[2].”</font>”; ?>
你正在恢复生机的核心是:[<? echo $zt;
?>]</font></div></td>
        </tr>
        <tr bgcolor=’#eeeeee’>
          <td>
    <form name=”form” onSubmit=”return check_com()”
method=”post”><div align=”center”>
<?
      if ($usename)  //不是注册客商就显示输入框输入游客消息。
      {
      echo “你的大名:<input onFocus=’this.select()’
style=’BACKGROUND-COLO奔驰G级: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’youname’ size=’30’
maxlength=’30’ value='”.$youname.”‘>”;
      echo “OICQ:<input onFocus=’this.select()’
style=’BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’youoicq’ size=’16’
maxlength=’16’ value='”.$youoicq.”‘><br>”;
      echo “来自何处:<input onFocus=’this.select()’
style=’BACKGROUND-COLO中华V: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’youaddr’ size=’55’
value='”.$youaddr.”‘><br>”;
      echo “电子信箱:<input onFocus=’this.select()’
style=’BACKGROUND-COLO福特Explorer: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’youmail’ size=’55’
value='”.$youmail.”‘><br>”;
      echo “个人主页:<input onFocus=’this.select()’
style=’BACKGROUND-COLO牧马人: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ type=’text’ name=’youweb’ size=’55’
value='”.$youweb.”‘><br>”;
      echo “表情<br><input type=’radio’ name=’bq[0]’
value=’a’><img src=’images/a.gif’><input type=’radio’
name=’bq[1]’ value=’1′><img src=’images/1.gif’>”;
      echo “<input type=’radio’ name=’bq[2]’ value=’2′><img
src=’images/2.gif’><input type=’radio’ name=’bq[3]’
value=’3′><img src=’images/3.gif’>”;
      echo “<input type=’radio’ name=’bq[4]’ value=’4′><img
src=’images/4.gif’><input type=’radio’ name=’bq[5]’
value=’5′><img src=’images/5.gif’>”;
      echo “<input type=’radio’ name=’bq[6]’ value=’6′><img
src=’images/6.gif’><input type=’radio’ name=’bq[7]’
value=’7′><img src=’images/7.gif’>”;
      echo “<input type=’radio’ name=’bq[8]’ value=’8′><img
src=’images/8.gif’><input type=’radio’ name=’bq[9]’
value=’9′><img src=’images/9.gif’><br>”;
      }
      echo “<div align=’center’>回复内容<br>”;
      echo “<textarea onFocus=’this.select()’
style=’BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed;
BORDER-TOP: #000000 1px dashed;’ name=’message’ cols=’64’ rows=’5′
wrap=’VIRTUAL’>”.$message.”</textarea><br>”;
            ?>
         <input type=”submit” name=”Submit” value=”确定”
onClick=”return checkSubmit()”>                          
         <input type=”reset” name=”Submit2″
value=”重写”></div></div></form>
          </td>
        </tr>
        <tr bgcolor=’#eeeeee’>//如若是援用原作就显得
          <td><div align=”center”><? if ($c==dd) echo
“原来的作品如下<br><div
align=’left’>”.$mess;?></div></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>
</html> 

相关文章