-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset.php
More file actions
195 lines (156 loc) · 6.11 KB
/
reset.php
File metadata and controls
195 lines (156 loc) · 6.11 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?php
require_once("site_dim.php");
require_once("db-config.php");
require_once("menu.php");
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<!-- Basic Page Head -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ARCT - Architects Corporate Template</title>
<meta name="description" content="ARCT - Architects Corporate Template">
<meta name="author" content="Loco Theme - locotheme.com">
<meta name="keywords" content="architects, architect, multipurpose, html5 template, premium template, theme, corporate">
<!-- Mobile Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Favicons -->
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico">
<link rel="apple-touch-icon" href="assets/img/apple-touch-icon-precomposed.png">
<!-- Css -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="assets/css/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="assets/css/owl.theme.css">
<link rel="stylesheet" type="text/css" href="assets/css/prettyPhoto.css">
<link rel="stylesheet" type="text/css" href="assets/css/bxslider.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<link rel="stylesheet" type="text/css" href="assets/css/responsive.css">
<!-- Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Khand:300,400,500,600,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body>
<!-- Site Loader -->
<?php
if($loader==1)
{
echo '<div class="site-loader"><img src="assets/img/loader.gif" alt="Loading"></div>';
}
?>
<!-- Site Loader End -->
<!-- Site Back Top -->
<div class="site-back-top" title="Back to top"></div>
<!-- Site Back Top End -->
<!-- Site Background -->
<div class="site-background"></div>
<!-- Site Background End -->
<div class="site-container">
<!-- Site Menu Button -->
<button class="site-toggle" type="button"><i class="fa fa-bars"></i></button>
<!-- Site Menu Button End -->
<!-- Site Menu -->
<?php
$menu = new Menu();
$menu->menu_generator();
$menu = NULL;
?>
<!-- Site Menu End -->
<!-- Site Content -->
<div class="site-wrapper">
<div class="site-page shadow-top">
<!-- Page Title -->
<h1 class="center">Contact Us</h1>
<!-- Page Title End -->
<!-- Page Description -->
<h2 class="title-border center">An award-winning architecture & interior design studio</h2>
<!-- Page Description End -->
<!-- Space -->
<div class="space"></div>
<!-- Space End -->
<!-- Grid Row -->
<div class="row margin-none" centered>
<!-- Grid Col -->
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 padding-none col-md-offset-3">
<div class="box-white padding-all">
<!--h2 class="title-border right block-mobile">Contact Form</h2-->
<div class="data-form">
<?php
if (isset($_GET['encrypt'])&&isset($_GET['action']))
{
$encrypt = mysqli_real_escape_string($dbc,$_GET['encrypt']);
$query = "SELECT * FROM users where md5(96*17+username)='".$encrypt."'";
$result = mysqli_query($dbc,$query);
$Results = mysqli_fetch_array($result);
$username = $Results['username'];
if(count($Results)>=1)
{
// $query = "update users set password='".md5($password)."' where id='".$Results['id']."'";
//mysqli_query($dbc,$query);
//$message = "Your password changed sucessfully <a href=\"http://demo.phpgang.com/login-signup-in-php/\">click here to login</a>.";
?>
<form action="secure_reset.php" method="post">
<div class="row">
<input type="hidden" name="username" value="<?php echo $username ?>">
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" centered>
<label>Password</label>
<div class="form-field">
<i class="fa fa-lock"></i>
<input type="password" name="pass" placeholder="Enter your password" maxlength="10" required>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" centered>
<label>Confirm password</label>
<div class="form-field">
<i class="fa fa-lock"></i>
<input type="password" name="pass2" placeholder="Enter your password" maxlength="10" required>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 col-md-offset-5">
<input type="submit" class="btn btn-dark" value=" RESET PASSWORD " centered>
</div>
</div>
</form>
<?php
}
else{
echo '<h4>Invalid reset link!<br /><br />The link may have expired. Please try again.</h4><hr>';
}
}
?>
</div>
</div>
</div>
<!-- Grid Col End -->
</div>
<!-- Grid Row End -->
<!-- Space -->
<div class="space"></div>
<!-- Space End -->
</div>
</div>
<!-- Site Content End -->
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/jquery.nicescroll.js"></script>
<script src="assets/js/jquery.prettyPhoto.js"></script>
<script src="assets/js/jquery.countTo.js"></script>
<script src="assets/js/jquery.fitvids.js"></script>
<script src="assets/js/owl.carousel.js"></script>
<script src="assets/js/imagesloaded.pkgd.js"></script>
<script src="assets/js/masonry.pkgd.js"></script>
<script src="assets/js/bxslider.js"></script>
<!-- Map Scripts -->
<script src="http://maps.google.com/maps/api/js?sensor=false&language=en"></script>
<script src="assets/js/gmap3.js"></script>
<!-- Custom Scripts -->
<script src="assets/js/scripts.js"></script>
</body>
</html>