UDPATED: trying new include function 7
diff --git a/index.php b/index.php
index e0c79e6..15a88e2 100755
--- a/index.php
+++ b/index.php
@@ -24,9 +24,12 @@
// # Paste your HTML content between the EOHTML markers!
$html = get_include_contents('pages/template.html');
+ if ($html == false) {
+ $html = "Error! Couldn't load file pages/template.html";
+ }
# Generate the web page
$App->generatePage($theme, $Menu, null, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>
-Test
\ No newline at end of file
+Reload
\ No newline at end of file
diff --git a/pages/template.html b/pages/template.html
index c9d4e93..2c1d100 100644
--- a/pages/template.html
+++ b/pages/template.html
@@ -16,9 +16,15 @@
<?php
if ($_GET['section'] == "support") {
$html = get_include_contents('./support.html');
+ if ($html == false) {
+ $html = "Error! Couldn't load file ./support.html";
+ }
} else {
$html = get_include_contents('./_index.html');
}
+ if ($html == false) {
+ $html = "Error! Couldn't load file ./_index.html";
+ }
echo $html;
?>
</div>