Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. <?php
  2. $url = (isset($_GET['url'])) ? $_GET['url'] : 'oquedeseja.php';
  3. $url = array_filter(explode('/', $url));
  4.  
  5. $file = $url[0].'.php';
  6.  
  7. if(is_file($file)){
  8. include $file;
  9. }else{
  10. include 'error.php';
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement