Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'conexao.php'; //arquivo de conexão com o db
- session_start();
- include 'session.php'; //arquivo que verifica a session
- if(!isset($_SESSION['login'])){ //Verifica se seção existe (importante para a segurança)
- header('location:index.html');
- }
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" type="text/css" href="style.css">
- <title>Home</title>
- </head>
- <body>
- <div id="top"></div>
- <div id="principal">
- <div id="menu"><a href="loggout.php">Sair</a></div>
- BEM VINDO, <?php echo $_SESSION['login']; ?>
- <div id="links">
- <a href="ocorrencias.php">OCORRENCIAS</a><br/>
- <a href="minicursos.php">MINICURSOS</a>
- </div>
- </div>
- <div id="baixo"> </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement