Web方式注册帐号的时候 bbsreg.php 不能正确生成注册单(new_register),要登录之后用 bbsfillform.php 再生成一个。
大概是 bbsreg.php 的一个 bug(或者是一个feature),应该判断一下 HAVE_WFORUM == 0
,就可以省掉一个注册单的填写。
Index: bbsreg.php
===================================================================
--- bbsreg.php (revision xxx)
+++ bbsreg.php (working copy)
@@ -83,8 +83,11 @@
settype($m_register,"bool");
if(!$m_register)$mobile_phone="";
-
- $ret=@bbs_createregform($userid,$realname,$dept,$address,$gender,$year,$month,$day,$reg_email,$phone,$mobile_phone, $_POST['OICQ'], $_POST['ICQ'], $_POST['MSN'], $_POST['homepage'], intval($_POST['face']), $_POST['myface'], intval($_POST['width']), intval($_POST['height']), intval($_POST['groupname']), $_POST['country'], $_POST['province'], $_POST['city'], intval($_POST['shengxiao']), intval($_POST['blood']), intval($_POST['belief']), intval($_POST['occupation']), intval($_POST['marital']), intval($_POST['education']), $_POST['college'], intval($_POST['character']), FALSE);//自动生成注册单
+ if (BBS_WFORUM==0) {
+ $ret=bbs_createregform($userid,$realname,$dept,$address,$gender,$year,$month,$day,$reg_email,$phone,$mobile_phone,FALSE);//自动生成注册单
+ } else {
+ $ret=@bbs_createregform($userid,$realname,$dept,$address,$gender,$year,$month,$day,$reg_email,$phone,$mobile_phone, $_POST['OICQ'], $_POST['ICQ'], $_POST['MSN'], $_POST['homepage'], intval($_POST['face']), $_POST['myface'], intval($_POST['width']), intval($_POST['height']), intval($_POST['groupname']), $_POST['country'], $_POST['province'], $_POST['city'], intval($_POST['shengxiao']), intval($_POST['blood']), intval($_POST['belief']), intval($_POST['occupation']), intval($_POST['marital']), intval($_POST['education']), $_POST['college'], intval($_POST['character']), FALSE);//自动生成注册单
+ }
switch($ret)
{
case 0:
@@ -215,4 +218,4 @@
--
修改:lynch FROM 111.193.164.*
FROM 111.193.164.*