php怎么删掉验证码,架设网页无法显示后台验证码在线等,怎么才能删除验证码。急...

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

defined('IN_HS') or exit('Access Denied');

if($_grade > -1 && $_groupid == 1) showmessage($LANG['you_are_logined'], "?mod=hs&file=index&action=index");

if($HS['adminaccessip'] && !ip_access($PHP_IP, $HS['adminaccessip'])) showmessage($LANG['visit_banned']);

if($dosubmit)

{

require HS_ROOT.'/languages/'.$CONFIG['language'].'/member.lang.php';

require HS_ROOT.'/member/include/member.class.php';

$member = new member($username);

if(!isset($forward)) $forward = $PHP_SCHEME.$PHP_DOMAIN.$PHP_PORT.$PHP_SELF;

if(!isset($checkcodestr)) $checkcodestr = '';

checkcode($checkcodestr, $HS['enableadmincheckcode'], $PHP_REFERER);

if(empty($username) || $member->is_badword($username)) showmessage($LANG['username_non_compliant'], $PHP_REFERER);

if(strlen($password)<2 || strlen($password)>20) showmessage($LANG['password_not_less_than_2char_greater_than_20char'], $PHP_REFERER);

if(!$_userid || $_username != $username)

{

$result = $member->login($password);

if(!$result) showmessage($member->errormsg(), $PHP_REFERER);

}

$memberinfo = $db->get_one("SELECT m.userid,m.password,m.answer,m.groupid,a.* FROM ".TABLE_MEMBER." m ,".TABLE_ADMIN." a WHERE m.userid=a.userid AND m.username='$username' LIMIT 0,1");

if(!$memberinfo)

{

if($HS['maxfailedtimes'])

{

$failedtimes = $_SESSION['failedtimes'];

$failedtimes ++;

$overtime = $PHP_TIME+$HS['maxlockedtime']*3600;

if($HS['maxfailedtimes']<=$failedtimes)

{

$db->query("INSERT INTO ".TABLE_BANIP."(ip,ifban,overtime) VALUES('$PHP_IP',1,$overtime)");

cache_banip();

showmessage($LANG['fail_num_over_ip_locked']);

}

$_SESSION['failedtimes'] = $failedtimes;

}

showmessage($LANG['not_existe_user'], $PHP_REFERER);

}

if($memberinfo['password'] != hsmd5($password)) showmessage($LANG['wrong_password'], $PHP_REFERER);

if($memberinfo['groupid'] != 1) showmessage($LANG['you_are_not_admin'], $PHP_REFERER);

$_SESSION['admin_grade'] = $memberinfo['grade'];

if($memberinfo['grade'] > 0)

{

$_SESSION['admin_modules'] = $memberinfo['modules'] ? array_filter(explode(',', $memberinfo['modules'])) : array();

$_SESSION['admin_channelids'] = $memberinfo['channelids'] ? array_filter(explode(',', $memberinfo['channelids'])) : array();

$_SESSION['admin_purviewids'] = $memberinfo['purviewids'] ? array_filter(explode(',', $memberinfo['purviewids'])) : array();

$_SESSION['admin_catids'] = $memberinfo['catids'] ? array_filter(explode(',', $memberinfo['catids'])) : array();

$_SESSION['admin_specialids'] = $memberinfo['specialids'] ? array_filter(explode(',', $memberinfo['specialids'])) : array();

}

showmessage($LANG['login_success'], $forward);

}

else

{

if(!$forward) $forward = '?mod=hs&file=index&action=index';

$username = isset($username) ? $username : $_username;

$password = isset($password) ? $password : '';

include admintpl('login');

}

?>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值