fixed _boostrap

This commit is contained in:
2026-07-27 11:13:04 +02:00
parent 0425a57011
commit 749bf009ac
+4 -9
View File
@@ -8,20 +8,15 @@ error_reporting(E_ALL);
header('Content-Type: application/json'); header('Content-Type: application/json');
// ============================== // ==============================
// PATH BASE // DB (public/class/db-functions.php)
// ============================== // ==============================
$BASE_PATH = dirname(__DIR__) . '/userarea'; require_once dirname(__DIR__) . '/class/db-functions.php';
// ==============================
// DB
// ==============================
require_once $BASE_PATH . '/class/db-functions.php';
$db = DBHandlerSelect::getInstance()->getConnection(); $db = DBHandlerSelect::getInstance()->getConnection();
// ============================== // ==============================
// AUTH VANGUARD // AUTH VANGUARD (radice progetto: extra/auth.php)
// ============================== // ==============================
require_once $BASE_PATH . '/../../extra/auth.php'; require_once dirname(__DIR__, 2) . '/extra/auth.php';
// ============================== // ==============================
// AUTH API (TOKEN) // AUTH API (TOKEN)