} $inv_config = L::config(null, 'inv_config'); if (GetCookie('userads') && $inv_linkopen && $inv_linktype == '0') { list($uid, $a) = explode("\t", GetCookie('userads')); if (is_numeric($uid) || $a && strlen($a) < 16) { require_once R_P . 'require/userads.php'; } } $newSpace->initSet(); $indexRight = $newSpace->viewRight('index'); $indexValue = $newSpace->getPrivacyByKey('index'); if ($indexRight) { $data = $newSpace->layout(); //var_dump($data); } else { $data = array(0 => $newSpace->getSpaceData(array('info' => 1))); } $siteName = getSiteName('o'); $uSeo = USeo::getInstance(); $uSeo->set($space['name'] . ' - ' . $siteName, $space['name'], $space['name'] . ',' . $siteName); if ($winduid && !$space['isMe']) { //邀请处理 if (GetCookie('o_invite') && $db_modes['o']['ifopen'] == 1) { list($o_u, $hash, $app) = explode("\t", GetCookie('o_invite')); if (is_numeric($o_u) && strlen($hash) == 18) { require_once R_P . 'require/o_invite.php'; } } $visitors = unserialize($space['visitors']); is_array($visitors) || ($visitors = array()); if (!isset($visitors[$winduid]) || $timestamp - $visitors[$winduid] > 900) {
if ($showPunch) { $behaviorService = L::loadClass('behaviorservice', 'user'); $punchBehavior = $behaviorService->getBehaviorStatistic($winduid, 'continue_punch'); if ($isPunch) { //未打卡 $unPunchDays = $winddb['punch'] > 0 ? ceil(($tdtime - PwStrtoTime(get_date($winddb['punch'], 'Y-m-d'))) / 86400) : 1; $punchText = $unPunchDays > 1 ? "{$unPunchDays}天未打卡" : "每日打卡"; } else { //已打卡 $punchBehavior['num'] or $punchBehavior['num'] = 1; $punchText = "连续{$punchBehavior['num']}天打卡"; } } $modelList = array('recommendUsers' => 3, 'visitor' => 6, 'friendsBirthday' => array('num' => 3, 'expire' => 21600), 'tags' => 8); $o_weibopost == '0' && ($modelList['friend'] = 6); $spaceData = $newSpace->getSpaceData($modelList); $o_weibopost == '0' && ($myFriends = $spaceData['friend']); //我的好友 $latestVisits = $spaceData['visitor']; //最近访客 $recommendUsers = $spaceData['recommendUsers']; //我推荐关注模块 $birthdays = $spaceData['friendsBirthday']; //好友生日 $tmpmemberTags = $spaceData['tags']; //个人标签 if (S::isArray($tmpmemberTags)) { $memberTagsService = L::loadClass('memberTagsService', 'user'); $memberTags = $memberTagsService->makeClassTags($tmpmemberTags); } /* platform weibo app */