!function_exists('readover') && exit('Forbidden'); if (!$_POST['step']) { /* modify for authentication */ $isAuthMobile = getstatus($userdb['userstatus'], PW_USERSTATUS_AUTHMOBILE); if ($db_authstate) { if ($isAuthMobile && $userdb['authmobile']) { //将手机号的中间四位隐掉 $authmobile = $userdb['authmobile']; for ($i = 3; $i <= 6; $i++) { $authmobile[$i] = '*'; } } } /* modify for authentication */ $customFieldsString = getCustomFieldsAndDefaultValue('contact'); require_once uTemplate::PrintEot('info_link'); pwOutPut(); } elseif ($_POST['step'] == '2') { PostCheck(); S::slashes($userdb); S::gp(array('prooicq', 'proaliww', 'proicq', 'proyahoo', 'promsn', 'proauthmobile', 'oicq', 'aliww'), 'P'); //联系方式 处理 //$prooicq && !is_numeric($prooicq) && Showmsg('illegal_OICQ'); $proicq && !is_numeric($proicq) && Showmsg('illegal_OICQ'); $oicq && !is_numeric($oicq) && Showmsg('QQ号码只能输入数字'); if ($aliww && strlen($aliww) > 31) { Showmsg('阿里旺旺账号字符不能超过30'); } //update member $pwSQL = array('icq' => $proicq);
<?php !function_exists('readover') && exit('Forbidden'); S::gp(array('step')); if (empty($step)) { $customFieldsString = getCustomFieldsAndDefaultValue('education'); require_once uTemplate::PrintEot('info_education'); pwOutPut(); } elseif ($step == 2) { //update customerfield data $customfieldService = L::loadClass('CustomerFieldService', 'user'); /* @var $customfieldService PW_CustomerFieldService */ $customfieldService->saveProfileCustomerData('education'); // defend start CloudWind::yunUserDefend('editprofile', $winduid, $windid, $timestamp, 0, 101, '', '', '', array('profile' => 'updateeducation')); // defend end refreshto("profile.php?action=modify&info_type={$info_type}", 'operate_success', 2, true); }
$trade = array(); } $isAuthAlipay = getstatus($userdb['userstatus'], PW_USERSTATUS_AUTHALIPAY); if (!$_POST['step']) { //* include_once pwCache::getPath(D_P.'data/bbscache/dbreg.php'); extract(pwCache::getData(D_P . 'data/bbscache/dbreg.php', false)); require_once R_P . 'require/forum.php'; require_once R_P . 'require/credit.php'; $sexselect = $yearslect = $monthslect = $dayslect = array(); $ifpublic = $httpurl = $email_Y = $email_N = $prosign_Y = $prosign_N = ''; $ifsign = false; getstatus($userdb['userstatus'], PW_USERSTATUS_PUBLICMAIL) && ($ifpublic = 'checked'); ${'email_' . (getstatus($userdb['userstatus'], PW_USERSTATUS_RECEIVEMAIL) ? 'Y' : 'N')} = 'checked'; ${'prosign_' . (getstatus($userdb['userstatus'], PW_USERSTATUS_SHOWSIGN) ? 'Y' : 'N')} = 'checked'; //$db_union[7] && list($customdata,$custominfo) = Getcustom($userdb['customdata']); $customFieldsString = getCustomFieldsAndDefaultValue('basic'); $sexselect[(int) $userdb['gender']] = 'checked'; //$tradeinfo = unserialize($userdb['tradeinfo']); if ($userdb['timedf']) { $temptimedf = str_replace('.', '_', abs($userdb['timedf'])); $userdb['timedf'] < 0 ? ${'zone_0' . $temptimedf} = 'selected' : (${'zone_' . $temptimedf} = 'selected'); } !$rg_timestart && ($rg_timestart = 1960); !$rg_timeend && ($rg_timeend = 2010); //$getbirthday = explode('-',$userdb['bday']); //$yearslect[(int)$getbirthday[0]] = $monthslect[(int)$getbirthday[1]] = $dayslect[(int)$getbirthday[2]] = 'selected'; if ($userdb['signature'] || $userdb['introduce']) { $SCR = 'post'; } require_once uTemplate::PrintEot('info_base'); pwOutPut();
<?php !function_exists('readover') && exit('Forbidden'); if (!$_POST['step']) { $customFieldsString = getCustomFieldsAndDefaultValue('other'); require_once uTemplate::PrintEot('info_other'); pwOutPut(); } else { if ($_POST['step'] == '2') { PostCheck(); //update customerfield data $customfieldService = L::loadClass('CustomerFieldService', 'user'); /* @var $customfieldService PW_CustomerFieldService */ $customfieldService->saveProfileCustomerData('other'); /*S::slashes($userdb); $upmembers = $upmemdata = $upmeminfo = array(); foreach ($customfield as $value) { $fieldvalue = S::escapeChar($_POST[$value['field']]); if ($value['required'] && ($value['editable'] == 1 || strlen($userdb[$value['field']]) == 0) && !$fieldvalue) { Cookie('pro_modify', 'other', 'F', false); Showmsg('field_empty'); } if (strlen($userdb[$value['field']]) == 0 || ($userdb[$value['field']] != $fieldvalue && $value['editable'] == 1)) { if ($value['maxlen'] && strlen($fieldvalue) > $value['maxlen']) { Showmsg('field_lenlimit'); } $upmeminfo[$value['field']] = $fieldvalue; } } //update meminfo if ($upmeminfo) {