$nickname = strip_tags(trim($_POST['nickname'])); if (nickname_is_banned($nickname)) { $error_msg_array[] = gettext("Nickname not permitted. Choose another!"); $valid = false; } } else { $error_msg_array[] = gettext("A nickname is required"); $valid = false; } if (isset($_POST['email']) && strlen(trim($_POST['email'])) > 0) { $email = trim($_POST['email']); if (!email_address_valid($email)) { $error_msg_array[] = gettext("Invalid email address format"); $valid = false; } else { if (email_is_banned($email)) { $error_msg_array[] = gettext("Email Address not permitted. Choose another!"); $valid = false; } if (forum_get_setting('require_unique_email', 'Y') && !email_is_unique($email)) { $error_msg_array[] = gettext("Email Address already in use. Choose another!"); $valid = false; } } } else { $error_msg_array[] = gettext("An email address is required"); $valid = false; } if (isset($_POST['dob_year']) && isset($_POST['dob_month']) && isset($_POST['dob_day']) && @checkdate($_POST['dob_month'], $_POST['dob_day'], $_POST['dob_year'])) { $new_user_prefs['DOB_DAY'] = trim($_POST['dob_day']); $new_user_prefs['DOB_MONTH'] = trim($_POST['dob_month']);
echo " <tr>\n"; echo " <td align=\"left\" class=\"subhead\" colspan=\"1\">", gettext("User Details"), "</td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"center\">\n"; echo " <table width=\"90%\" class=\"posthead\">\n"; echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Username"), ":</td>\n"; echo " <td align=\"left\"><a href=\"user_profile.php?webtag={$webtag}&uid={$uid}\" target=\"_blank\" class=\"popup 650x500\">", htmlentities_array($user['LOGON']), "</a></td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Nickname"), ":</td>\n"; echo " <td align=\"left\">", htmlentities_array($user['NICKNAME']), "</td>\n"; echo " </tr>\n"; if (email_address_valid($user['EMAIL'])) { if (email_is_banned($user['EMAIL'])) { echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Email address"), ":</td>\n"; echo " <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&unban_email=", rawurlencode($user['EMAIL']), "&ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$user['EMAIL']}\">{$user['EMAIL']}</a> <a href=\"mailto:{$user['EMAIL']}\"><img src=\"", html_style_image('link.png'), "\" border=\"0\" align=\"top\" alt=\"", gettext("External Link"), "\" title=\"", gettext("External Link"), "\" /></a> (", gettext("Banned"), ")</td>\n"; echo " </tr>\n"; } else { echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Email address"), ":</td>\n"; echo " <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&ban_email=", rawurlencode($user['EMAIL']), "&ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$user['EMAIL']}\">{$user['EMAIL']}</a> <a href=\"mailto:{$user['EMAIL']}\"><img src=\"", html_style_image('link.png'), "\" border=\"0\" align=\"top\" alt=\"", gettext("External Link"), "\" title=\"", gettext("External Link"), "\" /></a></td>\n"; echo " </tr>\n"; } } else { echo " <tr>\n"; echo " <td align=\"left\" width=\"150\">", gettext("Email address"), ":</td>\n"; echo " <td align=\"left\">{$user['EMAIL']}</td>\n"; echo " </tr>\n";
$user_info_new['NICKNAME'] = strip_tags(trim($_POST['nickname'])); if (nickname_is_banned($user_info_new['NICKNAME'])) { $error_msg_array[] = gettext("Nickname not permitted. Choose another!"); $valid = false; } } else { $error_msg_array[] = gettext("A nickname is required"); $valid = false; } if (isset($_POST['email']) && strlen(trim($_POST['email'])) > 0) { $user_info_new['EMAIL'] = trim($_POST['email']); if (!email_address_valid($user_info_new['EMAIL'])) { $error_msg_array[] = gettext("Invalid email address format"); $valid = false; } else { if (email_is_banned($user_info_new['EMAIL'])) { $error_msg_array[] = gettext("Email Address not permitted. Choose another!"); $valid = false; } if (forum_get_setting('require_unique_email', 'Y') && !email_is_unique($user_info_new['EMAIL'], $profile_uid)) { $error_msg_array[] = gettext("Email Address already in use. Choose another!"); $valid = false; } } } else { $error_msg_array[] = gettext("Email address is required!"); $valid = false; } if (isset($_POST['dob_year']) && isset($_POST['dob_month']) && isset($_POST['dob_day']) && @checkdate($_POST['dob_month'], $_POST['dob_day'], $_POST['dob_year'])) { $dob['DAY'] = trim($_POST['dob_day']); $dob['MONTH'] = trim($_POST['dob_month']);