标签:
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> -->
标签:
原文地址:http://www.cnblogs.com/iz100/p/4975449.html