phpcmsV9后台登陸界面去掉驗證碼


 

第一步

找到文件phpcms\modules\admin\index.php
注釋掉第33行到第36行
$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\modules\admin\templates\login.tpl.php
注釋掉第38行
<!--<label><?php echo L('security_code')?>:</label><inputname="code" type="text" class="ipt ipt_reg"onfocus="document.getElementById('yzm').style.display='block'"/>-->

 


注釋掉第39行
<div id="yzm" class="yzm"><?php echoform::checkcode('code_img')?><br /><ahref="javascript:document.getElementById('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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM