phpcms v9屏蔽后台登陆验证码的方法
发布时间:2021-05-16 11:22:40 所属栏目:教程 来源:网络整理
导读:打开phpcmsmodulesadminindex.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_
打开phpcmsmodulesadminindex.php $code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'),HTTP_REFERER); 改成如下(在前面添加注释符) //$code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'),HTTP_REFERER); |