MS-Tropical/blog/blog.php
Skylear 7d1d7ff996 Upload the site
All the files associated with the old website :D
2018-03-21 11:13:03 -05:00

27 lines
472 B
PHP
Executable File

<?php
define('SAFE', true);
$LockedPages = array();
include("Pieces/header.htm");
if (!empty($_GET['do'])) {
$do = "list";
$TmpDo = basename($_GET['do']);
// If it's not a disallowed path, and if the file exists, update $do
if (!in_array($TmpDo, $LockedPages) && file_exists("Pieces/Blog/{$TmpDo}.htm")) {
$do = $TmpDo;
}
} else {
$do = "list";
}
// Include $page
include("Pieces/Blog/$do.htm");
include("Pieces/footer.htm");
?>