marc by marc jacobs official website forum based on mysql (5)

WBOY
Release: 2016-07-29 08:34:15
Original
1021 people have browsed it

## manage_read.php
require ("func.php");
if (check_admin_password()) {
    $board=$jl_forum[board];
    switch ($job){
        case "setgood":
            set_good($jl_forum[board],$uid);
            $work=1;
            break;
        case "setnogood":
            set_no_good($jl_forum[board],$uid);
            $work=1;
            break;
        case "delete":
            del_doc($jl_forum[board],$uid);
            $work=1;
            break;
    }
if (!$word) {
    add_one_hit($board,$id);
}
$sql="select * from $board where id=$id";
$sql_result=mysql_query($sql);
$sum=mysql_num_rows($sql_result);
$sql_row=mysql_fetch_array($sql_result);
$title=$sql_row[title];
$writer=$sql_row[writer];
$c
$writetime=$sql_row[writetime];
$hits=$sql_row[hits];
$good=$sql_row[good];
$rootid=$sql_row[id];
$fromip=$sql_row[fromip];
$sql="select * from $board where slaveid=$id";
$sql_result=mysql_query($sql);
if ($sum<>0) {
?>


<?php echo $title;?>










  
    
  
  
    
  
  
    
  
  
    
  
标题: ◎操作:";?>转进精华区 ";?>删除if ($good=="y"){
?>
";?>转出精华区  
      }
?>
作者:(,点击:) ')">给作者留言 察看用户资料
※ 来源: [◆FROM:]



if (!$add){
while($sql_row=mysql_fetch_array($sql_result)) {
$good=$sql_row[good];
?>

  
    
  
  
    
  
  
    
  
  
    
  
标题:    $id=$sql_row[id];
    ?> ◎操作:
";?>转进精华区 ";?>删除if ($good=="y"){
?>
";?>转出精华区  
      }
?>
作者:() ')">给作者留言 ">察看用户资料
※ 来源: [◆FROM:]

}
}
?>





}
else {
echo "This record has been deleted";
}
}
else {
Show_error(1);
}
?>
## modify.php
require "func.php";
if (check_user_password($jl_forum[name],$jl_forum[password])) {
$name=$jl_forum[name];
$password=$jl_forum[password];
$sql="select * from user where name='$name'";
$sql_result=mysql_query($sql);
$sql_row=mysql_fetch_array($sql_result);
?>


修改资料








修改用户个人资料

  
      
      
    
      
      
    
  
 
  
        

          
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
              
              
              
            
          
用户名
密码   
                
                *
重复密码   
                
                *
Email   
                
                *
性别   
                
              
真实性名   
                
              
地址   
                
              
电话   
                
              
主页   
                
              
OICQ   
                
              
签名 ";?>  
                
              
    
                
                
              

        

      

  


  





}
else {
show_error(4);
}
?>
## modify_l.php
require "func.php";
if ($b1) {
if (is_user_exits($name) and check_user_password($name,$password)) {
setcookie ("jl_forum[name]",$name);
setcookie ("jl_forum[password]",$password);
redirect2("modify.php");
}
else {
show_error(4);
}
}
else {
?>


main





    
    
  
    
    
  
    
    

      
修改资料登陆

    

      

        
          
            
            
          
          
            
            
          
        
用户名:
              
            
密码:
              
            

        
      

    

      
论坛信息

                                                                                                        



}
?>
## oper.php
require "func .php";
if (adminok()) {
if (isset($add_board)) {
if (isset($name) and isset($chinesename) and !is_board_exits($name)) {
create_board_table($name . elseif (isset($del_board)) {
                                                   board)) {
                                                                                                                                                                .                                                                  ) {
                                                                                                                                                                                                                                                                    } ";
             $founderr= ​}
                                                                                                                                                                                                                                                         . An error occurred! (Most likely the user does not exist)";
                 $founderr=1;                                                                                                             del_admin($name) ;
                                                                                                                                                                           {
   echo "What are you going to do?"
?>

The above introduces the mysql-based forum (5) of marc by marc jacobs official website, including the content of marc by marc jacobs official website. I hope it will be helpful to friends who are interested in PHP tutorials.


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template