Error
+%error%
+diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/public/html_loader.php b/public/html_loader.php index 1a08962..5251469 100755 --- a/public/html_loader.php +++ b/public/html_loader.php @@ -36,11 +36,11 @@ class HTMLLoader { foreach ($page["css_files"] as $file) { // Check if File exists if (!is_file(TEMPLATE_PATH . $page["dir_name"] . "/" . $file)) { - $this->showError('CSS File ' . $file . ' for Template error in ' . __FILE__ . ""); + $this->showError('CSS File ' . $file . ' for Template error in ' . __FILE__ . " not found."); } // Add CSS Files to HTML - $css .= ''; + $css .= ''; } $html = str_replace("%css%", $css, $html); @@ -61,10 +61,12 @@ class HTMLLoader { $html = file_get_contents(TEMPLATE_PATH . $page["dir_name"] . "/" . $page["html_file"]); // Get CSS + $css = ""; + foreach ($page["css_files"] as $file) { // Check if File exists if (!is_file(TEMPLATE_PATH . $page["dir_name"] . "/" . $file)) { - $this->showError('CSS File ' . $file . ' for Template ' . $this->template . ' in ' . __FILE__ . ""); + $this->showError('CSS File ' . $file . ' for Template ' . $this->template . ' in ' . __FILE__ . " not found."); } // Add CSS Files to HTML @@ -72,5 +74,7 @@ class HTMLLoader { } $html = str_replace("%css%", $css, $html); + + die($html); } } \ No newline at end of file diff --git a/public/templates/entrys_frontend/entrys.html b/public/templates/entrys_frontend/entrys.html new file mode 100644 index 0000000..d752889 --- /dev/null +++ b/public/templates/entrys_frontend/entrys.html @@ -0,0 +1,38 @@ + + +
+ + + + + + + +Welcome to your Guestbook! Enter here your prefered username and password.
+%error%
+