index.php 245 B

12345678910111213141516
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. ob_start();
  5. session_start();
  6. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  7. $back=getenv("HTTP_REFERER");
  8. if (!empty($back)) {
  9. header("Location: ".$back);
  10. exit;
  11. }
  12. header("Location: /");
  13. exit;