前台关闭方法:
\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)) {
$_SESSION['code'] = '';
showmessage(L('code_error'), HTTP_REFERER);
}\phpcms\templates\default\member\login.html //模板页面代码:
{form::checkcode('code_img', '5', '14', 120, 26)}
后台关闭方法(和前台类似):
\phpcms\modules\admin\index.php // 查找“//不为口令卡验证”下面4行代码
$code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) :showmessage(L('input_code'), HTTP_REFERER);
if ($_SESSION['code'] != strtolower($code)) {
$_SESSION['code'] = '';
showmessage(L('code_error'), HTTP_REFERER);
}\phpcms\modules\admin\templates\login.tpl.php //模板页面代码:
注:php内容html代码是注释不掉的,最好用//注释掉