直接用下面的代码,覆盖dede中的login.php即可
1.修正会员卡升级会员级别的判定方式2.修正了订单换货状态用户管理中心订单不显示的问题3.完善后台积分设置数据格式验证方式4.优化前台分页程序5.解决综合模板找回密码提示错误问题6.优化商品支付模块程序7.重写优惠卷代码8.优惠卷使用方式改为1卡1号的方式9.优惠卷支持打印功能10.重新支付模块,所有支付方式支持自动对账11.去掉规格库存显示12.修正部分功能商品价格显示4个0的问题13.全新的支
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("用户和密码没填写完整!","");
}
//}
?>
|
| ||
| ||
| | ||










