-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangepass.php
53 lines (50 loc) · 1.26 KB
/
changepass.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
<?php
session_start();
?>
<html>
<head>
<title>PIM Login</title>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="common.css">
<link rel="stylesheet" type="text/css" href="changepass.css">
<script type="text/javascript">
</script>
</head>
<body>
<?php include("sitelayout.php"); ?>
<div class="span8" id="main-content">
<br/>
<form method="post" class="form-horizontal" action="change.php" id="changepassform">
<div class="control-group">
<label class="control-label" for="password">Enter old password : </label>
<div class="controls">
<input type="password" name="password"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="newpass">Enter new password : </label>
<div class="controls">
<input type="password" name="newpass"/>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary">Submit
</div>
</div>
</form>
</div>
<?php
if(isset($_SESSION['oldpasswrong']))
{
if($_SESSION['oldpasswrong']==1)
{
echo "<script>alert('Old password wrong');</script>";
$_SESSION['oldpasswrong']=0;
}
}
include('sitelayout2.php');
include('footer.php');
?>
</body>
</html>