MS-Tropical/public/index.php

26 lines
481 B
PHP
Raw Normal View History

<?php
include("Pieces/header.htm");
2024-06-29 07:47:23 -05:00
if (!empty($_GET['page'])) {
$page = "home";
$TmpPage = basename($_GET['page']);
// 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";
}
2024-06-29 07:47:23 -05:00
if($page == "home") {
include("Pieces/slider.htm");
}
2024-06-29 07:47:23 -05:00
// Include $page
include("Pieces/$page.htm");
2024-06-29 07:47:23 -05:00
include("Pieces/footer.htm");
2024-06-29 07:47:23 -05:00
?>