blob: bb6cfa98976a21c024833cc3d6fc5531dfd7be44 (
plain) (
tree)
|
|
<?php
include('./includes/head.php');
$page = strtok($_SERVER['REQUEST_URI'], '/');
if (!empty($page) && $page == "posts" && ($post = strtok('/')) && !empty($post)) {
include("./posts/$post.php");
} else if (!empty($page)) {
include("./pages/$page.php");
} else {
include('./includes/render_index.php');
}
include('./includes/foot.php');
|