<?php
if (!defined('ROOT')) exit('Can\'t Access !');
class mod_member extends module_class{
function main(){
$this->title = "用户中心 - ".config::get("sitename");
$this->xdzs = $this->mysql->counts("select id from {$this->pre}store where cid='{$this->member[uid]}'");
$symoney = $this->mysql->select_one("select sum(symoney) as i from {$this->pre}res where uid='{$this->member[uid]}'");
$money = $this->mysql->select_one("select sum(money) as i from {$this->pre}res where uid='{$this->member[uid]}'");
$txze = $this->mysql->select_one("select sum(lognum) as i from {$this->pre}atmlog where uid='{$this->member[uid]}'");
$tcje = $this->mysql->select_one("select sum(lognum) as i from {$this->pre}reslog where uid='{$this->member[uid]}' and type='2'");
$this->shzs = $this->mysql->counts("select uid from {$this->pre}user where groupid='3' and dls='{$this->member[username]}'");
$this->tcje = fnum($tcje['i']);
$this->txze = fnum($txze['i']);
$this->qbfl = fnum($money['i']);
$this->dfye = fnum($symoney['i']);
$this->ljfl = fnum($this->qbfl - $this->dfye);
}
function password(){
$this->title = "用户中心 - ".config::get("sitename");
$this->type = $_GET['type'] ? $_GET['type'] : "one";
$this->twourl = rewrite::request("?mod=member&act=password&type=two");
if(submit()){
if($this->type == 'one'){
$cpassword = sintrim($_POST['cpassword']);
$oldpassword = sintrim($_POST['oldpassword']);
$arr['password'] = sintrim($_POST['newpassword']);
if($oldpassword=='') $this->message('go_back','对不起,旧密码不能为空');
if($this->user->password($oldpassword,$this->member[salt]) != $this->member[password]) $this->message('go_back','对不起,旧密码不正确');
if($arr['password']=='') $this->message('go_back','对不起,新密码不能为空');
if($arr['password']!=$cpassword) $this->message('go_back','对不起,两次输入密码不一致');
$this->user->update($arr,$this->member[uid]);
$this->user->dropuser();
$this->message('member_login','登录密码已修改,请重新登录');
}
if($this->type == 'two'){
$cpassword = sintrim($_POST['cpassword']);
$oldpassword = sintrim($_POST['oldpassword']);
$arr['repass'] = sintrim($_POST['newpassword']);
if($oldpassword=='') $this->message('go_back','对不起,旧提现密码不能为空');
if($this->user->password($oldpassword,$this->member[salt]) != $this->member[repass]) $this->message('go_back','对不起,旧提现密码不正确');
if($arr['repass']=='') $this->message('go_back','对不起,新提现密码不能为空');
if($arr['repass']!=$cpassword) $this->message('go_back','对不起,两次输入密码不一致');
$this->user->update($arr,$this->member[uid]);
$this->message('member_password','恭喜您,提现密码修改成功');
}
}
}
function auth(){
$this->title = "用户中心 - ".config::get("sitename");
$_GET['type'] = $_GET['type'] ? $_GET['type'] : "email";
$this->type = $_GET['type'];
$this->mobileurl = rewrite::request("?mod=member&act=auth&type=mobile");
$this->realnameurl = rewrite::request("?mod=member&act=auth&type=realname");
if($this->type=='mobile'){
if($_GET['get']=='checkcode'){
$mtime = $this->member['mtime'];
$this->resendtime = 179 - (time()-$mtime);
}
}
if(submit()){
if($this->type=='email'){
if($this->member['echeck']) $this->message('go_back','对不起,你已经完成邮箱认证!');
$arr['email'] = $_POST['email'];
$username = $this->user->authemail($arr['email'],$this->member[uid]);
if($username!='') $this->message('go_back','对不起,该邮箱已被 '.$username.' 注册!');
$salt = $this->user->salt();
$arr['authemail'] = $this->user->password($salt,$this->member['salt']);
$this->mysql->update("{$this->pre}user",$arr,"uid='{$this->member[uid]}'");
$authemailurl = config::get("sitedomain").Purl("?mod=member&act=authemail&uid={$this->member[uid]}&salt={$salt}");
$this->emailurl = 'http://mail.'.substr($arr['email'],strpos($arr['email'],'@')+1);
$subject = config::get('sitename').'邮箱认证';
$body = "<div style='line-height:1.5;font-size:14px;margin-bottom:15px;color:#4d4d4d;'>";
$body .= "<strong style='display:block;margin-bottom:15px;'>";
$body .= "亲爱的会员:{$this->member['username']} 您好!</strong><p>您已于 ".formattime(time())." 进行邮箱认证操作。</p></div>";
$body .= "<div style='margin-bottom:20px;'><strong style='display:block;margin-bottom:20px;font-size:14px;'>";
$body .= "<a target='_blank' style='color:#f60;' href='{$authemailurl}'>点此进行认证</a></strong>";
$body .= "<p style='color:#666;'><small style='display:block;font-size:12px;margin-bottom:5px;'>";
$body .= "如果上述文字点击无效,请把下面网页地址复制到浏览器地址栏中打开: </small><span style='color:#666;'>";
$body .= "<a target='_blank' href='{$authemailurl}'> {$authemailurl} </a></span></p></div>";
sendmail($arr['email'],$subject,$body,$arr['username']);
}
if($this->type=='mobile'){
$checkcode = $_POST['checkcode'];
if($checkcode){
if($this->member['msalt']!=$checkcode) $this->message("go_back",'对不起,你输入的验证码有误。');
$arr['mcheck'] = 1;
$this->user->update($arr,$this->member[uid]);
$this->message("?mod=member&act=auth&type=mobile",'恭喜你,手机认证成功');
}else{
if($this->user->checkuserphone($_POST['userphone'])) $this->message("go_back",'该手机号码已经存在');
if(time()-$this->member['mtime']>180){
$arr['msalt'] = mt_rand(1000,9999);
$arr['mtime'] = time();
$arr['userphone'] = $_POST['userphone'];
$this->user->update($arr,$this->member['uid']);
$mtime = $arr['mtime'];
@sendsms("你获得的手机验证码:".$arr['msalt']."。【".config::get("sitename")."】",$arr['userphone']);
}else{
if($this->member['userphone']!=$_POST['userphone']){
$arr['msalt'] = mt_rand(1000,9999);
$arr['mtime'] = time();
$arr['userphone'] = $_POST['userphone'];
$this->user->update($arr,$this->member['uid']);
$mtime = $arr['mtime'];
@sendsms("你获得的手机验证码:".$arr['msalt']."。【".config::get("sitename")."】",$arr['userphone']);
}
}
location("?mod=member&act=auth&type=mobile&get=checkcode");
}
}
if($this->type=='realname'){
if($_POST['truename']=='') $this->message("go_back",'真实姓名不能为空');
if($_POST['idcard']=='') $this->message("go_back",'身份证号码不能为空');
//if($this->user->checkidcard($_POST['idcard'])) $this->message("go_back",'该身份证号码已经存在');
$this->user->update($_POST,$this->member[uid]);
$this->message("?mod=member&act=auth&type=realname",'恭喜你,实名认证成功');
}
}
}
function authemail(){
$uid = $_GET['uid'];
$salt = $_GET['salt'];
$user = $this->mysql->select_one("select * from {$this->pre}user where uid='{$uid}'");
$this->username = $user['username'];
$authemail = $this->user->password($salt,$user['salt']);
if($authemail!=$user['authemail']||$user['echeck']=='1'){
$this->message("member_auth",'对不起,你的认证地址已经失效');
}
$arr['authemail'] = '';
$arr['echeck'] = 1;
$this->mysql->update("{$this->pre}user",$arr,"uid='{$user[uid]}'");
$this->message('member_auth','恭喜你,邮箱认证成功');
}
function profile(){
$this->title = "用户中心 - ".config::get("sitename");
$this->type = $_GET['type'] ? $_G
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的破浪分红权返利系统基础版php版源码.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共865个文件
gif:443个
php:172个
jpg:70个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 16 浏览量
2023-10-15
23:59:58
上传
评论
收藏 2.44MB ZIP 举报
温馨提示
基于PHP的破浪分红权返利系统基础版php版源码.zip
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
共 865 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/ace77722cc904668be9c7ee0feb247ba_dwf1354046363.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
易小侠
- 粉丝: 6507
- 资源: 9万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)