-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinicio.php
126 lines (93 loc) · 3.12 KB
/
inicio.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
include 'cofing.php';
session_start();
if (isset($_POST['submit'])){
$email = mysqli_real_escape_string($conn, $_POST['email']);
$pass = mysqli_real_escape_string($conn, md5($_POST['password']));
$select ="SELECT * FROM `users` WHERE email ='$email' AND password ='$pass'";
$result = mysqli_query($conn, $select);
$row = mysqli_num_rows($result);
if ($row == 1) {
$_SESSION['email'] = $email;
header('Location: index.php');
exit();
}else {
header('Location: inicio.php');
exit();
}
}
?>
<!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.0">
<link rel="shortcut icon" href="Matio_logo.png" type="image/x-icon">
<title>Bem - Vindo / Aoflix</title>
<link rel="stylesheet" type="text/css" href="estilo.css">
<link rel="stylesheet" href="bootstrap-icons/bootstrap-icons.css">
</head>
<body>
<script src="jquery-3.6.1.slim.js"></script>
<div class="content">
<div class="content-one">
<h2>DC</h2>
<h1>Dead<br>pool <br> 2</h1>
<h3>Já disponível</h3>
</div>
<div class="content-two">
<h2>Streamming</h2>
<div class="one" style="margin-bottom: 10px;">
<h1>Filmes da Semana</h1>
<div class="one-one" onclick="sms()"><i class="bi bi-arrow-right"></i></div>
</div>
<button class="btn" onclick="next()">Entrar</button>
</div>
</div>
<nav>
<div class="one"><i class="bi bi-twitter"></i><h6> Deadpool um filme original da DC que vem reunindo <br>um grande número de fãs</h6></div>
<div class="two">
<button class="btn-primary" onclick="mostrar('mostra')">Login</button>
<button class="btn-secundary" onclick="cadastrar()">Cadastrar</button>
</div>
</nav>
<footer>
<div class="one"><i class="bi bi-play-circle-fill" onclick="video()"></i></div>
</footer>
<div class="login" id="mostra">
<i class="bi bi-x" onclick="ocultar('mostra')"></i>
<div class="one">
<form action="" method="post">
<h3>Login</h3>
<input type="email" name="email" placeholder="email" required class="box"><br>
<input type="password" name="password" placeholder="senha" required class="box">
<input type="submit" name="submit" value="Logar" class="btn">
<p>Ainda não possui uma conta ! <a href="register.php">Cadastra-te já!</a></p>
</form>
</div>
</div>
<script>
function next() {
window.location.href = 'index.php';
}
function sms() {
alert('Indisponível de momento tente mais tarde');
}function video() {
alert('Indisponível de momento, verifique a sua conexão a internet');
}
function cadastrar(){
window.location.href = 'register.php';
}
$( document ).ready(function () {
$('.login').hide();
})
function mostrar(id) {
$('#'+id).show();
}
function ocultar(id) {
$('#'+id).hide();
}
</script>
</body>
</html>