Public paste
index
By: Xmoo | Date: Oct 29 2008 21:33 | Format: PHP | Expires: never | Size: 470 B | Hits: 703

  1. <?php switch($_GET['p']) {
  2. case "404": $page="include/404.php";break;
  3. case "home": $page="include/home.php";break;
  4. case "ziekmelden": $page="include/ziekmelden.php";break;
  5. case "betermelden": $page="inculde/betermelden.php";break;
  6. case "contact": $page="include/contact.php";break;
  7.  
  8. default: $page="include/home.php";break;
  9. }
  10. if (file_exists($page)) {
  11.         include ($page);
  12.         }
  13.     else {
  14.         include ("include/404.php");
  15.         }
  16. ?>