»'; $return = '用户中心 ' . $raquo; $return .= $str != '' ? ' ' . ($member_menu[$type][$m] != '' ? $member_menu[$type][$m] : '首页') . ' ' . $raquo . ' ' . $str . '' : ' ' . ($member_menu[$type][$m] != '' ? $member_menu[$type][$m] : '首页'); return $return; unset($raquo); unset($return); } define('CURSCRIPT', 'index'); define('IN_MYMPS', true); define('IN_MEMBERADMIN', true); define('MEMBERDIR', dirname(__FILE__)); require_once MEMBERDIR . './../include/global.php'; require_once MEMBERDIR . './../data/config.php'; require_once MYMPS_DATA . '/config.db.php'; require_once MYMPS_INC . '/db.class.php'; require_once MYMPS_INC . '/cache.fun.php'; $uid = $s_uid = $s_pwd = $mymps_image = ''; require_once MYMPS_INC . '/member.class.php'; if (!($log = $member_log->chk_in())) { write_msg('', '../' . $mymps_global['cfg_member_logfile'] . '?url=' . urlencode(GetUrl())); } $box = isset($box) ? intval($box) : 0; $id = isset($id) ? intval($id) : 0; $type = in_array($type, array('user', 'corp')) ? $type : 'user'; $success = isset($success) ? intval($success) : ''; $error = isset($error) ? intval($error) : ''; $alert = isset($alert) ? intval($alert) : ''; $page = isset($page) ? intval($page) : 1; $id = isset($id) ? intval($id) : ''; $where = 'WHERE userid = \'' . $s_uid . '\''; $wherea = 'WHERE a.userid = \'' . $s_uid . '\''; $row = ''; $row = $db->getRow('SELECT * FROM `' . $db_mymps . 'member` ' . $where); $face = $row['prelogo']; $normalface = $row['logo']; $money_own = $row['money_own']; $pm_total = mymps_count('member_pm', 'WHERE touser = \'' . $s_uid . '\' AND if_read = \'0\''); $levelid = $row['levelid']; $group = get_member_group($levelid); $levelname = $group['levelname']; $per_certify = $row['per_certify']; $com_certify = $row['com_certify']; $sj_certify = $row['sj_certify']; $if_corp = $row['if_corp']; $uid = $row['id']; $cityid = $row['cityid']; if ($if_corp == 0) { $mysite = Rewrite('space', array('user' => $row['userid'])); } else { if ($if_corp == 1) { $mysite = Rewrite('store', array('uid' => $row['id'])); } } $allowm = $mymps_global['cfg_if_corp'] == 1 ? array('info', 'pm', 'base', 'avatar', 'levelup', 'certify', 'pay', 'password', 'album', 'comment', 'document', 'certifycorp', 'shop', 'goods', 'shoucang') : array('info', 'pm', 'base', 'avatar', 'levelup', 'certify', 'pay', 'password', 'shoucang'); require_once MEMBERDIR . '/include/mymps.menu.inc.php'; is_array($data) && ($allowm = array_merge(array_keys($data), $allowm)); if (!in_array($m, $allowm)) { $m = 'index'; } unset($data); unset($allowm); $m != 'index' && chk_member_purview('purview_' . $m); $score_change = get_credit_score(); if ($alert == 1) { $score_changer = $score_change['score']['rank']['login']; } else { if ($alert == 2) { $score_changer = $score_change['score']['rank']['coupon']; } else { if ($alert == 3) { $score_changer = $score_change['score']['rank']['group']; } else { if ($alert == 4) { $score_changer = $score_change['score']['rank']['goods']; } } } } if (empty($score_changer)) { $alert = NULL; } $score_changer = ' ' . $score_changer . ''; if ($if_corp != 1 && in_array($m, array('goods', 'coupon', 'group', 'document', 'certifycorp', 'album', 'comment'))) { write_msg('您非商铺会员,请先申请网上店铺再进行操作!', 'index.php?m=shop'); } //mayi('demo9.test.com,59dan.test.com,.test.com,dongying0546.com,pdf8.cn'); include MEMBERDIR . '/include/inc_' . $m . '.php'; is_object($db) && $db->Close(); $mymps_global = $m = $ac = $success = $error = $where = $page = $timestamp = $log = $member_log = $face = $money_own = NULL; $levelid = $pm_total = $row = NULL; unset($row); if ($selectedids) { unset($selectedids); }