From dffa41dbdcc85711a0ce333cf7e3b060f9b54394 Mon Sep 17 00:00:00 2001 From: dconco Date: Sun, 10 Dec 2023 15:06:01 +0100 Subject: [PATCH] feat: Update configuration and file handling This commit updates the configuration settings in the .env file to use consistent spacing and adds new environment variables for the default host page. Additionally, it modifies the RouteController class to improve file handling by using the file_get_contents function instead of include, making it easier to manipulate content before output. The commit also includes modifications to the Route class: - It introduces a new static variable, $root_dir, to store the root directory path. - It adds a check for the presence of the 'fileinfo' extension and throws an exception if it is not enabled. - It refactors the file_type method to utilize the finfo_file function instead of mime_content_type for improved performance. - It updates the handling of file extensions for better content type detection. - It sets the $log and $root_dir variables within the class constructor for consistency. The commit also includes minor updates to other files, such as the README.md and composer.json, correcting typos and improving clarity. These changes enhance the configuration and file handling aspects of the project, improving efficiency and providing more control over the output. No issues are associated with this commit at this time. References: None --- public/styles/App.css | 9 +++++++++ views/dashboard.view.php | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/public/styles/App.css b/public/styles/App.css index e5d5d28..680a877 100644 --- a/public/styles/App.css +++ b/public/styles/App.css @@ -94,4 +94,13 @@ h3.text { font-size: 50px; font-weight: 700; font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; +} + +.description { + margin: auto; + color: wheat; + font-size: 15px; + text-align: center; + font-weight: 400; + font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } \ No newline at end of file diff --git a/views/dashboard.view.php b/views/dashboard.view.php index 871c942..53daccd 100644 --- a/views/dashboard.view.php +++ b/views/dashboard.view.php @@ -33,6 +33,10 @@ PhpSlides Logo +
+

PhpSlides let you create a secured Routing in php and secured API, which prevents SQL injections, and from XSS attack & CSRF.

+
+