public function feed()
 {
     header("Location: " . dr_space_sns_url($data['uid'], 'show', $id));
     exit;
 }
/**
 * 会员动态内容URL地址
 *
 * @param	intval	$id
 * @return	string
 */
function dr_sns_feed_url($uid, $id)
{
    return dr_space_sns_url($uid, 'show', $id);
}
 private function _sns($space)
 {
     $this->load->model('sns_model');
     $name = $this->input->get('name');
     $urlrule = '';
     switch ($name) {
         case 'follow':
             // 关注列表
             $title = lang('m-360');
             $template = 'follow.html';
             break;
         case 'fans':
             // 粉丝列表
             $title = lang('m-354');
             $template = 'fans.html';
             break;
         case 'topic':
             // 话题列表
             $id = (int) $this->input->get('id');
             $topic = $this->db->where('id', $id)->get('sns_topic')->row_array();
             if (!$topic) {
                 $this->msg(lang('m-204'));
             }
             $this->template->assign(array('topic' => $topic, 'topic_sql' => 'select * from ' . $this->db->dbprefix('sns_feed') . ' where id IN (select fid from ' . $this->db->dbprefix('sns_topic_index') . ' where tid=' . $topic['id'] . ') order by inputtime desc'));
             $title = dr_lang('m-205', $topic['name']);
             $urlrule = dr_space_sns_url($space['uid'], 'topic', $id, '[page]');
             $template = 'topic.html';
             break;
         case 'show':
             // 动态详情
             $id = (int) $this->input->get('id');
             $data = dr_sns_feed($id);
             if (!$data) {
                 $this->msg(lang('m-249'));
             }
             $title = lang('m-362');
             $template = 'show_feed.html';
             $this->template->assign(array('data' => $data));
             break;
         case 'access':
             // 访客列表
             $title = lang('m-361');
             $template = 'access.html';
             break;
         default:
             // 动态列表
             $title = lang('m-362');
             $template = 'list_feed.html';
             break;
     }
     $this->template->assign(array('title' => $title, 'urlrule' => $urlrule ? $urlrule : dr_space_sns_url($space['uid'], $name, '[page]'), 'meta_title' => $title . SITE_SEOJOIN . ($space['title'] ? $space['title'] : $space['name']), 'meta_keywords' => $space['keywords'], 'meta_description' => $space['description']));
     return $template;
 }