本帖最后由 pannysp 于 2009-11-20 12:49 编辑
应该和登录成功一样,给个提示然后再跳转到首页啊。
谁给个修改方案。。。。。
do_register.php里,代码:showmessage('registered', rawurldecode($refer));好像没什么效果啊- $setarr = array(
- 'uid' => $newuid,
- 'username' => $username,
- 'groupid' => 2,
- 'password' => md5("$newuid|$_SGLOBAL[timestamp]"), //本地密码随机生成
- 'dateline' => $_SGLOBAL['timestamp'],
- 'updatetime' => $_SGLOBAL['timestamp'],
- 'lastlogin' => $_SGLOBAL['timestamp'],
- 'ip' => $_SGLOBAL['onlineip']
- );
- //更新本地用户库
- inserttable('members', $setarr, 0, true);
- //设置cookie
- ssetcookie('auth', authcode("$setarr[password]\t$setarr[uid]", 'ENCODE'), 2592000);
- ssetcookie('loginuser', $username, 31536000);
- showmessage('registered', rawurldecode($refer));
- }
- }
-
- $register_rule = $_SCONFIG['registerrule'];
- $title = $lang['site_reg'];
- $refer = rawurldecode($refer);
- include template('site_register');
复制代码 |