外地注册不需要手机号码认证,但是需要会员审核,填入信息
本地注册可以开通手机号码认证,不需要会员审核,注册好后就是普通会员。
更多http://wiki.phpwind.me/wiki/%E6%B3%A8%E5%86%8C%E6%9C%BA
首先进后台把实名认证开启,注册时会员审核也开启
register.php
找到
- $inv_config = L::config(null, 'inv_config');
下加
- $db_authstate=0;
- $ipTable = L::loadClass('IPTable', 'utility');
- $ipfrom = $ipTable->getIpFrom($onlineip);
- //$ipfrom = iconv('gbk','utf-8',$ipfrom);//如果编码是utf-8记得把注释去掉
- if(strpos($ipfrom,"浙江")!==false){//修改自己所在的省份或市
- $rg_config['rg_ifcheck']=0;
- $db_authstate=1;
- }
如果编码是utf-8记得把注释去掉
修改自己所在的省份或市
找到
改成
- S::gp(array('regreason','regreason2',
找到
- $register->setSafecv($question, $customquest, $answer);
下加
- if(!$regreason2){
- $register->setReason($regreason);
- }
template/wind/register.htm
找到
改成
- }else{
- print <<<EOT
- -->
- <input name="regreason2" type="hidden" value="1" />
- <!--
- EOT;
- }
- }if($customfield){
找到
改成
- function _setGroupid() {
- if ($this->data['groupid'] == 0) {
- global $regreason2;
- if($regreason2){
- $this->data['groupid'] = -1;
- }else{
- $this->data['groupid'] = L::reg('rg_ifcheck') ? 7 : -1;
- }
- }
- }