Home  >  Article  >  Backend Development  >  phpcms v9 封闭前台和后台登陆验证码方法

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

WBOY
WBOYOriginal
2016-06-13 13:15:431149browse

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 模板页面代码:

???????


?? {form::checkcode('code_img', '4', '14', 84, 24)}
?

?

后台验证码关闭方法类似,路径和文件名不一样

?

\phpcms\modules\admin\index.php??

?

登陆模板,这点后缀名是php,实际是html模板文件

\phpcms\modules\admin\templates\login.tpl.php

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn