优选主流主机商
任何主机均需规范使用

如何在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);

//}

未经允许不得转载:搬瓦工中文网 » 如何在phpCMS V9中去除后台登录验证码功能?