Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_SERVER['QUERY_STRING'] == "" || $_SERVER['QUERY_STRING'] == "/") {
- header('Location:?/home');
- }
- $location = explode('/',$_SERVER['QUERY_STRING']);
- if(file_exists('./pages/'.$location[1].'.php')) {
- include('./pages/'.$location[1].'.php');
- } else {
- include('./pages/404.php');
- }
- ?>
Add Comment
Please, Sign In to add comment