-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_new_pass.php
229 lines (210 loc) · 6.94 KB
/
set_new_pass.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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?php
session_start();
//$u=$_GET['var'];
//$_SESSION["uname"]=$u;
//$_COOKIE["user"]=$u;
//$uname=$_COOKIE["user"];
$uname=$_SESSION["uname"];
// Opening Connection...(dblink)
$con = mysqli_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysqli_error());
}
// Select DB ...(dblink)
mysqli_select_db( $con , "gpa_collg1");
$result = mysqli_query( $con , "SELECT * FROM temp
WHERE username='$uname'") or die(mysqli_error());;
while($row = mysqli_fetch_array($result))
{
$image_path1= $row['image1'];
$image_path2= $row['image2'];
$image_path3= $row['image3'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Gpas Accounts</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="Awesome Bubble Navigation with jQuery" />
<meta name="keywords" content="jquery, circular menu, navigation, round, bubble"/>
<!--Links for Navigation bar-->
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="css/nav.css" type="text/css" media="screen"/>
<!--Links for slider-->
<link href="css/js-image-slider.css" rel="stylesheet" type="text/css" />
<script src="js/js-image-slider.js" type="text/javascript"></script>
<!--Links for pop up-->
<link href="css\style_popup.css" rel="stylesheet"/>
<link href="css\popup.css" rel="stylesheet"/>
<!--Search Box style sheet-->
<link rel="stylesheet" href="css/search.css" type="text/css" media="screen"/>
<!-- Code to disable vertical scrollbar in search.css -->
<!--Content box style sheet-->
<link rel="stylesheet" href="css/contentbox.css" type="text/css" media="screen"/>
<!--Block content css-->
<link rel="stylesheet" href="css/blockbox.css" type="text/css" media="screen"/>
<!--Links for set new password-->
<link href="css/setpass.css" rel="stylesheet" type="text/css" />
<script src="js/setpass.js" type="text/javascript"></script>
<style type="text/css">
.passcount {
border: 1px solid ;
height: 20px;
width: 140px;
margin: -20px 0px 0px 160px;
}
</style>
</head>
<body>
<!--Gpas Header Bar -->
<div class="gpas-header-bar">
<div class="header content clearfix">
<a href="start.php"><img img class="logo" src="Images/gpas.png" alt="GPAS" /></a>
</div>
</div>
<!--Bubble Navigation Bar-->
<div id="content">
<div class="title"></div>
<div class="navigation" id="nav">
<div class="item user2">
<img src="Images/bg_useryellow.png" alt="" width="199" height="199" class="circle" />
<a class="icon" ></a>
<h2>User</h2>
<ul>
<li>Continue</a></li>
<li>Registration</a></li>
</ul>
</div><div class="item gpas">
<img src="images/bg_user.png" alt="" width="199" height="199" class="circle"/>
<a class="icon"></a>
<h2>GPAS</h2>
<ul>
<li><a href="intro.php">Introduction</a></li>
<li><a href="innovation.php">Innovation</a></li>
</ul>
</div>
<div class="item home">
<img src="images/bg_home.png" alt="" width="199" height="199" class="circle"/>
<a href="home.php" class="icon"></a>
<h2>Home</h2>
<ul>
<li><a href="portfolio.php">Portfolio</a></li>
<li><a href="services.php">Services</a></li>
</ul>
</div>
<div class="item security">
<img src="images/bg_shop.png" alt="" width="199" height="199" class="circle"/>
<a href="security.php" class="icon"></a>
<h2>Security</h2>
<ul>
<li><a href="web.php">Web</a></li>
<li><a href="system.php">System</a></li>
<li><a href="mobile.php">Mobile</a></li>
</ul>
</div>
<div class="item technic">
<img src="images/bg_camera.png" alt="" width="199" height="199" class="circle"/>
<a href="technology.php" class="icon"></a>
<h2>Technology</h2>
<ul>
<li><a href="overview.php">Overview</a></li>
<li><a href="doc.php">Document</a></li>
<li><a href="killfix.php">KillFix</a></li>
</ul>
</div>
<div class="item company">
<img src="images/bg_fav.png" alt="" width="199" height="199" class="circle"/>
<a href="organization.php" class="icon"></a>
<h2>Organization</h2>
<ul>
<li><a href="about.php">About</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="career.php">Careers</a></li>
</ul>
</div>
</div>
</div>
<!--Search Form-->
<form method="get" action="http://www.gpas.com/search" id="search">
<input name="q" type="text" size="40" placeholder="Search..." />
</form>
<!--Bubble JavaScript -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript"src="js/motion.js"></script>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br>
<!--content starts here-->
<div class="outers min cont clrsfix">
<div class="clrsfix">
<div class="sig-up"> <!--div of Sign up starts here -->
<div class="sinup-box"> <!--div of Signup-box starts here -->
<strong><font size='3' color='indigo'>
Set New Password:
<div class="passcount" id = "counting" >*</div>
<input type ="button" class='g-button g-button-submit' value = "Un-Click" onclick = "de_count()"/>
<form name="form1" action="After_set_new_pass.php" method="post" enctype='multipart/form-data'>
Select image:
<select id="mySelect" style="color: rgb(0, 0, 128); font-family: Verdana; font-size: 8pt;" onchange="change()">
<option value="$1"selected="selected">image1</option>
<option value="$2">image2</option>
<option value="$3">image3</option>
</select>
<!--
<button type="button" onclick="change()">Change Image</button>
-->
<input type="hidden" id="hidden1" name="H1" />
<br><input type="submit" value="Sign in" class="g-button g-button-submit" onclick="pass()"/>
</font> </strong>
</form>
</div>
</div>
</div>
</div>
<br> <br>
<div class="ex" id="myDiv">
<?php
// Opening Connection...(dblink)
$con = mysql_connect("localhost:3306/","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// Select DB ...(dblink)
mysql_select_db("gpa_collg", $con);
$result = mysql_query("SELECT * FROM temp
WHERE username='$uname'") or die(mysql_error());;
while($row = mysql_fetch_array($result))
{
$image_path= $row['image1'];
echo "<img src='$image_path' >";
}
include('onlyflash_firstimg.php');
?>
</div>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<!--Footer-->
<div class="gpas-header-bar2">
<div class="footer content clearfix">
<ul>
<li>© 2019 GPAS</li>
<li><a href="terms.php" target="_blank">Terms & Conditions</a></li>
<li><a href="privacy.php" target="_blank">Privacy Policy</a></li>
</ul>
</div>
</div>
</body>
</html>