43 lines
1.0 KiB
PHP
Executable File
43 lines
1.0 KiB
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* SysCMS - Content Management System
|
|
*
|
|
* Copyright (c) 2025 Marco Costa
|
|
* All rights reserved.
|
|
*
|
|
* Author: Marco Costa
|
|
* Email: contato@syspanel.com.br
|
|
* Project: SysCMS
|
|
*
|
|
* This software is licensed, not sold.
|
|
* Permission is granted to use this software
|
|
* subject to the terms of the SysCMS Commercial License.
|
|
*
|
|
* Redistribution, sublicensing, resale, or
|
|
* disclosure of this software, in whole or in part,
|
|
* is strictly prohibited without prior written permission.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
|
*/
|
|
|
|
use DI\Container;
|
|
|
|
/**
|
|
* Load environment variables using Symfony Dotenv
|
|
*/
|
|
require_once __DIR__ . '/../app/Helpers/Environment.php';
|
|
load_env(__DIR__ . '/..');
|
|
|
|
/**
|
|
* Start session if not already started
|
|
*
|
|
* This ensures that session is only started once at the application entry point
|
|
* to prevent "session already started" errors.
|
|
*/
|
|
if (session_status() === PHP_SESSION_NONE) {
|
|
session_start();
|
|
}
|
|
|
|
// Load helper functions
|
|
require_once __DIR__ . '/../app/helpers.php'; |