One Hat Cyber Team
Your IP :
3.142.149.3
Server IP :
50.28.103.30
Server :
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
nginx/1.24.0
PHP Version :
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
globify.live
/
fns
/
hybridauth
/
Provider
/
Edit File:
Tumblr.php
<?php /*! * Hybridauth * https://hybridauth.github.io | https://github.com/hybridauth/hybridauth * (c) 2017 Hybridauth authors | https://hybridauth.github.io/license.html */ namespace Hybridauth\Provider; use Hybridauth\Adapter\OAuth1; use Hybridauth\Exception\UnexpectedApiResponseException; use Hybridauth\Data; use Hybridauth\User; /** * Tumblr OAuth1 provider adapter. */ class Tumblr extends OAuth1 { /** * {@inheritdoc} */ protected $apiBaseUrl = 'https://api.tumblr.com/v2/'; /** * {@inheritdoc} */ protected $authorizeUrl = 'https://www.tumblr.com/oauth/authorize'; /** * {@inheritdoc} */ protected $requestTokenUrl = 'https://www.tumblr.com/oauth/request_token'; /** * {@inheritdoc} */ protected $accessTokenUrl = 'https://www.tumblr.com/oauth/access_token'; /** * {@inheritdoc} */ protected $apiDocumentation = 'https://www.tumblr.com/docs/en/api/v2'; /** * {@inheritdoc} */ public function getUserProfile() { $response = $this->apiRequest('user/info'); $data = new Data\Collection($response); if (!$data->exists('response')) { throw new UnexpectedApiResponseException('Provider API returned an unexpected response.'); } $userProfile = new User\Profile(); $userProfile->displayName = $data->filter('response')->filter('user')->get('name'); foreach ($data->filter('response')->filter('user')->filter('blogs')->toArray() as $blog) { $blog = new Data\Collection($blog); if ($blog->get('primary') && $blog->exists('url')) { $userProfile->identifier = $blog->get('url'); $userProfile->profileURL = $blog->get('url'); $userProfile->webSiteURL = $blog->get('url'); $userProfile->description = strip_tags($blog->get('description')); $bloghostname = explode('://', $blog->get('url')); $bloghostname = substr($bloghostname[1], 0, -1); // store user's primary blog which will be used as target by setUserStatus $this->storeData('primary_blog', $bloghostname); break; } } return $userProfile; } /** * {@inheritdoc} */ public function setUserStatus($status) { $status = is_string($status) ? ['type' => 'text', 'body' => $status] : $status; $response = $this->apiRequest('blog/' . $this->getStoredData('primary_blog') . '/post', 'POST', $status); return $response; } }
Simpan