2018-03-21 11:13:03 -05:00
|
|
|
<?php
|
|
|
|
include("Pieces/header.htm");
|
2024-06-29 07:47:23 -05:00
|
|
|
|
|
|
|
if (!empty($_GET['page'])) {
|
|
|
|
$page = "home";
|
|
|
|
|
|
|
|
$TmpPage = basename($_GET['page']);
|
|
|
|
|
2018-03-21 11:13:03 -05:00
|
|
|
// If it's not a disallowed path, and if the file exists, update $page
|
|
|
|
if (!in_array($TmpPage, $LockedPages) && file_exists("Pieces/{$TmpPage}.htm")) {
|
|
|
|
$page = $TmpPage;
|
|
|
|
}
|
|
|
|
} else {
|
2024-06-29 07:47:23 -05:00
|
|
|
$page = "home";
|
2018-03-21 11:13:03 -05:00
|
|
|
}
|
2024-06-29 07:47:23 -05:00
|
|
|
|
2018-03-21 11:13:03 -05:00
|
|
|
if($page == "home") {
|
|
|
|
include("Pieces/slider.htm");
|
|
|
|
}
|
2024-06-29 07:47:23 -05:00
|
|
|
|
2018-03-21 11:13:03 -05:00
|
|
|
// Include $page
|
|
|
|
include("Pieces/$page.htm");
|
2024-06-29 07:47:23 -05:00
|
|
|
|
2018-03-21 11:13:03 -05:00
|
|
|
include("Pieces/footer.htm");
|
2024-06-29 07:47:23 -05:00
|
|
|
?>
|