Parcourir la source

统一登录提示

tags/6.2.7
叙述、别离 il y a 2 ans
Parent
révision
283f6f66e3
4 fichiers modifiés avec 11 ajouts et 11 suppressions
  1. +1
    -1
      src/admin/css/login.min.css
  2. +3
    -3
      src/admin/login.php
  3. +1
    -1
      src/admin/templets/login.htm
  4. +6
    -6
      src/user/index_do.php

+ 1
- 1
src/admin/css/login.min.css Voir le fichier

@@ -1 +1 @@
body{line-height:1.6;letter-spacing:.6px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2{line-height:24px;font-size:24px;color:#393d49;font-weight:600}.mb-6{margin-bottom:6.5rem!important}.btn,input,select{font-size:14px!important}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:30px;line-height:30px;font-size:14px;color:#545b62!important}.logo,.form-control{height:36px}.login-from{margin:0 auto;width:500px}.login-box{padding:1.25rem;background:#fff}.login-box,.form-control,.btn-md,.alert,.rounded{border-radius:.5rem!important}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}#validateimg{border-radius:0 .5rem .5rem 0;cursor:pointer}#browsehappy{padding:20px 30px;font-size:14px;line-height:16px;color:#856404;background:#fff3cd;border-radius:.35rem;border:0}.browsehappy-close{float:right;cursor:pointer}@media (max-width:760px){.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}.login-from{width:100%}}
body{line-height:1.6;letter-spacing:.6px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2{line-height:1.2;font-size:24px;color:#393d49;font-weight:600}.mb-6{margin-bottom:6.5rem!important}.btn,input,select{font-size:14px!important}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:30px;line-height:30px;font-size:14px;color:#545b62!important}.logo,.form-control{height:36px}.login-from{margin:0 auto;width:500px}.login-box{padding:1.25rem;background:#fff}.login-box,.form-control,.btn-md,.alert,.rounded{border-radius:.5rem!important}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}#validateimg{border-radius:0 .5rem .5rem 0;cursor:pointer}#browsehappy{padding:20px 30px;font-size:14px;line-height:16px;color:#856404;background:#fff3cd;border-radius:.35rem;border:0}.browsehappy-close{float:right;cursor:pointer}@media (max-width:760px){.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}.login-from{width:100%}}

+ 3
- 3
src/admin/login.php Voir le fichier

@@ -54,15 +54,15 @@ if ($dopost == 'login') {
if ($res == 1) {
$cuserLogin->keepUser();
if (!empty($gotopage)) {
ShowMsg('成功登录,正在跳转管理首页', $gotopage);
ShowMsg('正在登录后台管理,请稍等', $gotopage);
exit();
} else {
ShowMsg('成功登录,正在跳转管理首页', 'index.php');
ShowMsg('正在登录后台管理,请稍等', 'index.php');
exit();
}
} else if ($res == -1) {
ResetVdValue();
ShowMsg('管理员账号不存在', 'login.php', 0, 1000);
ShowMsg('管理员账号错误', 'login.php', 0, 1000);
exit;
} else {
ResetVdValue();


+ 1
- 1
src/admin/templets/login.htm Voir le fichier

@@ -53,7 +53,7 @@
<img src="../apps/vdimgck.php" onclick="this.src='../apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码" id="validateimg">
</div>
</div>
<div class="text-center"><button type="submit" class="btn btn-success btn-md btn-block">登录</button></div>
<div><button type="submit" class="btn btn-success btn-md btn-block">登录</button></div>
</form>
</div>
<span><?php echo $cfg_powerby;?></span>


+ 6
- 6
src/user/index_do.php Voir le fichier

@@ -61,7 +61,7 @@ if ($fmdo == 'sendMail') {
exit();
}
if ($row['spacesta'] != -10) {
ShowMsg('您的帐号不在邮件验证状态,本操作无效', '-1');
ShowMsg('操作无效,您的帐号不在邮件验证状态', '-1');
exit();
}
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET spacesta=0 WHERE mid='{$mid}' ");
@@ -156,7 +156,7 @@ if ($fmdo == 'sendMail') {
}
if (CheckUserID($userid, '', false) != 'ok') {
ResetVdValue();
ShowMsg("您输入的会员名<span class='text-primary'>{$userid}</span>不合法", "index.php");
ShowMsg("您输入的会员名<span class='text-primary'>{$userid}</span>已禁止", "index.php");
exit();
}
if ($pwd == '') {
@@ -177,7 +177,7 @@ if ($fmdo == 'sendMail') {
$rs = $cfg_ml->CheckUser($userid, $pwd);
if ($rs == 0) {
ResetVdValue();
ShowMsg("您的账号不存在", "index.php", 0, 2000);
ShowMsg("您的账号错误", "index.php", 0, 2000);
exit();
} else if ($rs == -1) {
ResetVdValue();
@@ -191,10 +191,10 @@ if ($fmdo == 'sendMail') {
//清除会员缓存
$cfg_ml->DelCache($cfg_ml->M_ID);
if (empty($gourl) || preg_match("#action|_do#i", $gourl)) {
ShowMsg("成功登录,正在跳转会员首页", "index.php", 0, 2000);
ShowMsg("正在登录会员中心,请稍等", "index.php", 0, 2000);
} else {
$gourl = str_replace('^', '&', $gourl);
ShowMsg("成功登录,正在跳转指定页面", $gourl, 0, 2000);
ShowMsg("正在前往指定页面,请稍等", $gourl, 0, 2000);
}
exit();
}
@@ -202,7 +202,7 @@ if ($fmdo == 'sendMail') {
//退出登录
else if ($dopost == "exit") {
$cfg_ml->ExitCookie();
ShowMsg("已退出登录", "index.php", 0, 2000);
ShowMsg("已退出会员中心", "index.php", 0, 2000);
exit();
}
} else if ($fmdo == 'purl'){


Chargement…
Annuler
Enregistrer