Exemple #1
0
     $prohonor = substrs($prohonor, 90);
     $upmembers['honor'] = $prohonor;
     if ($userdb['honor'] != $prohonor) {
         pwAddFeed($winduid, 'honor', '', array('honor' => $prohonor));
     }
 }
 require_once R_P . 'require/bbscode.php';
 $wordsfb = L::loadClass('FilterUtil');
 foreach (array($prosign, $prointroduce, $prohonor) as $key => $value) {
     if (($banword = $wordsfb->comprise($value)) !== false) {
         Showmsg('sign_wordsfb');
     }
 }
 //upmeminfo
 if ($db_union[7]) {
     list($customdata) = Getcustom($customdata, false, true);
     !empty($customdata) && ($upmeminfo['customdata'] = addslashes(serialize($customdata)));
 }
 foreach ($customfield as $value) {
     $fieldvalue = Char_cv($_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;
     }
 }
Exemple #2
0
     redirectULink($action, $uid, $username);
 }
 if (!getstatus($userdb['userstatus'], 7) && !CkInArray($windid, $manager)) {
     $userdb['email'] = "<img src=\"{$imgpath}/email.gif\" border=\"0\">";
 }
 if (getstatus($userdb['userstatus'], 9) && $db_signwindcode) {
     require_once R_P . 'require/bbscode.php';
     if ($_G['imgwidth'] && $_G['imgheight']) {
         $db_windpic['picwidth'] = $_G['imgwidth'];
         $db_windpic['picheight'] = $_G['imgheight'];
     }
     $_G['fontsize'] && ($db_windpic['size'] = $_G['fontsize']);
     $userdb['signature'] = convert($userdb['signature'], $db_windpic, 2);
 }
 $userdb['signature'] = str_replace("\n", "<br>", $userdb['signature']);
 $db_union[7] && (list($customdata, $custominfo) = Getcustom($userdb['customdata']));
 $userdb['rvrc'] = floor($userdb['rvrc'] / 10);
 if ($db_ifonlinetime && $userdb['onlinetime']) {
     $userdb['onlinetime'] = floor($userdb['onlinetime'] / 3600);
 } else {
     $userdb['onlinetime'] = 0;
 }
 if (!$userdb['todaypost'] || $userdb['lastpost'] < $tdtime) {
     $userdb['todaypost'] = 0;
 }
 $averagepost = floor($userdb['postnum'] / ceil(($timestamp - $userdb['regdate']) / (3600 * 24)));
 $userdb['regdate'] = get_date($userdb['regdate'], 'Y-m-d');
 $userdb['lastvisit'] = get_date($userdb['lastvisit'], 'Y-m-d');
 $userdb['onlineip'] = explode('|', $userdb['onlineip']);
 $_cache = getDatastore();
 $_cache->delete('UID_' . $userdb['uid']);