48 lines
1023 B
PHP
48 lines
1023 B
PHP
<?php
|
|
if (session_status() !== PHP_SESSION_ACTIVE){
|
|
session_start();
|
|
}
|
|
include('../menu.php');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Acesso a Área Restrita</title>
|
|
<style>
|
|
body {
|
|
background-color: #073642;
|
|
color: white;
|
|
}
|
|
div{
|
|
text-align:center;
|
|
height:65vh;
|
|
position: relative;
|
|
top: 20vh;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1 style="text-align:center;">Acesso ao Sistema</h1>
|
|
<div>
|
|
<h1>Login</h1>
|
|
<form action="validar.php" method="post">
|
|
<input type="text" id="login" name="login" placeholder="Usuário" required>
|
|
<br>
|
|
<input type="password" id="passwd" name="passwd" placeholder="Senha" required>
|
|
<br>
|
|
<input type="submit" name="entrar" value="Entrar">
|
|
<input type="reset" value="Limpar">
|
|
</form>
|
|
<?php
|
|
if(isset($_SESSION['msg']))
|
|
{
|
|
echo $_SESSION['msg'];
|
|
unset($_SESSION['msg']);
|
|
}
|
|
?>
|
|
</div>
|
|
<?php echo $footer;?>
|
|
</body>
|
|
|
|
</html>
|