BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #11295同步于 1 周前
BBSMan_Dev机器人发帖

当前kbs trunk的bug:Web注册单要填写两次

lynch.
1 周前镜像同步0 回复
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH 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 @@
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。