-
Notifications
You must be signed in to change notification settings - Fork 6
/
recovery.php
executable file
·114 lines (93 loc) · 3.85 KB
/
recovery.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
<?php
include_once dirname(__FILE__) . '/login/globals.php';
include_once dirname(__FILE__) . '/login/src/util/validators.php';
include dirname(__FILE__) . "/includes/config/config.php";
include dirname(__FILE__) . "/admin/bootstrap.php";
include dirname(__FILE__) . "/includes/Sql/sql.class.php";
include( dirname(__FILE__) . SYSPATH_LANG );
session_start();
$results = array();
if(isset($_SESSION['results']))
{
$results = $_SESSION['results'];
$msg = $_SESSION['msg'];
unset($_SESSION['results']);
unset($_SESSION['msg']);
session_destroy();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="">
<meta name="keywords" content="comida tailandesa,thai food delivery,food delivery,food delivery services,online food delivery,lunch delivery,dinner delivery,thai food,tailandesa,tailandês,tailandes,janta tailandesa,almoço tailandês,entrega de comida tailandesa,thai delivery">
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery.curvycorners.min.js"></script>
<link type="text/css" href="stylesheet/stylesheet.css" rel="stylesheet" />
<script type="text/javascript" src="scripts/jquery-ui-1.8.4.custom.min.js"></script>
<link href="scripts/jqueryui/css/redmond/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/thickbox.js"></script>
<link href="scripts/thickbox.css" rel="stylesheet" type="text/css" />
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" ></script> -->
<script src="scripts/jquery.min.js" ></script>
<script type="text/javascript">
$(document).ready(function () {
var validateEmail = $('#validateEmail');
$('#email').blur(function() {
var t = this;
validateEmail.removeClass('error').removeClass('success').html('<img src="login/view/images/ajax.gif" height="16" width="16" /> checking accounts...');
$.ajax({
url: 'login/src/util/ajax.php',
data: 'action=checkEmailExists&email=' + t.value,
dataType: 'json',
type: 'post',
success: function (j) {
if(j.ok){
validateEmail.html('<img src="login/view/images/accept.png"/>').removeClass('error').addClass('success');
}
else{
validateEmail.html('<img src="login/view/images/exclamation.png"/> '+j.msg).removeClass('success').addClass('error');
}
}
});
});
});
</script>
</head>
<body>
<div style="height:0px; overflow:hidden;"></div>
<table border="0" cellspacing="1" cellpadding="0" align="center" class="table bg">
<tr>
<td width="600" id="left_column" valign="top">
<div class="container">
<div class="hero-unit">
<h2><img border=0 height=75 src="images/Mascote.png" /> <?=H2_CUSTOMER_LOGIN_RECOVERY;?></h2>
</div>
<table class="cadastro-cliente" border=0>
<tr>
<td>
<div id="wrapper">
<form id="signup" method="post" action="login/src/actions/recovery.php">
<?php //echo show_errors( $results, $msg ); ?>
<label for="email"><?=LBL_EMAIL;?></label> <br/>
<input type="text" id="email" name="email" maxlength="30" required value=""/>
<span id="validateEmail"><?php if ($error) { echo $error['msg']; } ?></span><br/><br/>
<input type="submit" value="<?=LBL_BTN_RECOVERY;?>" id="signup_btn" name="signup_btn" />
</form>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr><td colspan=3> </td></tr>
<tr>
<td colspan=3>
<div style="background-color:#dcdcdc; height:1px; overflow:hidden; margin-top:20px; margin-bottom:10px;" class="table bg"></div>
</td>
</tr>
</table>
</body>
</html>