Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.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 : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/zenit/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');