1. ///////////////////////////// CLEAN URL!!!/////////////////////////////////////////////*
  2. $Get['uri'] = htmlspecialchars(trim($_SERVER['REQUEST_URI']));
  3. $Get['url'] = htmlspecialchars(trim($_SERVER['SERVER_NAME']));
  4.  
  5. $_GET['p'] = $_GET['p'];
  6. $Get['page'] = $Get['uri'];
  7.  
  8. $pagename = explode("/" , $Get['page']);
  9. array_shift($pagename);
  10. $Get['pageCato'] = trim($pagename[0]); //aan deze 0 heb ik lopen prutsen om juiste te krijgen voor mn page
  11.  
  12. //set default page settings
  13. if ($Get['pageCato'] == "")
  14. {
  15. $Get['pageCato'] = $conf['defaultCato'];
  16. }
  17.  
  18. //print $Get['pageCato'];
  19. //extract the uri information properly and make them get vars
  20. //array_shift($pagename);
  21. //array_shift($pagename);
  22.  
  23. $gets = $pagename;
  24. $x=0;
  25. while (($x == (count($gets)-1)) || ($x < (count($gets)-1)))
  26. {
  27. $Get[htmlspecialchars(trim($gets[$x]))] = htmlspecialchars(trim($gets[$x+1]));
  28. if (($x+2) == (count($gets)-1))
  29. {
  30. $x = $x + 3;
  31. }
  32. else
  33. {
  34. $x = $x + 2;
  35. }
  36. }
  37.  
  38. ///////////////////////////// CLEAN URL!!!/////////////////////////////////////////////