phpcms v9屏蔽后台登陆验证码的方法
时间:2021-01-19日 来源: 作者: 
	打开\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);
}
改成如下(在前面添加注释符)
		复制代码
	
	
//$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);
/
相关文章
推荐文章
热门文章
