This commit is contained in:
2025-12-08 21:51:10 +01:00
parent 1fcb2377b8
commit fa9ff55d5f
2 changed files with 15 additions and 1 deletions

View File

@@ -1,4 +1,19 @@
<?php <?php
declare(strict_types=1);
$configPath = dirname(__DIR__) . '/../inc/config.php';
if (is_file($configPath)) {
require_once $configPath;
}
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
$sessionName = session_name();
$sessionId = session_id();
$cookies = $_COOKIE;
$sessionData = $_SESSION ?? [];
$assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : time(); $assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : time();
$appBaseUrl = rtrim($GLOBALS['app_base_url'] ?? '', '/'); $appBaseUrl = rtrim($GLOBALS['app_base_url'] ?? '', '/');
$assetBase = $appBaseUrl !== '' ? $appBaseUrl : ''; $assetBase = $appBaseUrl !== '' ? $appBaseUrl : '';

View File

@@ -1,3 +1,2 @@
<?php <?php
require_once $_SERVER['DOCUMENT_ROOT']. '../partials/landingpage/admin/dashboard.php'; require_once $_SERVER['DOCUMENT_ROOT']. '../partials/landingpage/admin/dashboard.php';
exit;