-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (49 loc) · 1.48 KB
/
index.php
File metadata and controls
55 lines (49 loc) · 1.48 KB
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
<?php
session_start();
include('Aportaciones.php');
$ap = new Aportaciones();
$err = isset($_GET['error'])? $_GET['error']:null;
$id_actualizar;
$correo;
if($_SESSION["loggedin"] == true && isset($_SESSION['loggedin'])) {
$correo=$_SESSION['username'];
}
?>
<html>
<head>
<title>Entrar al sitio web</title>
<link rel="stylesheet" href="bootstrap\css\bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="bootstrap\css\bootstrap-theme.css" type="text/css" />
<link href="css/style.css" rel='stylesheet' type='text/css' />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="page-wrapper">
<div class="main-page">
<div class="login-form">
<h4>Login</h4>
<h5><strong>Bienvenido</strong> favor logearse para empezar!</h5>
<form name="login" action="checklogin.php" method="post">
<?php
if($err==1)
{
echo "<h1>Usuario o contraseña incorrecto</h1>";
}
else if($err==2)
{
echo "<h1>Debes iniciar seccion</h1>";
}
?>
<input type="text" placeholder="Correo" name="txtcorreo" required>
<input type="password" class="pass" name="txtpass" placeholder="Password" required>
<div class="clearfix"></div>
<input class="btn btn-info btn-block" type="submit" value="Sign in">
<p class="center-block mg-t mg-b">No tienes una cuenta?
<a href="signup.php">Registrate aqui!</a>
</p>
</form>
</div>
</div>
</div>
</body>
</html>