@@ -790,24 +790,6 @@ public function update_profile($id, $info, $section)
790790 break ;
791791 }
792792
793- case 'messaging ' :
794- {
795- $ form = array (
796- 'jabber ' => Utils::trim (Input::post ('form_jabber ' )),
797- 'icq ' => Utils::trim (Input::post ('form_icq ' )),
798- 'msn ' => Utils::trim (Input::post ('form_msn ' )),
799- 'aim ' => Utils::trim (Input::post ('form_aim ' )),
800- 'yahoo ' => Utils::trim (Input::post ('form_yahoo ' )),
801- );
802-
803- // If the ICQ UIN contains anything other than digits it's invalid
804- if (preg_match ('%[^0-9]% ' , $ form ['icq ' ])) {
805- throw new Error (__ ('Bad ICQ ' ));
806- }
807-
808- break ;
809- }
810-
811793 case 'personality ' :
812794 {
813795 $ form = array ();
@@ -1012,7 +994,7 @@ public function update_profile($id, $info, $section)
1012994
1013995 public function get_user_info ($ id )
1014996 {
1015- $ user ['select ' ] = array ('u.id ' , 'u.username ' , 'u.email ' , 'u.title ' , 'u.realname ' , 'u.url ' , 'u.jabber ' , ' u.icq ' , ' u.msn ' , ' u.aim ' , ' u.yahoo ' , ' u. location ' , 'u.signature ' , 'u.disp_topics ' , 'u.disp_posts ' , 'u.email_setting ' , 'u.notify_with_post ' , 'u.auto_notify ' , 'u.show_smilies ' , 'u.show_img ' , 'u.show_img_sig ' , 'u.show_avatars ' , 'u.show_sig ' , 'u.timezone ' , 'u.dst ' , 'u.language ' , 'u.style ' , 'u.num_posts ' , 'u.last_post ' , 'u.registered ' , 'u.registration_ip ' , 'u.admin_note ' , 'u.date_format ' , 'u.time_format ' , 'u.last_visit ' , 'g.g_id ' , 'g.g_user_title ' , 'g.g_moderator ' );
997+ $ user ['select ' ] = array ('u.id ' , 'u.username ' , 'u.email ' , 'u.title ' , 'u.realname ' , 'u.url ' , 'u.location ' , 'u.signature ' , 'u.disp_topics ' , 'u.disp_posts ' , 'u.email_setting ' , 'u.notify_with_post ' , 'u.auto_notify ' , 'u.show_smilies ' , 'u.show_img ' , 'u.show_img_sig ' , 'u.show_avatars ' , 'u.show_sig ' , 'u.timezone ' , 'u.dst ' , 'u.language ' , 'u.style ' , 'u.num_posts ' , 'u.last_post ' , 'u.registered ' , 'u.registration_ip ' , 'u.admin_note ' , 'u.date_format ' , 'u.time_format ' , 'u.last_visit ' , 'g.g_id ' , 'g.g_user_title ' , 'g.g_moderator ' );
1016998
1017999 $ user = DB ::for_table ('users ' )
10181000 ->table_alias ('u ' )
@@ -1070,31 +1052,6 @@ public function parse_user_info($user)
10701052 $ user_info ['personal ' ][] = '<dd><span class="email"> ' .$ user ['email_field ' ].'</span></dd> ' ;
10711053 }
10721054
1073- if ($ user ['jabber ' ] != '' ) {
1074- $ user_info ['messaging ' ][] = '<dt> ' .__ ('Jabber ' ).'</dt> ' ;
1075- $ user_info ['messaging ' ][] = '<dd> ' .Utils::escape ((ForumSettings::get ('o_censoring ' ) == '1 ' ) ? Utils::censor ($ user ['jabber ' ]) : $ user ['jabber ' ]).'</dd> ' ;
1076- }
1077-
1078- if ($ user ['icq ' ] != '' ) {
1079- $ user_info ['messaging ' ][] = '<dt> ' .__ ('ICQ ' ).'</dt> ' ;
1080- $ user_info ['messaging ' ][] = '<dd> ' .$ user ['icq ' ].'</dd> ' ;
1081- }
1082-
1083- if ($ user ['msn ' ] != '' ) {
1084- $ user_info ['messaging ' ][] = '<dt> ' .__ ('MSN ' ).'</dt> ' ;
1085- $ user_info ['messaging ' ][] = '<dd> ' .Utils::escape ((ForumSettings::get ('o_censoring ' ) == '1 ' ) ? Utils::censor ($ user ['msn ' ]) : $ user ['msn ' ]).'</dd> ' ;
1086- }
1087-
1088- if ($ user ['aim ' ] != '' ) {
1089- $ user_info ['messaging ' ][] = '<dt> ' .__ ('AOL IM ' ).'</dt> ' ;
1090- $ user_info ['messaging ' ][] = '<dd> ' .Utils::escape ((ForumSettings::get ('o_censoring ' ) == '1 ' ) ? Utils::censor ($ user ['aim ' ]) : $ user ['aim ' ]).'</dd> ' ;
1091- }
1092-
1093- if ($ user ['yahoo ' ] != '' ) {
1094- $ user_info ['messaging ' ][] = '<dt> ' .__ ('Yahoo ' ).'</dt> ' ;
1095- $ user_info ['messaging ' ][] = '<dd> ' .Utils::escape ((ForumSettings::get ('o_censoring ' ) == '1 ' ) ? Utils::censor ($ user ['yahoo ' ]) : $ user ['yahoo ' ]).'</dd> ' ;
1096- }
1097-
10981055 if (ForumSettings::get ('o_avatars ' ) == '1 ' ) {
10991056 $ avatar_field = Utils::generate_avatar_markup ($ user ['id ' ]);
11001057 if ($ avatar_field != '' ) {
0 commit comments