Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(!isset($_SESSION['email']) || !isset($_SESSION['senha'])) {
- header("location: login.php");
- exit;
- } else {
- echo "<center>Voçe esta logado! :D<center>";
- }
- ?>
- <?php
- $host = "localhost";
- $user = "root";
- $pass = "";
- $banco = "Cadastro";
- $conexao = mysql_connect($host, $user, $pass) or die(mysql_error());
- mysql_select_db($banco) or die(mysql_error());
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Painel</title>
- </head>
- <body>
- <a href="logout.php">Sair</a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement