diff -r 2220bab5c784 -r 390eb356cd49 plugins/SpecialUserPrefs.php --- a/plugins/SpecialUserPrefs.php Mon Jan 21 15:38:50 2008 -0500 +++ b/plugins/SpecialUserPrefs.php Mon Jan 21 17:38:57 2008 -0500 @@ -415,6 +415,20 @@ var frm = document.forms.empwform; if ( frm.newpass.value.length < 1 ) return true; + + pass1 = frm.newpass.value; + pass2 = frm.newpass_conf.value; + if ( pass1 != pass2 ) + { + alert($lang.get('usercp_emailpassword_err_password_no_match')); + return false; + } + if ( pass1.length < 6 && pass1.length > 0 ) + { + alert($lang.get('usercp_emailpassword_err_password_too_short')); + return false; + } + if(aes_testpassed) { frm.use_crypt.value = 'yes'; @@ -427,21 +441,6 @@ len = ( typeof cryptkey == 'string' || typeof cryptkey == 'object' ) ? '\nLen: '+cryptkey.length : ''; alert('The key is messed up\nType: '+typeof(cryptkey)+len); } - } - pass1 = frm.newpass.value; - pass2 = frm.newpass_conf.value; - if ( pass1 != pass2 ) - { - alert('The passwords you entered do not match.'); - return false; - } - if ( pass1.length < 6 && pass1.length > 0 ) - { - alert('The new password must be 6 characters or greater in length.'); - return false; - } - if(aes_testpassed) - { pass = frm.newpass.value; pass = stringToByteArray(pass); cryptstring = rijndaelEncrypt(pass, cryptkey, 'ECB'); @@ -548,74 +547,74 @@ if ( !$q ) $db->_die(); - echo '
Your profile has been updated.
'; + echo '
' . $lang->get('usercp_publicinfo_msg_save_success') . '
'; } echo '
'; ?>
- + - + - + - - + + - + - + - + - + - + - + - + - + - +
Your public profileget('usercp_publicinfo_heading_main'); ?>
Please note that all of the information you enter here will be publicly viewable. All of the fields on this page are optional and may be left blank if you so desire.get('usercp_publicinfo_note_optional'); ?>
Real name:get('usercp_publicinfo_field_realname'); ?>
Change theme:If you don't like the look of the site, need a visual break, or are just curious, we might have some different themes for you to try out! Change my theme...get('usercp_publicinfo_field_changetheme_title'); ?>get('usercp_publicinfo_field_changetheme_hint'); ?> get('usercp_publicinfo_field_changetheme'); ?>
- Instant messenger contact information + get('usercp_publicinfo_th_im'); ?>
AIM handle:get('usercp_publicinfo_field_aim'); ?>
WLM handle:
If you don't specify the domain (@whatever.com), "@hotmail.com" will be assumed.
get('usercp_publicinfo_field_wlm'); ?>
Yahoo! IM handle:get('usercp_publicinfo_field_yim'); ?>
Jabber/XMPP handle:get('usercp_publicinfo_field_xmpp'); ?>
- Extra contact information + get('usercp_publicinfo_th_contact'); ?>
Your homepage:
Please remember the http:// prefix.
get('usercp_publicinfo_field_homepage'); ?>
Your location:get('usercp_publicinfo_field_location'); ?>
Your job:get('usercp_publicinfo_field_job'); ?>
Your hobbies:get('usercp_publicinfo_field_hobbies'); ?>

If this is checked, your e-mail address will be displayed on your user page. To protect your address from spambots, your e-mail address will be encrypted.

get('usercp_publicinfo_field_email_public_hint'); ?>
user_extra['email_public'] == 1) echo 'checked="checked"'; ?> size="30" />
- +