aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-12-15 16:51:04 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-12-15 16:51:04 +0000
commit0e78572ee991e3b35e07097570e83d5064dcf4cc (patch)
tree079411f36ca291daef063b6c7f6b36035e09d0f8 /phpBB/profile.php
parent10983563b312b1a5acc89c94963ba588132fd09b (diff)
downloadforums-0e78572ee991e3b35e07097570e83d5064dcf4cc.tar
forums-0e78572ee991e3b35e07097570e83d5064dcf4cc.tar.gz
forums-0e78572ee991e3b35e07097570e83d5064dcf4cc.tar.bz2
forums-0e78572ee991e3b35e07097570e83d5064dcf4cc.tar.xz
forums-0e78572ee991e3b35e07097570e83d5064dcf4cc.zip
Moved agreement text to lang_main
git-svn-id: file:///svn/phpbb/trunk@1590 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php51
1 files changed, 39 insertions, 12 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index bfe78cf828..4f87625d1c 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -456,6 +456,11 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
$template->assign_vars(array(
"COPPA" => $coppa,
+ "REGISTRATION" => $lang['Registration'],
+ "AGREEMENT" => $lang['Reg_agreement'],
+ "AGREE_OVER_13" => $lang['Agree_over_13'],
+ "AGREE_UNDER_13" => $lang['Agree_under_13'],
+ "DO_NOT_AGREE" => $lang['Agree_not'],
"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&amp;agreed=true"),
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&amp;agreed=true&amp;coppa=true"))
@@ -523,6 +528,28 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
$user_avatar = ( empty($user_avatar_loc) && $mode == "editprofile" ) ? $userdata['user_avatar'] : "";
$user_avatar_type = ( empty($user_avatar_loc) && $mode == "editprofile" ) ? $userdata['user_avatar_type'] : "";
+
+ if( isset($HTTP_POST_VARS['avatargallery']) || isset($HTTP_POST_VARS['submitavatar']) || isset($HTTP_POST_VARS['cancelavatar']) )
+ {
+ $username = stripslashes($username);
+ $email = stripslashes($email);
+ $password = "";
+ $password_confirm = "";
+
+ $icq = stripslashes($icq);
+ $aim = stripslashes($aim);
+ $msn = stripslashes($msn);
+ $yim = stripslashes($yim);
+
+ $website = stripslashes($website);
+ $location = stripslashes($location);
+ $occupation = stripslashes($occupation);
+ $interests = stripslashes($interests);
+ $signature = stripslashes($signature);
+
+ $user_lang = stripslashes($user_lang);
+ $user_dateformat = stripslashes($user_dateformat);
+ }
}
if( isset($HTTP_POST_VARS['submit']) )
@@ -1383,17 +1410,17 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
$s_hidden_vars = '<input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" /><input type="hidden" name="user_id" value="' . $userdata['user_id'] . '" /><input type="hidden" name="current_email" value="' . $userdata['user_email'] . '" />';
$s_hidden_vars .= '<input type="hidden" name="user_id" value="' . $user_id . '" />';
- $s_hidden_vars .= '<input type="hidden" name="username" value="' . addslashes($username) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="email" value="' . addslashes($email) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="icq" value="' . addslashes($icq) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="aim" value="' . addslashes($aim) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="msn" value="' . addslashes($msn) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="yim" value="' . addslashes($yim) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="website" value="' . addslashes($website) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="location" value="' . addslashes($location) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="occupation" value="' . addslashes($occupation) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="interests" value="' . addslashes($interests) . '" />';
- $s_hidden_vars .= '<input type="hidden" name="signature" value="' . addslashes($signature) . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="username" value="' . $username . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="email" value="' . $email . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="icq" value="' . $icq . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="aim" value="' . $aim . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="msn" value="' . $msn . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="yim" value="' . $yim . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="website" value="' . $website . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="location" value="' . $location . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="occupation" value="' . $occupation . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="interests" value="' . $interests . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="signature" value="' . $signature . '" />';
$s_hidden_vars .= '<input type="hidden" name="viewemail" value="' . $viewemail . '" />';
$s_hidden_vars .= '<input type="hidden" name="notifypm" value="' . $notifypm . '" />';
$s_hidden_vars .= '<input type="hidden" name="popup_pm" value="' . $popuppm . '" />';
@@ -1406,7 +1433,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
$s_hidden_vars .= '<input type="hidden" name="style" value="' . $user_style . '" />';
$s_hidden_vars .= '<input type="hidden" name="language" value="' . $user_lang . '" />';
$s_hidden_vars .= '<input type="hidden" name="timezone" value="' . $user_timezone . '" />';
- $s_hidden_vars .= '<input type="hidden" name="dateformat" value="' . addslashes($user_dateformat) . '" />';
+ $s_hidden_vars .= '<input type="hidden" name="dateformat" value="' . $user_dateformat . '" />';
$template->assign_vars(array(
"L_AVATAR_GALLERY" => $lang['Avatar_gallery'],