first commit

This commit is contained in:
Roman Pyrih
2026-04-21 15:48:41 +02:00
commit 7483681901
10216 changed files with 3236626 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
if (!defined('DUPXABSPATH')) {
define('DUPXABSPATH', __DIR__);
}
use Duplicator\Installer\Core\Bootstrap;
define('DUPX_VERSION', '4.5.25.2');
define('DUPX_INIT', str_replace('\\', '/', dirname(__DIR__)));
define('DUPX_ROOT', preg_match('/^[\\\\\/]?$/', dirname(DUPX_INIT)) ? '/' : dirname(DUPX_INIT));
require_once(DUPX_INIT . '/src/Utils/Autoloader.php');
Duplicator\Installer\Utils\Autoloader::register();
/**
* init constants and include
*/
Bootstrap::init(2);
require_once('class.api.php');
require_once('class.cpnl.base.php');
require_once('class.cpnl.ctrl.php');
//Register API Engine - If it processes the current route it spits out JSON and exits the process
$API_Server = new DUPX_API_Server();
$API_Server->add_controller(new DUPX_cPanel_Controller());
$API_Server->process_request(false);
dupxTplRender('api/front', [
'apiControllers' => $API_Server->controllers,
'dupVersion' => DUPX_ArchiveConfig::getInstance()->version_dup
]);