2018-03-19
6626℃
验证码很烦,,所以就想取消掉。
方法如下:
取消后台登陆验证码:
打开\phpcms\modules\admin\index.php
找到
$code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'), HTTP_REFERER);
if ($_SESSION['code'] != strtolower($code)) {
$_SESSION['code'] = '';
showmessage(L('code_error'), HTTP_REFERER);
}全部注消如下:
//隐藏验证码 $code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'), HTTP_REFERER);
//if ($_SESSION['code'] != strtolower($code)) {
// $_SESSION['code'] = '';
//showmessage(L('code_error'), HTTP_REFERER);
//}呵呵,,这下清静了。。