| 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/dansnotreville-fr/plugins/hikashoppayment/payplug2/lib/ |
Upload File : |
<?php
$extensions = array(
"curl" => "cURL",
"openssl" => "OpenSSL"
);
$functions = array(
"base64_decode",
"base64_encode",
"json_decode",
"json_encode",
"urlencode"
);
$phpMin = "5.2.0";
foreach ($extensions as $name => $title) {
if (!extension_loaded($name)) {
throw new Exception("This library needs the $title extension.");
}
}
foreach ($functions as $func) {
if (!function_exists($func)) {
throw new Exception("This library needs the '$func' function.");
}
}
if (!function_exists('getallheaders')) {
function getallheaders() {
$headers = array();
foreach ($_SERVER as $name => $value) {
if (substr($name, 0, 5) == 'HTTP_') {
$name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))));
$headers[$name] = $value;
} else if ($name == "CONTENT_TYPE") {
$headers["Content-Type"] = $value;
} else if ($name == "CONTENT_LENGTH") {
$headers["Content-Length"] = $value;
} else {
$headers[$name] = $value;
}
}
return $headers;
}
}
if (version_compare(phpversion(), $phpMin, "<")) {
throw new Exception("This library needs PHP $phpMin or newer.");
}
require_once(__DIR__ . '/payplug/IPN.php');
require_once(__DIR__ . '/payplug/Parameters.php');
require_once(__DIR__ . '/payplug/PaymentUrl.php');
require_once(__DIR__ . '/payplug/Payplug.php');
require_once(__DIR__ . '/payplug/PayplugExceptions.php');