欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

dedecms后臺驗證碼總提示錯誤的解決方法

 更新時間:2007年03月21日 00:00:00   作者:  
直接用下面的代碼,覆蓋dede中的login.php即可
復制代碼 代碼如下:

<?
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");
                               //header("location:index.php");
                               exit();
                       }
              }
              else if($res==-1){
                      ShowMsg("你的用戶名不存在!","");
              }
              else{
                      ShowMsg("你的密碼錯誤!","");
              }
     }//<-密碼不為空
     else{
            ShowMsg("用戶和密碼沒填寫完整!","");
     }

//<-驗證用戶
}

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理系統(tǒng)</title>
<link href="base.css" rel="stylesheet" type="text/css">
</head>
<body style='MARGIN: 0px' bgColor='#ffffff' leftMargin='0' topMargin='0' scroll='no'>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" style="BORDER-COLLAPSE: collapse">
  <tr> 
    <td width="100%" height="64" background="img/indextitlebg.gif"><img src="img/indextitle.gif" width="250" height="64"> 
    </td>
  </tr>
  <tr> 
    <td width="100%" height="20"> </td>
  </tr>
  <tr> 
    <td width="100%" height="20" valign="bottom">
        <table width="540" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="right" style="FONT-SIZE: 2pt">&nbsp;</td>
        </tr>
        <tr> 
          <td><IMG height=14 src="img/book1.gif" width=20>&nbsp; 用戶登錄</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td width="100%" height="1" background="img/sp_bg.gif"></td>
  </tr>
  <tr> 
    <td width="100%" height="2"></td>
  </tr>
  <tr> 
    <td width="100%" height="136" valign="top">
        <form name="form1" method="post" action="login.php">
        <input type="hidden" name="gotopage" value="<?if(!empty($gotopage)) echo $gotopage;?>">
        <input type="hidden" name="dopost" value="login">
        <table width="540" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td colspan="2" height="4"></td>
          </tr>
          <tr> 
            <td width="156" height="30" align="center"> 用戶名:</td>
            <td width="384"> <input type="text" name="userid" style="width:150;height:20"> 
            </td>
          </tr>
          <tr> 
            <td height="30" align="center"> 密 碼: </td>
            <td> <input type="password" name="pwd" style="width:150;height:20"> 
            </td>
          </tr>

          <tr> 
            <td height="50" colspan="2" align="center"> <input type="button" name="sm1" value="登錄" style="background-color:#BAE171;border:1px solid #666666" onClick="this.form.submit();"> 
              &nbsp; <input type="button" name="sm2" value="Power by DedeCms" onClick="window.open('http://www.dbjr.com.cn');" style="background-color:#FFFFFF;border:1px solid #DDDDDD;color:#DDDDDD"> 
              &nbsp; </td>
          </tr>
        </table>
      </form></td>
  </tr>
  <tr> 
    <td width="100%" height="2" valign="top"></td>
  </tr>
</table>
</body>
</html>

相關文章

  • php和asp語法上的區(qū)別總結

    php和asp語法上的區(qū)別總結

    在本篇文章中小編給大家分享了關于php和asp語法上的區(qū)別以及相關代碼知識點,需要的朋友們學習下。
    2019-05-05
  • php常用ODBC函數(shù)集(詳細)

    php常用ODBC函數(shù)集(詳細)

    本篇文章是對php中的常用ODBC函數(shù)進行了詳細的分析介紹,需要的朋友參考下
    2013-06-06
  • Centos 6.5下PHP 5.3安裝ffmpeg擴展的步驟詳解

    Centos 6.5下PHP 5.3安裝ffmpeg擴展的步驟詳解

    大家都知道ffmpeg是一款視頻流的軟件了,我們在linux系統(tǒng)中可以安裝ffmpeg了,這篇文章主要介紹了在Centos 6.5下PHP 5.3安裝ffmpeg擴展的步驟,需要的朋友可以參考下。
    2017-03-03
  • PHP禁止頁面緩存的代碼

    PHP禁止頁面緩存的代碼

    在PHP中可以輕松的使用下面的語句實現(xiàn)禁止頁面緩存,但比較難記特整理下,方便大家使用。
    2011-10-10
  • PHP 文件上傳源碼分析(RFC1867)

    PHP 文件上傳源碼分析(RFC1867)

    文件上傳,一般分為倆種方式FTP和HTTP, 對于我們的互聯(lián)網(wǎng)應用來說: FTP上傳雖然傳輸穩(wěn)定, 但是易用性和安全性都是個問題.
    2009-10-10
  • php實現(xiàn)復制移動文件的方法

    php實現(xiàn)復制移動文件的方法

    這篇文章主要介紹了php實現(xiàn)復制移動文件的方法,實例分析了php實現(xiàn)針對文件的復制及移動的技巧,需要的朋友可以參考下
    2015-07-07
  • PHP模塊 Memcached功能多于Memcache

    PHP模塊 Memcached功能多于Memcache

    PHP搭配Memcached已經(jīng)是婦孺皆知的標配了。再提似乎讓人覺得太“圡”了,不過有一些細節(jié)不見得人人都清楚
    2011-06-06
  • php在多維數(shù)組中根據(jù)鍵名快速查詢其父鍵以及父鍵值的代碼

    php在多維數(shù)組中根據(jù)鍵名快速查詢其父鍵以及父鍵值的代碼

    有一個多維數(shù)組,有多少維大家可以自定義。假如我們要在這個數(shù)組中找一個鍵為'subIndex'的值,我們可以用for、foreach等方法遍歷查找 反過來,假如我們任意給出一個或多個鍵,要求找出這個鍵的父級數(shù)組的鍵和值。這又如何實現(xiàn)?
    2011-05-05
  • PHP實現(xiàn)簡單的協(xié)程任務調度demo示例

    PHP實現(xiàn)簡單的協(xié)程任務調度demo示例

    這篇文章主要介紹了PHP實現(xiàn)簡單的協(xié)程任務調度demo,結合實例形式詳細分析了PHP基于協(xié)程的任務調度基本原理、定義及使用技巧,需要的朋友可以參考下
    2020-02-02
  • Json_decode 解析json字符串為NULL的解決方法(必看)

    Json_decode 解析json字符串為NULL的解決方法(必看)

    下面小編就為大家?guī)硪黄狫son_decode 解析json字符串為NULL的解決方法(必看)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-02-02

最新評論