一升级就出错咯。、。。。
BLEPRE."members WHERE uid='$uid'"); $user['bigavatar'] = $this->_uc_avatar($uid, 'big'); $this->view->assign('uid', $uid); $this->view->assign('user', $user); $this->view->assign('status', $status); $this->view->display('admin_user'); } function _check_username($username) { $username = addslashes(trim(stripslashes($username))); if(!$_ENV['user']->check_username($username)) { return UC_USER_CHECK_USERNAME_FAILED; /* } elseif($username != $_ENV['user']->replace_badwords($username)) { return UC_USER_USERNAME_BADWORD;*/ } elseif($_ENV['user']->check_usernameexists($username)) { return UC_USER_USERNAME_EXISTS; } return 1; } function _check_email($email) { if(!$_ENV['user']->check_emailformat($email)) { return UC_USER_EMAIL_FORMAT_ILLEGAL; } elseif(!$_ENV['user']->check_emailaccess($email)) { return UC_USER_EMAIL_ACCESS_ILLEGAL; } elseif($this->settings['doublee'] && $_ENV['user']->check_emailexists($email)) { return UC_USER_EMAIL_EXISTS; } else { return 1; } } function _format_userlist(&$userlist) { if(is_array($userlist)) { foreach($userlist AS $key => $user) { $userlist[$key]['regdate'] = $this->date($user['regdate']); } } } function _uc_avatar($uid, $size = '', $returnsrc = FALSE) { $size = in_array($size, array('big', 'middle', 'small')) ? $size : 'middle'; $uid = abs(intval($uid)); $uid = sprintf("%09d", $uid); $dir1 = substr($uid, 0, 3); $dir2 = substr($uid, 3, 2); $dir3 = substr($uid, 5, 2); return $returnsrc ? UC_ROOT.'data/avatar/'.$dir1.'/'.$dir2.'/'.$dir3.'/'.substr($uid, -2)."_avatar_$size.jpg" : ''; } } ?>
为什么啊? |