} } if (isset($_POST['privacy'])) { foreach ($_POST['privacy'] as $key => $value) { if (isset($_G['cache']['profilesetting'][$key])) { $space['privacy']['profile'][$key] = intval($value); } } DB::update('common_member_field_home', array('privacy' => addslashes(serialize($space['privacy']))), array('uid' => $space['uid'])); } manyoulog('user', $_G['uid'], 'update'); include_once libfile('function/feed'); feed_add('profile', 'feed_profile_update_' . $operation, array('hash_data' => 'profile')); countprofileprogress(); $message = $vid ? lang('spacecp', 'profile_verify_verifying', array('verify' => $verifyconfig['title'])) : ''; profile_showsuccess($message); } elseif (submitcheck('passwordsubmit', 0, $seccodecheck, $secqaacheck)) { $membersql = $memberfieldsql = $authstradd1 = $authstradd2 = $newpasswdadd = ''; $setarr = array(); $emailnew = dhtmlspecialchars($_G['gp_emailnew']); $ignorepassword = 0; if ($_G['setting']['connect']['allow'] && DB::result_first("SELECT conisregister FROM " . DB::table('common_member_connect') . " WHERE uid='{$_G['uid']}'")) { $_G['gp_oldpassword'] = ''; $ignorepassword = 1; if (empty($_G['gp_newpassword'])) { showmessage('profile_passwd_empty'); } } if ($_G['gp_questionidnew'] === '') { $_G['gp_questionidnew'] = $_G['gp_answernew'] = ''; } else {
} } if (isset($_POST['privacy'])) { foreach ($_POST['privacy'] as $key => $value) { if (isset($_G['cache']['profilesetting'][$key])) { $space['privacy']['profile'][$key] = intval($value); } } DB::update('common_member_field_home', array('privacy' => addslashes(serialize($space['privacy']))), array('uid' => $space['uid'])); } if ($_G['setting']['my_app_status']) { manyoulog('user', $_G['uid'], 'update'); } include_once libfile('function/feed'); feed_add('profile', 'feed_profile_update_' . $operation, array('hash_data' => 'profile')); profile_showsuccess(); } elseif (submitcheck('passwordsubmit', 0, $seccodecheck, $secqaacheck)) { $membersql = $memberfieldsql = $authstradd1 = $authstradd2 = $newpasswdadd = ''; $setarr = array(); $emailnew = dhtmlspecialchars($_G['gp_emailnew']); if ($_G['gp_questionidnew'] === '') { $_G['gp_questionidnew'] = $_G['gp_answernew'] = ''; } else { $secquesnew = $_G['gp_questionidnew'] > 0 ? random(8) : ''; } if (!empty($_G['gp_newpassword']) && $_G['gp_newpassword'] != $_G['gp_newpassword2']) { showmessage('profile_passwd_notmatch', '', array(), array('return' => true)); } loaducenter(); $ucresult = uc_user_edit($_G['username'], $_G['gp_oldpassword'], $_G['gp_newpassword'], $emailnew != $_G['member']['email'] ? $emailnew : '', 0, $_G['gp_questionidnew'], $_G['gp_answernew']); if ($ucresult == -1) {