login.php 472 B

1234567891011121314151617181920212223
  1. <?php
  2. require("user.inc.php");
  3. require("template.inc.php");
  4. tpl_header();
  5. if (!$login): ?>
  6. <h2>Login failed</h2>
  7. <p>Sorry, but for reasons unknown (or displayed above), you could not be logged in.
  8. <?php
  9. tpl_footer();
  10. exit;
  11. endif;
  12. print <<<EOS
  13. <h2>Login succeeded</h2>
  14. <p>Hi $username, nice to have you here! Why don't you go back to the <a
  15. href="index.html">main page</a> and use the functions listed there. I've added
  16. some extra options for you.
  17. EOS;
  18. tpl_footer();