mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 00:02:57 +05:30
v3.0.2
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
|||||||
.env
|
/htdocs/.env
|
||||||
**/.DS_Store
|
**/.DS_Store
|
||||||
htdocs/**/*.DS_Store
|
htdocs/**/*.DS_Store
|
||||||
|
|||||||
BIN
htdocs/.DS_Store
vendored
BIN
htdocs/.DS_Store
vendored
Binary file not shown.
BIN
htdocs/assets/.DS_Store
vendored
BIN
htdocs/assets/.DS_Store
vendored
Binary file not shown.
BIN
htdocs/core/.DS_Store
vendored
BIN
htdocs/core/.DS_Store
vendored
Binary file not shown.
@@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
// Load environment variables
|
// Load Composer's autoloader
|
||||||
require_once __DIR__ . '/vendor/autoload.php'; // Correct path for vendor directory in core
|
require_once __DIR__ . '/vendor/autoload.php'; // Correct path for vendor directory in core
|
||||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../../');
|
|
||||||
|
// Initialize dotenv and load environment variables
|
||||||
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../'); // Adjusted to point to htdocs/.env
|
||||||
$dotenv->load();
|
$dotenv->load();
|
||||||
|
|
||||||
// Database configuration
|
// Database configuration
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Enable error reporting
|
// Enable error reporting
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
ini_set('display_startup_errors', 1);
|
ini_set('display_startup_errors', 1);
|
||||||
@@ -7,15 +6,12 @@ error_reporting(E_ALL);
|
|||||||
|
|
||||||
// Include the configuration file
|
// Include the configuration file
|
||||||
include "core/config.php";
|
include "core/config.php";
|
||||||
|
|
||||||
// Start session management
|
// Start session management
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
// Include Composer's autoloader
|
|
||||||
require_once __DIR__ . '/core/vendor/autoload.php';
|
|
||||||
|
|
||||||
|
|
||||||
// Initialize dotenv and load environment variables
|
// Initialize dotenv and load environment variables
|
||||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../');
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||||
$dotenv->load();
|
$dotenv->load();
|
||||||
|
|
||||||
// Retrieve environment variables
|
// Retrieve environment variables
|
||||||
@@ -129,7 +125,7 @@ include "assets/_header.php";
|
|||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
<?php include 'assets/_footer.php'; ?>
|
<?php include 'assets/_footer.php'; ?>
|
||||||
<script src="assets/js/home.js"></script>
|
<script src="assets/js/_home.js"></script>
|
||||||
<script src="assets/js/developer_tools.js"></script>
|
<script src="assets/js/developer_tools.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user