Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <?PHP
  2. require_once('functions.php');
  3. $user=session_check();
  4. ?>
  5. <html>
  6. <head>
  7. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.26.3/css/uikit.min.css" />
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.26.3/js/uikit.min.js"> </script>
  9. </head>
  10. <body>
  11. <?PHP
  12. show_menu($user);
  13. if ($user==NULL or $user['id']==NULL)
  14. {
  15. echo '<form method="post" action="login.php" class="uk-form">
  16. <fieldset data-uk-margin>
  17. <legend>Log in</legend>
  18. <input name="username" type="text" placeholder="username">
  19. <input name="password" type="password" placeholder="password">
  20. <button class="uk-button">Go!</button>
  21. <label><input type="checkbox">Remember me!</label>
  22. </fieldset>
  23. </form>';
  24. }
  25. else
  26. echo "Witaj ".$user['username']."!";
  27. ?>
  28. </body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement