Restructure project for security and offline capability
- Move content outside public web root for security - Consolidate all code and assets in engine/ directory - Download Bootstrap locally for offline functionality - Update public/ to contain only entry point files - Add router.php for PHP development server security - Update README.md with new structure and setup instructions - Block direct access to content files via URL - Maintain clean separation between content and code
This commit is contained in:
16
engine/core/config.php
Normal file
16
engine/core/config.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'site_title' => 'CodePress',
|
||||
'site_description' => 'A simple PHP CMS',
|
||||
'base_url' => '/',
|
||||
'content_dir' => __DIR__ . '/../../content',
|
||||
'templates_dir' => __DIR__ . '/../templates',
|
||||
'cache_dir' => __DIR__ . '/../../cache',
|
||||
'default_page' => 'home',
|
||||
'error_404' => '404',
|
||||
'markdown_enabled' => true,
|
||||
'php_enabled' => true,
|
||||
'bootstrap_version' => '5.3.0',
|
||||
'jquery_version' => '3.7.1'
|
||||
];
|
||||
Reference in New Issue
Block a user