Massive refactor of code into classes, improve security on the image/file upload handler. Clean up the init.php into a config.php and refactor everything else to work around it.

Resolves issues #13 #14 and #16
This commit is contained in:
Andy Dixon
2024-11-12 21:20:46 +00:00
parent 94f1634fc2
commit d0c38378b6
13 changed files with 581 additions and 242 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
/*
* Authentication stores the usernames and passwords for people to be able to use the CMS.
* This will be used as well to write to the audit log once it has been implemented in code.
*/
$config = [
'authentication' => [
// Add more users as needed - its 'username'=>'password' if you hadn't have guessed
'admin' => 'password123',
],
// Enable the auditing system
'audit' => true,
// Set to true if you do not want to see the welcome page and want to go straight to your site
'skipWelcomePage' => false,
// Show full URL of the page being edited on the control bar
'showFullUrl' => true
];