| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/www/libraries/msframework/helpers/ |
Upload File : |
<?php
/**
* MS Framework
*
* @package MS Framework Library
* @version 1.2.1.573
*
* @author Michael Snoeren
* @link https://snoerendevelopment.nl/
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
// Deny direct access
defined('_JEXEC') or die;
abstract class MSFrameworkHTTP
{
/**
* Fetch an URL using GET
* @param String $url URL to fetch
* @param Array $data URL Parameters
* @param Integer $timeo The timeout value
* @access Public
* @return String Response
*/
public static function get($url, $data = array(), $timeo = 30)
{
// Create the GET string
if (count($data)) {
$url = $url . '?' . http_build_query($data);
}
// Execute using Joomla's HTTP class
$http = new JHttp;
$responseObj = $http->get($url, null, $timeo);
return $responseObj->body;
}
/**
* Fetch an URL using POST
* @param String $url URL to fetch
* @param Array $data POST data
* @param Integer $timeo The timeout value
* @access Public
* @return String Response
*/
public static function post($url, $data = array(), $timeo = 30)
{
$http = new JHttp;
$responseObj = $http->post($url, $data, null, $timeo);
return $responseObj->body;
}
}