您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

phpcms v9 封闭前台和后台登陆验证码方法

2025/10/6 10:03:17发布13次查看
phpcms v9 关闭前台和后台登陆验证码方法
前台关闭验证码
?
删除下面的代码
?
\phpcms\modules\member\index.php查找“//判断验证码”下面4行代码:
//判断验证码
? $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\templates\default\member\login.html 模板页面代码:
?
{l('checkcode')}:{form::checkcode('code_img', '4', '14', 84, 24)}
?
?
后台验证码关闭方法类似,路径和文件名不一样
?
\phpcms\modules\admin\index.php
?
登陆模板,这点后缀名是php,实际是html模板文件
\phpcms\modules\admin\templates\login.tpl.php
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product