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);
//}

posted on 2015-05-21 16:07  秋千为谁荡  阅读(130)  评论(0编辑  收藏  举报

导航