Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jchat/Framework/OAuth/Common/Http/Client/AbstractClient.php
Ðазад
<?php // namespace administrator\components\com_jchat\framework; /** * * @package JCHAT::CONFIG::administrator::components::com_jchat * @subpackage framework * @author Joomla! Extensions Store * @copyright (C) 2015 - Joomla! Extensions Store * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html */ namespace OAuth\Common\Http\Client; defined ( '_JEXEC' ) or die ( 'Restricted access' ); /** * Abstract HTTP client */ abstract class AbstractClient implements ClientInterface { /** * @var string The user agent string passed to services */ protected $userAgent; /** * @var int The maximum number of redirects */ protected $maxRedirects = 5; /** * @var int The maximum timeout */ protected $timeout = 15; /** * Creates instance * * @param string $userAgent The UA string the client will use */ public function __construct($userAgent = 'PHPoAuthLib') { $this->userAgent = $userAgent; } /** * @param int $redirects Maximum redirects for client * * @return ClientInterface */ public function setMaxRedirects($redirects) { $this->maxRedirects = $redirects; return $this; } /** * @param int $timeout Request timeout time for client in seconds * * @return ClientInterface */ public function setTimeout($timeout) { $this->timeout = $timeout; return $this; } /** * @param array $headers */ public function normalizeHeaders(&$headers) { // Normalize headers array_walk( $headers, function (&$val, $key) { $key = ucfirst(strtolower($key)); $val = ucfirst(strtolower($key)) . ': ' . $val; } ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка