-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecure_reset.php
More file actions
175 lines (137 loc) · 5.31 KB
/
secure_reset.php
File metadata and controls
175 lines (137 loc) · 5.31 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
<?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($_POST['username'])&&isset($_POST['pass'])&&isset($_POST['pass2']))
{
if (!get_magic_quotes_gpc())
{
$_POST['username'] = addslashes($_POST['username']);
}
$_POST['pass'] = md5($_POST['pass']);
if (!get_magic_quotes_gpc()) {
$_POST['pass'] = addslashes($_POST['pass']);
}
$update = "UPDATE `users` SET `password`='".$_POST['pass']."' WHERE `username`='".$_POST['username']."'";
if(mysqli_query($dbc, $update))
{
?>
<h1>Password reset successful</h1>
<p><h4>Your password has been reset successfully.<br /><br />You may now log in. <br><br><div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><a href="login.php" class="btn btn-default block" style="color:black;"><i class="fa fa-lock"></i>GO TO LOGIN</a></div></h4><div class="space"></div></p>
<?php
}
else
{
echo $_POST['username'].PHP_EOL;
echo $_POST['pass'].PHP_EOL;
?>
<h1>Password reset failed!</h1>
<p><h4>Something went wrong.<br /><br />Please contact the administartor at <a style="color:blue;" href="mailto:admin@designorganists.com">admin@designorganists.com</a>.<br></h4></p>
<?php
}
}
?>
</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>