summaryrefslogtreecommitdiff
path: root/index.php
blob: bb6cfa98976a21c024833cc3d6fc5531dfd7be44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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');