function getUSeo($uscr) { global $windid, $space, $uSeo; if ($uSeo = USeo::getInstance(false)) { return $uSeo->get(); } $appTitle = array('home' => '', 'article' => '帖子', 'diary' => '日志', 'weibo' => '新鲜事', 'kmd' => '孔明灯', 'galbum' => '相册', 'groups' => '群组', 'hot' => '热榜', 'photos' => '相册', 'sharelink' => '分享', 'share' => '分享', 'write' => '记录', 'message' => '消息', 'profile' => '帐号', 'jobcenter' => '任务', 'toolcenter' => '道具', 'friend' => '朋友', 'board' => '留言板', 'set' => '空间装扮', 'info' => '个人资料', 'appset' => '应用管理', 'default' => '个人中心'); $siteName = getSiteName('o'); list($t, $k) = explode('_', $uscr); if ($t == 'space') { if ($k == 'index') { return array($space['name'] . ' - ' . $siteName, $space['name'], $space['name'] . ',' . $siteName); } $kw = isset($appTitle[$k]) ? $appTitle[$k] : $appTitle['default']; return array($kw . ' - ' . $space['name'] . ' - ' . $siteName, $kw, $kw . ',' . $siteName); } else { $title = $appTitle[$k]; $windid && ($title .= ($title ? ' - ' : '') . $windid); $k == 'home' && ($title .= ' - ' . $siteName); return array($title, '', ''); } }
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) { $visitors[$winduid] = $timestamp; arsort($visitors); if (count($visitors) > 12) {