header.php 870 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. $host = $_SERVER['SERVER_NAME'];
  3. if($host == "62.4.16.133")
  4. {
  5. die();
  6. }
  7. @ob_start();
  8. session_start();
  9. require_once("config.php");
  10. if(!isset($_SESSION["playersqlid"]))
  11. {
  12. header("location: ./login");
  13. exit;
  14. }
  15. $username = $_SESSION['username'];
  16. $playersqlid = $_SESSION['playersqlid'];
  17. $quiz = $_SESSION['quiz'];
  18. /*if(!$quiz)
  19. {
  20. if($_SERVER['REQUEST_URI'] != "/panel/quiz")
  21. {
  22. echo '<script>window.location.href = "./panel/quiz";</script>';
  23. exit;
  24. }
  25. }*/
  26. $adminlevel = $_SESSION['adminlevel'];
  27. $charss = $_SESSION['characters'];
  28. $playeremail = $_SESSION['playeremail'];
  29. $namechanges = $_SESSION['namechanges'];
  30. $phonechanges = $_SESSION['phonechanges'];
  31. $discord_auth = $_SESSION['discord_auth'];
  32. $forum_auth = $_SESSION['forum_auth'];
  33. $donaterank = $_SESSION['donaterank'];
  34. $averagehours = $_SESSION['averagehours'];
  35. $notif_count = 0;
  36. ?>