prepend.php 363 B

123456789101112131415
  1. <?php
  2. // 2006-10-27 FGM: added !empty test
  3. // 2007-12-25 FGM: added error_reporting for PHP5.3
  4. error_reporting(E_ERROR);
  5. if (isset($_SERVER['PATH_INFO']) && !empty($_SERVER['PATH_INFO']))
  6. {
  7. $clean = str_replace($_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF']);
  8. header("Location: $clean");
  9. exit;
  10. }
  11. require_once 'site.php';
  12. require_once 'layout.php';
  13. ?>