-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
63 lines (51 loc) · 2.12 KB
/
login.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
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="PT-Br">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>Blog de Viagens</title>
<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- CSS LOGIN -->
<link href="css/login.css?v2=<?php echo time();?>" rel="stylesheet">
</head>
<?php
include "config.php";
?>
<body>
<div class="container">
<div align="center">
<img src="imagens/cadeado.png" align="center">
</div>
<form class="form-signin" method="POST" action="dao/verifica_login.php">
<h2 class="form-signin-heading" align="center">Acesso Restrito</h2>
<label for="inputEmail" class="sr-only">login</label>
<input type="text" id="inputEmail" name="login"class="form-control" placeholder="login" required autofocus>
<label for="inputPassword" class="sr-only">senha</label>
<input type="password" id="inputPassword" name="senha" class="form-control" placeholder="senha" required>
<!-- <div class="checkbox">
--> <!-- <label>
<input type="checkbox" value="remember-me"> Remember me
</label> -->
<!-- </div> -->
<button class="btn btn-lg btn-primary btn-block" name="entrar" type="submit">Entrar</button>
<div class="alert alert-danger error">
<?php
if(isset($_GET['erro'])){
echo "Login ou senha inválidos!";
}
?>
</div>
</form>
</div> <!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</body>
</html>