Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function checkPlayer($url)
- {
- $client = new GuzzleHttp\Client();
- $i = $client->request('GET', $url, ['http_errors' => false]);
- $sc = $i->getStatusCode();
- $i = $i->getBody()->getContents();
- if ($sc == 200) {
- if (str_contains($i, 'Sorry') || str_contains($i, 'exist !') || str_contains($i, 'deleted')) {
- return true;
- }
- }else{
- if ($sc == 404) {
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement