initial commit
This commit is contained in:
48
login/login.php
Normal file
48
login/login.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?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>
|
Reference in New Issue
Block a user