UPDATED: trying to use include instead of get_file_contents
diff --git a/index.php b/index.php
index c731162..4e72fb4 100755
--- a/index.php
+++ b/index.php
@@ -21,7 +21,7 @@
$localVersion = false;
// # Paste your HTML content between the EOHTML markers!
- $html = file_get_contents('pages/template.html');
+ $html = include('pages/template.html');
# Generate the web page
$App->generatePage($theme, $Menu, null, $pageAuthor, $pageKeywords, $pageTitle, $html);
diff --git a/pages/template.html b/pages/template.html
index 864818e..6906e0f 100644
--- a/pages/template.html
+++ b/pages/template.html
@@ -14,19 +14,10 @@
<div id="midcolumn">
<?php
- echo "Search:<br/>";
if ($_GET['section'] == "support") {
- echo "Support<br/>";
- $html = file_get_contents('./support.html');
- if ($html == false) {
- echo "fail.<br/>";
- }
+ $html = include('./support.html');
} else {
- echo "main<br/>"
- $html = file_get_contents('./_index.html');
- if ($html == false) {
- echo "fail.<br/>";
- }
+ $html = include('./_index.html');
}
echo $html;
?>