Home  >  Article  >  Backend Development  >  My forum source code (9)_PHP tutorial

My forum source code (9)_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:04:17719browse



Untitled Document



include "linkfox.inc.php";
include "info.inc.php";
?>



$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]="会员";
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 ";";
echo "

信息修改成功,返回
";
}
}
if ($unlock==yes)
{
$query="update foxbbs set lockes=0 where id='".$bbsid."'";
$req=mysql_query($query);
if ($req)
{
err_info("锁定成功");
echo ";";
echo "
信息修改成功,返回
";
}
}
?>

  
    
    
    
    
    
  
  
    
    
    
    
     
  
  
    
    
    
    
    
  

      

    
       

      

    

      

    

      

    

      
当前位置:狐网─>狐网论坛─>论题:

    

      

    


      
发布新帖

    

      
回复此贴"; ?>

    

      

    


  
    


      
        
          
          
        
        
          
          
        
        
          
  

            
原贴作者

          

            
原 贴 内 容

          

            
echo $useinfo[2]."
";
           echo "
";
           echo $useinfo[11]."

";
           echo "发帖数 [".$useinfo["ftnum"]."]
";
          ?>


          
$ft="foxbbs/".$bbsmes[5].".fox";
$message=@file($ft);
for ($i=0;$i { if (ord(substr($message[$i],0,1))==161) //第一位是否全角空格
echo $message[$i];
else {
$message[$i]="  ".trim($message[$i]);
echo $message[$i];
}
}
?>

            
="Won't tell you")
    echo "";
    else echo "Send me an email";
echo "
My homepage";
     echo " My details";
     echo " Modify information “; height='17' alt='Find all articles of this user' border='0'>";
     echo " Quote this user";
      echo " ".$bbsmes[11]."";
?>
;
                                                                                  ">Lock? Unlock?







http://www.bkjia.com/PHPjc/316035.html

www.bkjia.com

true

TechArticlehtml head titleUntitled 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}...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn