Initial commit

This commit is contained in:
2026-01-25 21:03:33 +01:00
commit 8d8e213f1c
2570 changed files with 479666 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
ini_set('display_errors', 1);
error_reporting(E_ALL);
header('Content-Type: application/json');
// ==============================
// PATH BASE
// ==============================
$BASE_PATH = dirname(__DIR__) . '/userarea';
// ==============================
// DB
// ==============================
require_once $BASE_PATH . '/class/db-functions.php';
$db = DBHandlerSelect::getInstance()->getConnection();
// ==============================
// AUTH VANGUARD
// ==============================
require_once $BASE_PATH . '/../../extra/auth.php';
// ==============================
// AUTH API (TOKEN)
// ==============================
$user = Auth::guard('api')->user();
if (!$user) {
http_response_code(401);
echo json_encode(['error' => 'Unauthorized']);
exit;
}