Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?php
  2. include 'conexao.php'; //arquivo de conexão com o db
  3. session_start();
  4. include 'session.php'; //arquivo que verifica a session
  5. if(!isset($_SESSION['login'])){ //Verifica se seção existe (importante para a segurança)
  6. header('location:index.html');
  7. }
  8. ?>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  12. <link rel="stylesheet" type="text/css" href="style.css">
  13. <title>Home</title>
  14. </head>
  15. <body>
  16. <div id="top"></div>
  17. <div id="principal">
  18. <div id="menu"><a href="loggout.php">Sair</a></div>
  19. BEM VINDO, <?php echo $_SESSION['login']; ?>
  20. <div id="links">
  21. <a href="ocorrencias.php">OCORRENCIAS</a><br/>
  22. <a href="minicursos.php">MINICURSOS</a>
  23. </div>
  24. </div>
  25. <div id="baixo"> </div>
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement