| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/ |
Upload File : |
<?php
/* --------------------------------------------------------------
gambio_hub_callback.php 2018-05-16
Gambio GmbH
http://www.gambio.de
Copyright (c) 2018 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_CORE_ERROR & ~E_CORE_WARNING);
@date_default_timezone_set('Europe/Berlin');
if(file_exists('includes/local/configure.php'))
{
require_once 'includes/local/configure.php';
}
else
{
require_once 'includes/configure.php';
}
require_once DIR_FS_CATALOG . 'vendor/autoload.php';
if(!class_exists('\HubPublic\ValueObjects\HubClientKey'))
{
spl_autoload_register(function ($class)
{
// project-specific namespace prefix
$prefix = 'HubPublic\\';
// base directory for the namespace prefix
$base_dir = DIR_FS_CATALOG . 'vendor/gambio-hub/hubpublic/src/';
// does the class use the namespace prefix?
$len = strlen($prefix);
if(strncmp($prefix, $class, $len) !== 0)
{
// no, move to the next registered autoloader
return;
}
// get the relative class name
$relative_class = substr($class, $len);
// replace the namespace prefix with the base directory, replace namespace
// separators with directory separators in the relative class name, append
// with .php
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
// if the file exists, require it
if(file_exists($file))
{
require $file;
}
});
}
require_once DIR_FS_CATALOG . 'GXModules/Gambio/Hub/Shop/Classes/Extensions/HubCallback.inc.php';
use \HubPublic\Http\CurlRequest;
$callback = new HubCallback(new CurlRequest());
$callback->proceed();