aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-08-09 22:21:55 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-08-09 22:21:55 +0000
commit56772bb75aeeb2ef1420a270409e10cbd9042da1 (patch)
tree1a732197589009ce45d4c59db25b359e9e874592 /phpBB/profile.php
parent5f31c038025955cb46b5b174b4b363c0a31c028f (diff)
downloadforums-56772bb75aeeb2ef1420a270409e10cbd9042da1.tar
forums-56772bb75aeeb2ef1420a270409e10cbd9042da1.tar.gz
forums-56772bb75aeeb2ef1420a270409e10cbd9042da1.tar.bz2
forums-56772bb75aeeb2ef1420a270409e10cbd9042da1.tar.xz
forums-56772bb75aeeb2ef1420a270409e10cbd9042da1.zip
More varied changes, again hopefully not breaking anything
git-svn-id: file:///svn/phpbb/trunk@824 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index 882848ae50..0c77560381 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -160,7 +160,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
"YIM_IMG" => $yim_img,
"WEBSITE" => ( ($profiledata['user_website']) ? stripslashes($profiledata['user_website']) : "&nbsp;" ),
"WEBSITE_IMG" => $www_img,
- "LOCATION" => ( ($profiledatas['user_from']) ? stripslashes($profiledata['user_from']) : "&nbsp;" ),
+ "LOCATION" => ( ($profiledata['user_from']) ? stripslashes($profiledata['user_from']) : "&nbsp;" ),
"OCCUPATION" => ( ($profiledata['user_occ']) ? stripslashes($profiledata['user_occ']) : "&nbsp;" ),
"INTERESTS" => ( ($profiledata['user_interests']) ? stripslashes($profiledata['user_interests']) : "&nbsp;" ),
"AVATAR_IMG" => $avatar_img,
@@ -331,7 +331,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
for($i = 0; $i < count($ban_email_list); $i++)
{
$match_email = str_replace("*@", ".*@", $ban_email_list[$i]['ban_email']);
- if( eregi("^" . $match_email . "$", $email) )
+ if( preg_match("/^" . $match_email . "$/is", $email) )
{
$error = TRUE;
if(isset($error_msg))
@@ -767,21 +767,21 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
else if($mode == "editprofile")
{
$user_id = $userdata['user_id'];
- $username = stripslashes($userdata['username']);
+ $username = $userdata['username'];
$email = $userdata['user_email'];
$password = "";
$password_confirm = "";
$icq = $userdata['user_icq'];
- $aim = stripslashes($userdata['user_aim']);
- $msn = stripslashes($userdata['user_msnm']);
- $yim = stripslashes($userdata['user_yim']);
+ $aim = $userdata['user_aim'];
+ $msn = $userdata['user_msnm'];
+ $yim = $userdata['user_yim'];
- $website = stripslashes($userdata['user_website']);
- $location = stripslashes($userdata['user_from']);
- $occupation = stripslashes($userdata['user_occ']);
- $interests = stripslashes($userdata['user_interests']);
- $signature = stripslashes($userdata['user_sig']);
+ $website = $userdata['user_website'];
+ $location = $userdata['user_from'];
+ $occupation = $userdata['user_occ'];
+ $interests = $userdata['user_interests'];
+ $signature = $userdata['user_sig'];
$viewemail = $userdata['user_viewemail'];
$notifypm = $userdata['user_notify_pm'];
@@ -861,13 +861,13 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
"ALWAYS_ALLOW_SMILIES_YES" => ($allowsmilies) ? "checked=\"checked\"" : "",
"ALWAYS_ALLOW_SMILIES_NO" => (!$allowsmilies) ? "checked=\"checked\"" : "",
"ALLOW_AVATAR" => $board_config['allow_avatar_upload'],
- "AVATAR" => ($user_avatar != "") ? "<img src=\"".$board_config['avatar_path']."/$user_avatar\" alt=\"\" />" : "",
+ "AVATAR" => ($user_avatar != "") ? "<img src=\"" . $board_config['avatar_path'] . "/" . stripslashes($user_avatar) . "\" alt=\"\" />" : "",
"AVATAR_SIZE" => $board_config['avatar_filesize'],
- "LANGUAGE_SELECT" => language_select($user_lang),
+ "LANGUAGE_SELECT" => language_select(stripslashes($user_lang)),
"THEME_SELECT" => theme_select($user_theme),
"TIMEZONE_SELECT" => tz_select($user_timezone),
"DATE_FORMAT" => stripslashes($user_dateformat),
- "TEMPLATE_SELECT" => template_select($user_template),
+ "TEMPLATE_SELECT" => template_select(stripslashes($user_template)),
"HTML_STATUS" => $html_status,
"BBCODE_STATUS" => $bbcode_status,
"SMILIES_STATUS" => $smilies_status,