Exemplo n.º 1
0
 public function member()
 {
     $uid = (int) $this->input->get('uid');
     $row = $this->db->where('fid', $this->uid)->where('uid', $uid)->get('sns_follow')->row_array();
     $this->template->assign(array('uid' => $uid, 'follow' => $row ? $row['isdouble'] : -1, 'membersns' => dr_sns_info($uid), 'memberinfo' => dr_member_info($uid)));
     if ($this->callback) {
         ob_start();
         $this->template->display('sns_member.html');
         $html = ob_get_contents();
         ob_clean();
         exit($this->callback . '(' . json_encode(array('html' => $html)) . ')');
     } else {
         $this->template->display('sns_member.html');
     }
 }
Exemplo n.º 2
0
 public function member()
 {
     $uid = (int) $this->input->post('uid');
     $row = $this->db->where('fid', $this->uid)->where('uid', $uid)->get('sns_follow')->row_array();
     $this->template->assign(array('uid' => $uid, 'follow' => $row ? $row['isdouble'] : -1, 'membersns' => dr_sns_info($uid), 'memberinfo' => dr_member_info($uid)));
     $this->template->display('sns_member.html');
 }