| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/www/cj79373/plugins/system/componentsanywhere/src/ |
Upload File : |
<?php
/**
* @package Components Anywhere
* @version 4.10.1
*
* @author Peter van Westen <info@regularlabs.com>
* @link http://regularlabs.com
* @copyright Copyright © 2023 Regular Labs All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
namespace RegularLabs\Plugin\System\ComponentsAnywhere;
defined('_JEXEC') or die;
use Joomla\CMS\Http\HttpFactory as JHttpFactory;
use RuntimeException;
class Http
{
public static function get($url, $cookies = '')
{
$params = Params::get();
// Site uses Kerberos authentication: use curl instead
// Site is behind a login: use curl instead
if (
$params->use_negotiate_authentication
|| Data::getAuthenticationCredentials()
)
{
return false;
}
try
{
$html = JHttpFactory::getHttp()->get($url, null, $params->timeout)->body;
}
catch (RuntimeException $e)
{
return false;
}
return $html;
}
}