前臺關閉驗證碼
刪除下面的代碼
\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 模板頁面代碼:
<div class="input">
<label>{L('checkcode')}:</label><input type="text" id="code" name="code" size="8" class="input-text">{form::checkcode('code_img', '4', '14', 84, 24)}
</div>
後臺驗證碼關閉方法類似,路徑和文件名不一樣
\phpcms\modules\admin\index.php
登陸模板,這點後綴名是php,實際是html模板文件
\phpcms\modules\admin\templates\login.tpl.php