论坛风格切换
  • 4289阅读
  • 0回复

[功能优化与改进]本地手机实名认证+外地会员审核(防注册机方案) [复制链接]

上一主题 下一主题
离线太史慈
 

发帖
766
金币
626
威望
556
只看楼主 倒序阅读 使用道具 楼主  发表于: 2011-05-11
外地注册不需要手机号码认证,但是需要会员审核,填入信息
本地注册可以开通手机号码认证,不需要会员审核,注册好后就是普通会员。
更多http://wiki.phpwind.me/wiki/%E6%B3%A8%E5%86%8C%E6%9C%BA


首先进后台把实名认证开启,注册时会员审核也开启

register.php
找到
  1. $inv_config = L::config(null, 'inv_config');

下加
  1.     $db_authstate=0;
  2.     $ipTable = L::loadClass('IPTable', 'utility');
  3.     $ipfrom = $ipTable->getIpFrom($onlineip);
  4.     //$ipfrom = iconv('gbk','utf-8',$ipfrom);//如果编码是utf-8记得把注释去掉
  5.     if(strpos($ipfrom,"浙江")!==false){//修改自己所在的省份或市
  6.         $rg_config['rg_ifcheck']=0;
  7.         $db_authstate=1;
  8.     }

如果编码是utf-8记得把注释去掉
修改自己所在的省份或市


找到
  1. S::gp(array('regreason',
改成
  1. S::gp(array('regreason','regreason2',

找到
  1. $register->setSafecv($question, $customquest, $answer);
下加
  1.     if(!$regreason2){
  2.         $register->setReason($regreason);
  3.     }

template/wind/register.htm
找到
  1. }if($customfield){

改成
  1. }else{
  2. print <<<EOT
  3. -->
  4.       <input name="regreason2" type="hidden" value="1" />
  5. <!--
  6. EOT;
  7. }
  8. }if($customfield){

找到
  1. function _setGroupid() {
改成
  1.     function _setGroupid() {
  2.         if ($this->data['groupid'] == 0) {
  3.             global $regreason2;
  4.             if($regreason2){
  5.                 $this->data['groupid'] = -1;
  6.             }else{
  7.                 $this->data['groupid'] = L::reg('rg_ifcheck') ? 7 : -1;
  8.             }
  9.         }
  10.     }



[url=http://www.phpwind.com]phpwind[/url]
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
提到某人:
选择好友
上一个 下一个