summaryrefslogblamecommitdiff
path: root/index.php
blob: 5e5e92d4caf7e96fd20da6cea7134cabd6452669 (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[0] >= '0' && $page[0] <= '9') {
	include("./posts/$page.php");
} else if (!empty($page)) {
	include("./pages/$page.php");
} else {
	include('./includes/render_index.php');
}

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