dedecms collection tutorial dedecms background verification code always prompts the solution to the error

WBOY
Release: 2016-07-29 08:36:54
Original
1512 people have browsed it

Just use the following code to overwrite login.php in dede

Copy the code The code is as follows:


require_once(dirname(__FILE__)."/../include/config_base.php");
require_once(dirname(__FILE__)."/../include/inc_userlogin.php");
if(empty($dopost)) $dopost="";
//--------------------------------
//登录检测
//--------------------------------
if($dopost=="login")
{
  if(empty($validate)) $validate=="";
  else $validate = strtolower($validate);
  if( empty($_SESSION["s_validate"]) ) $svali = "";
  else $svali = $_SESSION["s_validate"];
   $cuserLogin = new userLogin();
     if(!empty($userid)&&!empty($pwd))
     {
              $res = $cuserLogin->checkUser($userid,$pwd);
              //成功登录
              if($res==1){
                       $cuserLogin->keepUser();
                       if(!empty($gotopage)){
                               //header("location:$gotopage");
                               ShowMsg("成功登录,正在转向管理管理主页!",$gotopage);
                               exit();
                       }
                       else{
                               ShowMsg("成功登录,正在转向管理管理主页!","index.php");
                                                                                                                                                                                                                                                                                                    Username does not exist!","");
                                                                                                                                                                                                                                                                                                                                                              The password is not empty
                       ShowMsg( "User and password are not filled in completely!","");
     }
//<-Verify user
}
?>



管理系统




   
    
  
   
    
  
   
    
  
   
    
  
   
    
  
   
    
 
    
 

        
         
          
        
         
          
        
      
 
  用户登录

        

        
        
        
           
            
          
           
            
            
          
           
            
            

  ="background-color:#BAE171;border:1px solid #666666"
                                                                                                   "background-color:#FFFFFF;border:1px solid #DDDDDD;color:#DDDDDD">                                          







The above introduces the dedecms collection tutorial dedecms background verification code always prompts the solution to the error, including the dedecms collection tutorial content, 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
 用户名:   
            
 密 码: