styling, navigation bar, theming, article lists, page routing.

This commit is contained in:
Joshua Ashton
2025-03-20 19:54:37 -06:00
parent 5af0547864
commit c0fc9e9d00
28 changed files with 489 additions and 95 deletions
+10 -1
View File
@@ -1,4 +1,5 @@
<?php
session_start();
// Initialize Composer.
require_once 'vendor/autoload.php';
@@ -8,4 +9,12 @@ $dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../');
$dotenv->safeLoad();
// Set SESSION variable.
$_SESSION['initialized'] = true;
if (!isset($_SESSION['initialized'])) {
$_SESSION['initialized'] = true;
$_SESSION['theme'] = 'dark';
}
if ($_SESSION['initialized'] && isset($_POST['theme'])) {
$_SESSION['theme'] = $_POST['theme'];
unset($_POST['theme']);
}