-
Notifications
You must be signed in to change notification settings - Fork 0
/
my-profile-cp.php
87 lines (53 loc) · 1.96 KB
/
my-profile-cp.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
<?php require_once("header.php");
$cookie_name="bquidns";
if(isset($_COOKIE[$cookie_name])) {
$logincheck = "SELECT * FROM Users WHERE authID='$_COOKIE[$cookie_name]'";
$runlogCheck= mysqli_query($connect,$logincheck);
$logcheckCount= mysqli_num_rows( $runlogCheck);
if($logcheckCount==1){
$sql = "SELECT * FROM Users WHERE authID='$_COOKIE[$cookie_name]'";
$status= mysqli_query($connect,$sql);
if($status==true)
{
while($getRow = mysqli_fetch_array($status))
{
$role = $getRow['role'];
$fname=$getRow['Fname'];
$lname=$getRow['Lname'];
$email=$getRow['email'];
$phone=$getRow['phone'];
$uid=$getRow['uid'];
if($role==='doner')
{
// header("Location: index.php?alrd");
}
}
}
}}else{
header("Location: login.php?nsc");
}
require_once("profile-menu.php");
?>
<!-- Main Page -->
<div class="container-fluid ">
<div class="container p-3">
<div class="row">
<div class="col-lg-6 col-md-10 col-center ">
<form class="shadow text-dark bg-white" action="passchange-helper.php" method="post" class="bg-light" enctype="multipart/form-data">
<h2 class="pt-3 text-center">Change Passwor</h2>
<hr>
<div class="container">
<label for="cpass"><b>Current Password</b></label>
<input type="password" name="cpass" placeholder="Current Password" required>
<label for="npass"><b>Enter New password</b></label>
<input type="password" name="npass" placeholder="Enter New Password" required>
<label for="conpass"><b>Confirm Password</b></label>
<input type="password" name="conpass" placeholder="Confirm Password" required>
<button class="btn bg-warning font-weight-bold" type="submit">Change Password</button>
</div>
</form>
</div>
</div>
</div>
</div>
<?php require_once("footer.php"); ?>