phpcms v9屏蔽后台登陆验证码的方法

打开\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)) {
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)) {
//showmessage(L('code_error'),HTTP_REFERER);
/

相关文章

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注