Exemplo n.º 1
0
 public function Authentication_token($param)
 {
     $param['device'] = DEVICE_TYPE;
     $param['model'] = DEVICE_MODEL;
     $param['user_agent'] = htmlentities($_SERVER['HTTP_USER_AGENT']);
     $user_id = $param['member_id'];
     $user_token = $param['token'];
     $tokenData = parent::GetTokenProcess($param);
     if ($user_id == $tokenData['member_id'] && $user_token == $tokenData['token']) {
         return true;
     } else {
         return false;
     }
 }
Exemplo n.º 2
0
 public function Authentication()
 {
     $param['facebook_id'] = MEMBER_ID;
     $param['device'] = DEVICE_TYPE;
     $param['user_agent'] = htmlentities($_SERVER['HTTP_USER_AGENT']);
     $dataset = parent::GetTokenProcess($param);
     $token_key_cookie = $_COOKIE['token_key'];
     if ($token_key_cookie == $dataset['tk_token'] && !empty(MEMBER_ID)) {
         return true;
     } else {
         return false;
     }
 }