-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgot.php
198 lines (181 loc) · 7.36 KB
/
forgot.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
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
196
197
198
<html>
<head>
<title>
SIGN UP
</title>
<link rel="stylesheet" href="signup.css">
<style>
footer{
display: flex;
justify-content: center;
box-sizing: border-box;
/* border: 2px solid black; */
width: 100vw;
height: fit-content;
position:absolute;
bottom: 5px;
}
#nishchay ,#mohit{
/* border : 1px solid black ; */
width: 25%;
text-align: center;
/* margin-right: 5%; */
/* margin: 10px; */
margin-right: 10px;
}
#copyright{
align-items: center;
width: 30%;
/* border: 1px solid black; */
margin-right: 10px;
text-align: center;
}
.icons {
display: flex;
column-gap: 25px;
}
.icon {
display: inline-flex;
width: 60px;
height: 60px;
text-decoration: none;
font-size: 26px;
color: #fff;
border-radius: 50%;
outline: 2px solid #fff;
transition-property: outline-offset, outline-color, background-color;
transition-duration: 0.25s;
}
.icon:hover {
outline-offset: 4px;
}
.icon i {
margin: auto;
}
.icon:hover i {
animation: shake 0.25s;
}
.icon--instagram:hover {
background-image: radial-gradient(
circle at 30% 107%,
#fdf497 0%,
#fdf497 5%,
#fd5949 45%,
#d6249f 60%,
#285aeb 90%
);
outline-color: #a02d76;
}
.icon--github:hover {
background-color: #6e5494;
outline-color: #6e5494;
}
.icon--linkedin:hover {
background-color: #0077b5;
outline-color: #0077b5;
}
.icon--whatsapp:hover {
background-color: #2ea44f;
outline-color: #2ea44f;
}
@keyframes shake {
10% {
transform: rotate(15deg);
}
20% {
transform: rotate(-15deg);
}
30% {
transform: rotate(15deg);
}
40% {
transform: rotate(-15deg);
}
}
</style>
</head>
<body>
<nav id="navigationbar">
<ul id="Menubars">
<li><a href="homecart.php">HOME</a></li>
<li><a href="cart.php">CART</a></li>
<li><a href="order.php">ORDER LIST</a></li>
<li><a href="account.php">ACCOUNT</a></li>
</ul>
</nav>
<div class="signup">
<h1> Enter Details </h1>
<form action="forgot.php" method="post">
<input type="text" required name="name">
<label alt="Name" placeholder="Name"></label>
<input type="text" required name="username">
<label alt="Username" placeholder="Username"></label>
<input type="number" required name="number">
<label alt="Number" placeholder="Number"></label>
<input type="email" required name="email">
<label alt="Email" placeholder="Email"></label>
<!-- <input type="password" required name="password">
<label alt="Password" placeholder="Password"></label> -->
<!-- <input type="password" required name="confirm_password">
<label alt="Confirm Password" placeholder="Confirm Password"></label> -->
<input type="submit" value="getinfo" name="getinfo" style="height:25px; width:80px; margin-left:-4px ;">
<a style="margin-left:20% ;" href="login.php">Already have an account</a>
</form>
</div>
<?php
if(isset($_POST['getinfo'])){
$file=fopen('userinfo.txt', 'r') ;
while(!feof($file)){
$name=fgets($file);
$username=fgets($file);
$number=fgets($file);
$email=fgets($file);
$password=fgets($file);
if($_POST['name']."\n"==$name && $_POST["username"]."\n"==$username && $_POST["number"]."\n"==$number &&$_POST["email"]."\n"==$email )
{echo "<h3 style=\"text-align:center;\">$password</h3>" ;
exit(1) ;}
}
echo "No such user exist or check credentials" ;
}
?>
<footer>
<div id="nishchay">
Nishchay Rajput
<div class="icons" style="position: relative; left:20px">
<a href="https://instagram.com/__nishchay__rajput__?igshid=YmMyMTA2M2Y=" class="icon icon--instagram">
<i class="ri-instagram-line"><img src="https://cdn-icons-png.flaticon.com/512/747/747393.png?w=740&t=st=1682778043~exp=1682778643~hmac=150e29528c52a2db53de8c2a1e0935a9c9810aa59acf910c29ed71280c2bf45c" style="height:20px; width:20px; margin-top: 4px;"></i>
</a>
<a href="https://github.com/NishchayRajput" class="icon icon--github">
<i class="ri-github-line"><img src="https://cdn-icons-png.flaticon.com/512/1051/1051326.png?w=740&t=st=1682778346~exp=1682778946~hmac=b56de488622701fd151e3c678def28b8a15850bb620f9319bf7637680d00dc1d" style="height:20px; width:20px; margin-top: 4px;"></i>
</a>
<a href="https://www.linkedin.com/in/nishchay-rajput-83969a264" class="icon icon--linkedin">
<i class="ri-linkedin-line"><img src="https://cdn-icons-png.flaticon.com/512/25/25325.png?w=740&t=st=1682778221~exp=1682778821~hmac=046049b1f256bac3a2ae50452f58619043b0ab8874f2581e0472a69ece767025" style="height:20px; width:20px; margin-top: 4px;"></i>
</a>
<a href="https://wa.me/9770552422" class="icon icon--whatsapp">
<i class="ri-whatsapp-line"><img src="https://cdn-icons-png.flaticon.com/512/154/154858.png?w=740&t=st=1682778255~exp=1682778855~hmac=22056307e43565a08e385095a52622e1ca3e9835c6818b6d2b0504c208da9edf" style="height:20px; width:20px; margin-top: 4px;"></i>
</a>
</div>
</div>
<div id="mohit">
Mohit Thakre
<div class="icons" style="position: relative; left:20px">
<a href="https://instagram.com/mohit_thakre13?igshid=ZDdkNTZiNTM=" class="icon icon--instagram">
<i class="ri-instagram-line"><img src="https://cdn-icons-png.flaticon.com/512/747/747393.png?w=740&t=st=1682778043~exp=1682778643~hmac=150e29528c52a2db53de8c2a1e0935a9c9810aa59acf910c29ed71280c2bf45c" style="height:20px; width:20px; margin-top: 4px;"></i>
</a>
<a href="https://github.com/MohitThakre13" class="icon icon--github">
<i class="ri-github-line"><img src="https://cdn-icons-png.flaticon.com/512/1051/1051326.png?w=740&t=st=1682778346~exp=1682778946~hmac=b56de488622701fd151e3c678def28b8a15850bb620f9319bf7637680d00dc1d" style="height:20px; width:20px; margin-top: 4px;"></i>
</a>
<a href="https://www.linkedin.com/in/mohit-jitlal-thakre-362254253" class="icon icon--linkedin">
<i class="ri-linkedin-line"><img src="https://cdn-icons-png.flaticon.com/512/25/25325.png?w=740&t=st=1682778221~exp=1682778821~hmac=046049b1f256bac3a2ae50452f58619043b0ab8874f2581e0472a69ece767025" style="height:20px; width:20px; margin-top: 4px;"></i>
</a>
<a href="https://wa.me/8767249195" class="icon icon--whatsapp">
<i class="ri-whatsapp-line"><img src="https://cdn-icons-png.flaticon.com/512/154/154858.png?w=740&t=st=1682778255~exp=1682778855~hmac=22056307e43565a08e385095a52622e1ca3e9835c6818b6d2b0504c208da9edf" style="height:20px; width:20px; margin-top: 4px;"></i>
</a>
</div>
</div>
<div id="copyright">
<p>Copyright © 29 April 2023 by Nishchay Rajput and Mohit Thakre</p>
</div>
</footer>
</body>
</html>