blob: c00e8b5d4b6ee74e6a9121fb5f8c2607726e2659 (
plain) (
tree)
|
|
<?php
include('./includes/head.php');
$page = strtok($_SERVER['REQUEST_URI'], '/');
if (empty($page)) {
include('./pages/index.php');
} else if (!empty($page) && $page[0] >= '0' && $page[0] <= '9' && is_readable("./posts/$page.php")) {
include("./posts/$page.php");
} else if (!empty($page) && is_readable("./pages/$page.php")) {
include("./pages/$page.php");
} else {
include('./includes/404.php');
}
include('./includes/foot.php');
|