asdasd
This commit is contained in:
@@ -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 : '';
|
||||||
|
|||||||
@@ -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;
|
|
||||||
Reference in New Issue
Block a user