Ejemplo n.º 1
0
 public function GetMember($param)
 {
     $param['device'] = DEVICE_TYPE;
     $param['model'] = DEVICE_MODEL;
     $param['os'] = DEVICE_OS;
     $param['browser'] = DEVICE_BROWSER;
     $param['user_agent'] = htmlentities($_SERVER['HTTP_USER_AGENT']);
     $param['expired'] = time() + 60 * 60 * 24 * 7;
     // Get MemberData
     $data = parent::GetMemberProcess($param);
     // Setdata
     $this->id = $data['me_id'];
     $this->email = $data['me_email'];
     $this->name = $data['me_name'];
     $this->fname = $data['me_fname'];
     $this->lname = $data['me_lname'];
     $this->link = $data['me_link'];
     $this->verified = $data['me_verified'];
     $this->gender = $data['me_gender'];
     $this->token_id = $token['token_id'];
     $this->token = $token['token'];
     $this->register_time = $data['me_register_time'];
     $this->age = $data['me_age'];
     $this->update_time = $data['me_update_time'];
     $this->visit_time = $data['me_visit_time'];
     $this->priority = $data['me_priority'];
     $this->ip = $data['me_ip'];
     $this->key = $data['me_key'];
     $this->type = $data['me_type'];
     $this->status = $data['me_status'];
     $this->total_post = parent::TotalPostProcess($param);
     $this->total_photo = parent::TotalPhotoProcess($param);
     if ($this->status == 'active') {
         $this->status_text = 'ปกติ';
     } else {
         if ($this->status == 'caution') {
             $this->status_text = 'ถูกเตือน';
         } else {
             if ($this->status == 'banned') {
                 $this->status_text = 'ถูกยกเลิก';
             } else {
                 $this->status_text = 'n/a';
             }
         }
     }
 }