if ($_SERVER['REQUEST_URI'] == '/') {
$page = 'home';
} else {
$page = substr($_SERVER['REQUEST_URI'], 1);
}
if (file_exists('router/common/'.$page.'.php')) {
include 'router/common/'.$page.'.php';
} else if (file_exists('router/admin/'.$page.'.php')) {
include 'router/admin/'.$page.'.php';
} else {
include 'router/404.php';
}