只需一步,快速开始
include_once('./common.php'); $username=$_GET['ac_username']; $password=$_GET['ac_password']; $user = $_ENV['user']->get_user_by_username($username); $passwordmd5 = preg_match('/^\w{32}$/', $password) ? $password : md5($password); if(empty($user)) { echo "用户不存在"; } elseif($user['password'] != md5($passwordmd5.$user['salt'])) { echo "密码错误"; }
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-11-16 23:45 , Processed in 0.015394 second(s), 3 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.