/**
  * Gets a computer
  *
  * @param $computer_id
  *
  * @return bool|mixed|null
  */
 public function GetComputer($computer_id)
 {
     $result = Capsule::table('syscrack_game_computers')->where('computer_id', $computer_id)->get();
     return !empty($result) ? Result::GetResult($result) : null;
 }
 /**
  * Finds a group via its string name
  *
  * @param $group_string_name
  *
  * @return mixed|null
  */
 public function FindGroup($group_string_name)
 {
     $result = Capsule::table('syscrack_permission_groups')->where('group_string_name', $group_string_name)->take(1)->get();
     return !empty($result) ? Result::GetResult($result) : null;
 }
Пример #3
0
 /**
  * Gets the owner of an email
  *
  * @param $email
  *
  * @return mixed|null
  */
 public function GetEmailOwner($email)
 {
     $result = Capsule::table('syscrack_users')->where('user_email', $email)->take(1)->get();
     return !empty($result) ? Result::GetResult($result) : null;
 }
Пример #4
0
 /**
  * Gets a sessions full information
  *
  * @param $sessionid
  *
  * @return bool|mixed|null
  */
 public function GetSession($sessionid)
 {
     $result = Capsule::table('syscrack_active_sessions')->where('session_id', $sessionid)->take(1)->get();
     return !empty($result) ? Result::GetResult($result) : false;
 }
 /**
  * Finds that token!
  *
  * @param $token
  *
  * @return mixed|null
  */
 public function FindToken($token)
 {
     $result = Capsule::table('syscrack_security_email_tokens')->where('token_key', $token)->get();
     return !empty($result) ? Result::GetResult($result) : null;
 }
 /**
  * Gets that hardware
  *
  * @param $hardware_id
  *
  * @return mixed|null
  */
 public function GetHardware($hardware_id)
 {
     $result = Capsule::table('syscrack_game_hardware')->where('hardware_id', $hardware_id)->get();
     return !empty($result) ? Result::GetResult($result) : null;
 }