- Remove sidebar and toggle functionality - Add Bootstrap navbar with dropdown menus - Move navigation to top between header and content - Update menu rendering for Bootstrap dropdowns - Clean up unused files (header.mustache, sidebar.mustache, sidebar.js) - Add guide link with book icon in footer - Simplify layout structure - Remove duplicate code and fix syntax errors - Add .gitignore for node_modules and other temp files
17 lines
489 B
PHP
17 lines
489 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../engine/core/config.php';
|
|
require_once __DIR__ . '/../engine/core/index.php';
|
|
|
|
$config = include __DIR__ . '/../engine/core/config.php';
|
|
|
|
// Block direct access to content files
|
|
$requestUri = $_SERVER['REQUEST_URI'] ?? '';
|
|
if (strpos($requestUri, '/content/') !== false) {
|
|
http_response_code(403);
|
|
echo '<h1>403 - Forbidden</h1><p>Direct access to content files is not allowed.</p>';
|
|
exit;
|
|
}
|
|
|
|
$cms = new CodePressCMS($config);
|
|
$cms->render(); |