Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = (isset($_GET['url'])) ? $_GET['url'] : 'oquedeseja.php';
- $url = array_filter(explode('/', $url));
- $file = $url[0].'.php';
- if(is_file($file)){
- include $file;
- }else{
- include 'error.php';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement