6
m0nty,
Here's a few bits from my
register.php (FYI, I use XOOPS 2.0.7.3),
lines 155-186:
// OpenTable();
echo "<h5><strong><p>Please review the following information:</p></strong></h5>";
echo _US_USERNAME.": ".$myts->makeTboxData4Preview($uname)."<br />";
echo _US_NAME.": ".$myts->makeTboxData4Preview($name)."<br />";
echo _US_LOCATION.": ".$myts->makeTboxData4Preview($user_from)."<br />";
echo _US_EMAIL.": ".$myts->makeTboxData4Preview($email)."<br />";
//if ( $user_avatar != '' ) {
// echo _US_AVATAR.": <img src='uploads/".$user_avatar."' alt='' /><br />";
//}
if ( isset($url) && $url != '' ) {
$url = formatURL($myts->makeTboxData4Preview($url));
echo _US_WEBSITE.": $url<br />";
}
$f_timezone = ($timezone_offset < 0) ? 'GMT '.$timezone_offset : 'GMT +'.$timezone_offset;
echo _US_TIMEZONE.": $f_timezone<br />";
echo "<h5><strong><p><strong>If the above information to be correct, please click the Finish button below to receive your registration e-mail.</strong></p>
<p>IMPORTANT NOTE: If you are using an online e-mail provider such as Yahoo, AOL or MSN, you may need to check your Trash or Junk mail folder for your registration e-mail. To prevent this from happening in the future, please add our web address to your Safe or Trusted sites list in your email settings.</p></strong></h5>";
echo "<form action='register.php' method='post'>
<input type='hidden' name='uname' value='".$myts->makeTboxData4PreviewInForm($uname)."' />
<input type='hidden' name='name' value='".$myts->makeTboxData4PreviewInForm($name)."' />
<input type='hidden' name='email' value='".$myts->makeTboxData4PreviewInForm($email)."' />";
//echo "<input type='hidden' name='user_avatar' value='".$myts->makeTboxData4PreviewInForm($user_avatar)."' />";
$user_viewemail = isset($user_viewemail) ? intval($user_viewemail) : 0;
echo "<input type='hidden' name='user_viewemail' value='".$user_viewemail."' />
<input type='hidden' name='timezone_offset' value='".(float)$timezone_offset."' />
<input type='hidden' name='url' value='".$myts->makeTboxData4PreviewInForm($url)."' />
<input type='hidden' name='location' value='".$myts->makeTboxData4PreviewInForm($user_from)."' />
<input type='hidden' name='pass' value='".$myts->makeTboxData4PreviewInForm($pass)."' />
<input type='hidden' name='vpass' value='".$myts->makeTboxData4PreviewInForm($vpass)."' />
<input type='hidden' name='user_mailok' value='".intval($user_mailok)."' />
<br /><br /><input type='hidden' name='op' value='finish' /><input type='submit' value='". _US_FINISH ."' /></form>";
// CloseTable();
these are
lines 194-218 (same file):
case 'finish':
include 'header.php';
$uname = trim($uname);
$email = trim($email);
$name = trim($name);
$pass = trim($pass);
$vpass = trim($vpass);
$stop = userCheck($uname, $email, $pass, $vpass);
if ( empty($stop) ) {
$member_handler =& xoops_gethandler('member');
$newuser =& $member_handler->createUser();
if ( isset($user_viewemail) ) {
$newuser->setVar('user_viewemail',$user_viewemail);
}
if ( isset($attachsig) ) {
$newuser->setVar('attachsig',$attachsig);
}
$name = isset($name) ? $name : '';
$newuser->setVar('name', $name);
$newuser->setVar('uname', $uname);
$newuser->setVar('email', $email);
$newuser->setVar('location', $user_from);
if ( isset($url) && $url!='' ) {
$newuser->setVar('url', formatURL($url));
}
Does this look okay? I don't see anything wrong here or maybe I'm just going blind...?
Edit: I can post the whole file if you like, just let me know. Thanks for helping out here.