uawdijnntqw1x1x1
IP : 216.73.217.114
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
files
/
.
/
need-2-delete
/
mini-borishof.ru1
/
bitrix
/
modules
/
seo
/
.
/
lib
/
retargeting
/
authadapter.php
/
/
<? namespace Bitrix\Seo\Retargeting; use Bitrix\Main\Loader; use Bitrix\Seo\Service as SeoService; use Bitrix\Main\Web\Uri; class AuthAdapter { protected $type; /* @var \CSocServOAuthTransport|\CFacebookInterface */ protected $transport; protected $requestCodeParamName; protected $data; public function __construct($type) { $this->type = $type; } public static function create($type) { if (!Loader::includeModule('socialservices')) { throw new \Bitrix\Main\SystemException('Module "socialservices" not installed.'); } $instance = new static($type); return $instance; } public function getAuthUrl() { if (!SeoService::isRegistered()) { SeoService::register(); } $authorizeUrl = SeoService::getAuthorizeLink(); $authorizeData = SeoService::getAuthorizeData(Service::getEngineCode($this->type)); $uri = new Uri($authorizeUrl); $uri->addParams($authorizeData); return $uri->getLocator(); } protected function getAuthData($isUseCache = true) { if (!$isUseCache || !$this->data || count($this->data) == 0) { $this->data = SeoService::getAuth(Service::getEngineCode($this->type)); } return $this->data; } public function removeAuth() { $this->data = array(); if ($existedAuthData = $this->getAuthData(false)) { SeoService::clearAuth(Service::getEngineCode($this->type)); } } public function getType() { return $this->type; } public function getToken() { $data = $this->getAuthData(); return $data ? $data['access_token'] : null; } public function hasAuth() { return strlen($this->getToken()) > 0; } }
/var/files/./need-2-delete/mini-borishof.ru1/bitrix/modules/seo/./lib/retargeting/authadapter.php