VIP会员自动审核的方法:
修改这个文件:/module/member/grade.inc.php
大约第96行的代码:
$db->query("INSERT INTO {$DT_PRE}upgrade (userid,username,groupid,company,truename,telephone,mobile,email,msn,qq,ali,skype,content,addtime,ip,amount,promo_code,promo_type,promo_amount) VALUES ('$_userid','$_username', '$groupid','$company','$truename','$telephone','$mobile','$email','$msn','$qq','$ali','$skype','$content', '$DT_TIME', '$DT_IP','$amount','$promo_code','$promo_type','$promo_amount')");
修改为:
$db->query("INSERT INTO {$DT_PRE}upgrade (userid,username,groupid,company,truename,telephone,mobile,email,msn,qq,ali,skype,content,addtime,ip,amount,promo_code,promo_type,promo_amount,editor,edittime,status,note) VALUES ('$_userid','$_username', '$groupid','$company','$truename','$telephone','$mobile','$email','$msn','$qq','$ali','$skype','$content', '$DT_TIME', '$DT_IP','$amount','$promo_code','$promo_type','$promo_amount','admin','$DT_TIME','3','系统自动审核')");
增加2行代码:
$db->query("UPDATe {$DT_PRE}company SET groupid='7',vip='1',vipt='1',fromtime='$DT_TIME',totime='2145801600' WHERe username='$_username'");//2145801600这个值表示VIP到期时间:2037年12月31日
$db->query("UPDATE {$DT_PRE}member SET groupid='7' WHERe username='$_username'");
大约第97行的代码修改为:
message('恭喜您成为VIP会员!', DT_PATH, 5);
到此就OK啦!
DESTOON-VI 二开教程