summaryrefslogtreecommitdiff
path: root/index.php
blob: 2781c7ad1f8bd2a834ed3c17935ffba1758e1e6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
<?php
include('./includes/head.php');

if (($post = strtok($_SERVER['REQUEST_URI'], '/')) && !empty($post)) {
	include("./posts/$post.php");
} else {
	include('./includes/render_index.php');
}

include('./includes/foot.php');