Yet another PHP based Funko Pop collection tracker, about as bare bones as you can get, but it's functional.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
710 B

  1. <?php
  2. $pagetitle = "Logging Out";
  3. include_once ('header.php');
  4. $logout = $_GET['action'];
  5. if ($logout == "logout"){
  6. session_unset();
  7. session_destroy();
  8. header("refresh:2;url=index.php");
  9. echo '<CENTER>You have been logged out ...<BR />Returning to login screen in a few seconds</CENTER>';
  10. } else if (isset($_POST['logout'])){
  11. session_unset();
  12. session_destroy();
  13. header("refresh:2;url=index.php");
  14. echo '<CENTER>You have been logged out ...<BR />Returning to login screen in a few seconds</CENTER>';
  15. } else {
  16. echo '<CENTER>Something went wrong, you haven\'t been logged out!<BR /><BR />Please click <A HREF="logout.php" CLASS="navlink">HERE</A> to try again</CENTER>';
  17. }
  18. include_once ('footer.php');
  19. ?>