forked from michaelwnyc/81online
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchange.php
More file actions
56 lines (52 loc) · 1.55 KB
/
change.php
File metadata and controls
56 lines (52 loc) · 1.55 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
<!doctype html>
<html>
<head>
<?php include_once('header.php'); ?>
</head>
<body>
<?php
// 判断是否登陆
if (!(isset($_SESSION["success"]) && $_SESSION["success"] === true)) {
// 验证失败,将 $_SESSION["success"] 置为 false
$_SESSION["success"] = false;
echo("您没有登录,正跳转到登录页");
echo("<meta http-equiv=refresh content='2; url=login.php'>");
die();
}
else {
?>
<FORM ACTION="" METHOD="POST">
<TABLE cellSpacing=0 cellPadding=0 width=268 align=center
bgColor=#ffff99 border=0>
<TBODY>
<TR>
<TD align=middle height=25>原密码: <INPUT tabIndex=1
type=password maxLength=20 size=15 name=oldpassword>
</TD>
</TR>
<TR>
<TD align=middle>新密码: <INPUT tabIndex=2 type=password
maxLength=20 size=15 name=newpassword>
</TD>
</TR>
<TR>
<TD align=middle>重复新密码: <INPUT tabIndex=3 type=password
maxLength=20 size=15 name=renewpassword>
</TD>
</TR>
<TR>
<TD align=middle height=25><INPUT id=pw_manager
style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 65px; CURSOR: hand; BORDER-BOTTOM: 0px; HEIGHT: 18px"
type=submit value="修改密码" name=pw_manager> <INPUT id=reset
style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 52px; CURSOR: hand; BORDER-BOTTOM: 0px; HEIGHT: 18px"
type=reset value="重置" name=reset>
</TD>
</TR>
</TBODY>
</TABLE>
</FORM>
<?php
}
?>
</body>
</html>