phpcms v9取消验证码

phpcms/modules/admin/index.php
//
$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
<!--
<label><?php echo L('security_code')?>:</label><input name="code" type="text" class="ipt ipt_reg" onfocus="document.getElementById('yzm').style.display='block'" /> --> <!-- <div id="yzm" class="yzm"><?php echo form::checkcode('code_img')?><br /><a href="javascript:document.getElementById('code_img').src='<?php echo SITE_PROTOCOL.SITE_URL.WEB_PATH;?>api.php?op=checkcode&m=admin&c=index&a=checkcode&time='+Math.random();void(0);"><?php echo L('click_change_validate')?></a></div> -->

 

posted on 2015-11-18 18:08  unifyyeteng  阅读(310)  评论(0编辑  收藏  举报

导航