} } foreach ($fields as $fieldid => $value) { if ($space["field_{$fieldid}"] && empty($value['invisible'])) { $space['profile_base'] = 1; } } //ᆰᅬ슈ᅧᅬ $space['profile_contact'] = 0; foreach (array('mobile', 'qq', 'msn') as $value) { if ($space[$value]) { $space['profile_contact'] = 1; } } //ᄏ�위 $space['star'] = getstar($space['experience']); //ᆬᄉᄍ ̄ᄌ₩ $_SGLOBAL['ad'] = array(); $_GET['view'] = 'me'; $_TPL['css'] = 'space'; $dept = isDepartment($space['uid']); $ntags = getntags($space[uid], 'index', 0); include_once template("space_index"); //ᄒᄎ틔ᅤᅤᅢ function show_credit() { global $_SGLOBAL, $space; $showcredit = getcount('show', array('uid' => $space['uid']), 'credit'); if ($showcredit > 0) { if ($showcredit == 1) { //ᅬᅡᄚᅪ뛹
//隐私 $space['showprofile'] = 1; $space['sex'] = $space['sex'] == '1' ? '<a href="network.php?ac=space&sex=1&searchmode=1">' . lang('man') . '</a>' : ($space['sex'] == '2' ? '<a href="network.php?ac=space&sex=2&searchmode=1">' . lang('woman') . '</a>' : ''); $space['birthday'] = ($space['birthyear'] ? "{$space['birthyear']}" . lang('year') : '') . ($space['birthmonth'] ? "{$space['birthmonth']}" . lang('month') : '') . ($space['birthday'] ? "{$space['birthday']}" . lang('day') : ''); $space['marry'] = $space['marry'] == '1' ? '<a href="network.php?ac=space&marry=1&searchmode=1">' . lang('unmarried') . '</a>' : ($space['marry'] == '2' ? '<a href="network.php?ac=space&marry=2&searchmode=1">' . lang('married') . '</a>' : ''); $space['birth'] = trim(($space['birthprovince'] ? "<a href=\"network.php?ac=space&birthprovince=" . rawurlencode($space['birthprovince']) . "&searchmode=1\">{$space['birthprovince']}</a>" : '') . ($space['birthcity'] ? " <a href=\"network.php?ac=space&birthcity=" . rawurlencode($space['birthcity']) . "&searchmode=1\">{$space['birthcity']}</a>" : '')); $space['reside'] = trim(($space['resideprovince'] ? "<a href=\"network.php?ac=space&resideprovince=" . rawurlencode($space['resideprovince']) . "&searchmode=1\">{$space['resideprovince']}</a>" : '') . ($space['residecity'] ? " <a href=\"network.php?ac=space&residecity=" . rawurlencode($space['residecity']) . "&searchmode=1\">{$space['residecity']}</a>" : '')); $space['qq'] = empty($space['qq']) ? '' : "<a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?V=1&Uin={$space['qq']}&Site={$space['username']}&Menu=yes\">{$space['qq']}</a>"; //自定义 @(include_once S_ROOT . './data/data_profilefield.php'); $fields = empty($_SGLOBAL['profilefield']) ? array() : $_SGLOBAL['profilefield']; } else { $space['showprofile'] = 0; } //积分 $space['creditstar'] = getstar($space['credit']); //域名 $space['domainurl'] = space_domain($space); if ($space['spacenote']) { $space['spacenote'] = getstr($space['spacenote'], 50); } //个人动态 $feedlist = array(); if (ckprivacy('feed')) { $query = $_SGLOBAL['db']->query("SELECT * FROM " . tname('feed') . " WHERE uid='{$space['uid']}' ORDER BY dateline DESC LIMIT 0,10"); while ($value = $_SGLOBAL['db']->fetch_array($query)) { if (ckfriend($value)) { realname_set($value['uid'], $value['username']); $feedlist[] = $value; } }