-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
56 lines (52 loc) · 2.2 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Login</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet">
<link rel="stylesheet" href="css/bulma.min.css" />
<link rel="stylesheet" type="text/css" href="css/login.css">
</head>
<body>
<section class="hero is-success is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<div class="column is-4 is-offset-4">
<img src="img/oie_transparent.png" width="140" height="93">
<h3 class="title has-text-grey">Login no Sistema</h3>
<?php
if(isset($_SESSION['nao_autenticado'])):
?>
<div class="notification is-danger">
<p>ERRO: Usuário ou senha inválidos.</p>
</div>
<?php
endif;
unset($_SESSION['nao_autenticado']);
?>
<div class="box">
<form action="login.php" method="POST">
<div class="field">
<div class="control">
<input name="usuario_digitado" name="text" class="input is-large" placeholder="Seu usuário" autofocus="">
</div>
</div>
<div class="field">
<div class="control">
<input name="senha_digitada" class="input is-large" type="password" placeholder="Sua senha">
</div>
</div>
<button type="submit" class="button is-block is-link is-large is-fullwidth">Entrar</button>
</form>
</div>
</div>
</div>
</div>
</section>
</body>
</html>