- $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);
- }
第二步
- <label><?php echo L('security_code')?>:</label><inputname="code" type="text" class="ipt
- ipt_reg"onfocus="document.getElementByIdx_x('yzm').style.display='block'"/>
注释掉第39行
- <div id="yzm" class="yzm"><?php echoform::checkcode('code_img')?><br /><ahref="javascript:document.getElementByIdx_x
- ('code_img').src='<?php echoSITE_PROTOCOL.SITE_URL.WEB_PATH;?>api.php?
- op=checkcode&m=admin&c=index&a=checkcode&time='+Math.random();void(0);"><?phpecho L('click_change_validate')?></a></div>