-
Notifications
You must be signed in to change notification settings - Fork 16
/
change-password.php
211 lines (182 loc) · 6.05 KB
/
change-password.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
<?php
session_start();
require_once('database.php');
require_once('library.php');
isUser();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Courier / Cargo Tracking Script in PHP - Ver 0.97</title>
<link href="css/mystyle.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
-->
</style>
<script language="JavaScript">
<!--
function Check_form() {
// Check Password
if ( signupForm.txtp.value == "" )
{
alert( "Kindly enter a password." );
signupForm.txtp.focus( );
return false;
}
if ( signupForm.txtp.value.length < 4 )
{
alert( "Password must be atleast 4 characters." );
signupForm.txtp.focus( );
return false;
}
if ( signupForm.txtp.value.length > 20 )
{
alert( "Password must be Max 20 characters." );
signupForm.txtp.focus( );
return false;
}
if ( signupForm.txtcp.value == "" )
{
alert( "Kindly enter a confirm password." );
signupForm.txtcp.focus( );
return false;
}
if ( signupForm. txtp.value != signupForm. txtcp.value )
{
alert( "Password and Confirm password must be same." );
signupForm.txtp.value = "";
signupForm.txtcp.value = "";
signupForm.txtp.focus( );
return false;
}
tmpPass = signupForm.txtp.value;
goodPasswd = 1;
for( var idx=0; idx< tmpPass.length; idx++ )
{
ch = tmpPass.charAt(idx);
if( !((ch>='a') && (ch<='z')) && !((ch>='A') && (ch<='Z')) && !((ch>=0) && (ch <=9)) )
{
goodPasswd = 0;
break;
}
}
if( goodPasswd ==0 )
{
alert( "Password must contains only letters and digits." );
signupForm. txtp.value="";
signupForm. txtcp.value="";
signupForm. txtp.focus();
return false;
}
return true;
}
//-->
</script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="900">
<tbody><tr>
<td width="900">
<?php include("header.php"); ?>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table border="0" cellpadding="1" cellspacing="1" align="center" width="98%">
<tbody><tr>
<td class="Partext1"> </td>
</tr>
<tr>
<td class="Partext1"> </td>
</tr>
<tr>
<td height="25"><div class="headtext13" align="center"><strong>Change Admin Password </strong></div></td>
</tr>
<tr>
<td height="25"><div class="redtext" align="center"></div></td>
</tr>
<tr>
<td><div align="center">
<form name="signupForm" id="signupForm" method="post" action="process.php?action=change-pass" onSubmit="return Check_form();">
<table border="0" cellpadding="0" cellspacing="0" align="center" width="60%">
<tbody><tr>
<td width="18"><img src="images/boxtopleftcorner.gif" alt="" height="13" width="18"></td>
<td background="images/boxtopBG.gif" width="734"></td>
<td width="18"><img src="images/boxtoprightcorner.gif" alt="" height="13" width="18"></td>
</tr>
<tr>
<td background="images/boxleftBG.gif"></td>
<td><table border="0" cellpadding="0" cellspacing="0" align="center" width="98%">
<tbody><tr>
<td colspan="2" height="4"></td>
</tr>
<tr>
<td height="18"><table class="newtext" border="0" cellpadding="2" cellspacing="2" align="center" width="100%">
<tbody><tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="40%"><div align="right">New Password : </div></td>
<td width="60%"><div align="left">
<input name="txtp" id="txtp" type="password">
</div></td>
</tr>
<tr>
<td><div align="right">Confirm Password : </div></td>
<td><div align="left">
<input name="txtcp" id="txtcp" type="password">
</div></td>
</tr>
<tr>
<td> </td>
<td><div align="left">
<input name="Submit" value="Submit" type="submit">
</div></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td> </td>
</tr>
</tbody></table></td>
<td background="images/boxrightBG.gif"></td>
</tr>
<tr>
<td width="18"><img src="images/boxbtmleftcorner.gif" alt="" height="12" width="18"></td>
<td background="images/boxbtmBG.gif" width="734"></td>
<td width="18"><img src="images/boxbtmrightcorner.gif" alt="" height="12" width="18"></td>
</tr>
</tbody></table>
</form>
</div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</tbody></table> </td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" align="center" width="900">
<tbody><tr>
<td bgcolor="#2284d5" height="40" width="476"> </td>
<td bgcolor="#2284d5" width="304"><div align="right"></div></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</body></html>