summaryrefslogblamecommitdiff
path: root/index.php
blob: bb6cfa98976a21c024833cc3d6fc5531dfd7be44 (plain) (tree)
1
2
3
4
5
6
7
8
9

                               
 


                                                                                  
                                     

                                     


                                               
 
                               
<?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');