logout.php 397 B

123456789101112131415161718192021
  1. <?php
  2. require("user.inc.php");
  3. require("template.inc.php");
  4. setcookie("gitinfo_sessionid");
  5. $prev_username = $username;
  6. $username = NULL;
  7. tpl_header();
  8. print "<h2>Logout</h2>";
  9. if ($prev_username)
  10. print "<p>Bye, $prev_username! See you! Now <a href=\"index.html\">go
  11. back to the main page</a> or something.";
  12. else
  13. print "<p>No need to log out when you're not logged in...";
  14. tpl_footer();