/
index.php
executable file
·89 lines (88 loc) · 2.93 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
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
<?php
include("includes/header_login.php");
if($_SESSION['captcha']==1) {
$captcha='
<div class="form-group">
<!-- Capcha -->
<label>
<span><img style="margin:-10px 10px;" width="250" id="captcha" src="securimage/securimage_show.php" alt="CAPTCHA Image" /></span>
<br><br>
<input type="text" class="form-control placeholder-no-fix" name="captcha_code" size="10" maxlength="6" value="código de seguridad" />
<br>
<a style="margin:3px 10px; color:red" href="#" onclick="document.getElementById(\'captcha\').src = \'securimage/securimage_show.php?\' + Math.random(); return false">[ Cambiar imágen ]</a>
<label>
<input type="hidden" name="captcha_challenge" value="1" />
<!-- Captcha end -->
</div>
';
} else {
$captcha="";
}
?>
<!-- BEGIN BODY -->
<body class="login">
<!-- BEGIN LOGO -->
<div class="logo">
<a href="index.php">
<img src="images/logo-big.png" alt=""/>
</a>
</div>
<!-- END LOGO -->
<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
<div class="menu-toggler sidebar-toggler">
</div>
<!-- END SIDEBAR TOGGLER BUTTON -->
<!-- BEGIN LOGIN -->
<div class="content">
<!-- BEGIN LOGIN FORM -->
<form class="login-form" action="login.php" method="post">
<h3 class="form-title">Acceso al sistema</h3>
<?php
if(intval($_GET['e'])==1) {
echo '<div class="alert alert-danger display-hide" style="display: block;">
<button class="close" data-close="alert"></button>
<span>
Error en usuario y/o contraseña. </span>
</div>';
}
?>
<div class="alert alert-danger display-hide">
<button class="close" data-close="alert"></button>
<span>
Introduce tu usuario y contraseña. </span>
</div>
<div class="form-group">
<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
<label class="control-label visible-ie8 visible-ie9">Usuario</label>
<div class="input-icon">
<i class="fa fa-user"></i>
<input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="Usuario" name="username"/>
</div>
</div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">Contraseña</label>
<div class="input-icon">
<i class="fa fa-lock"></i>
<input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="Contraseña" name="password"/>
</div>
</div>
<?php echo $captcha ;?>
<div class="form-actions">
<label class="checkbox">
<input type="checkbox" name="remember" value="1" checked/> Recordar contraseña </label>
<button type="submit" class="btn green pull-right">
Login <i class="m-icon-swapright m-icon-white"></i>
</button>
</div>
<div class="forget-password">
<h4>¿Olvidaste tu contraseña?</h4>
<p>
Solo da click <a href="forgot.php" id="forget-password">
aquí </a> para recuperar tu contraseña.
</p>
</div>
</form>
<!-- END LOGIN FORM -->
</div>
<!-- END LOGIN -->
<?php include("includes/footer_login.php"); ?>