Subversion Repositories cheapmusic

Rev

Rev 122 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
31 - 2
// Include Session Handling
65 - 3
require_once ('includes/session.php');
31 - 4
 
25 - 5
// Include config & login validate file
6
require_once 'includes/validateUser.php';
7
?>
8
<!DOCTYPE html>
9
<html lang="en-US">
10
<head>
11
	<!--head-->
12
	<?php include_once 'elements/head.php'; ?>
13
	<!--//head-->
14
</head>
15
<body>
43 - 16
<div class="main">
25 - 17
    <!--header-->
18
    <?php include_once 'elements/header.php'; ?>
19
    <!--//header-->
20
 
21
    <!--main-->
22
	<div class="main-content">
57 - 23
          <div class="wrapper-frm bg-light text-dark border shadow text-center">
124 - 24
            <div class="head-menu bg-primary menu-tle header">
107 - 25
                <h1>Change Password</h1>
25 - 26
            </div>
27
            <div class="ucontent">
31 - 28
                <div class="left-pnl">
116 - 29
                    <img class="img-fluid upicture" src="<?php echo $userPicture; ?>" alt="<?php echo $userName; ?>" />
25 - 30
                    <h2><?php echo $userName; ?></h2>
31
                </div>
31 - 32
                <div class="right-pnl">
65 - 33
					<?php echo !empty($statusMsg) ? '<p class="status-msg ' . $statusMsgType . '">' . $statusMsg . '</p>' : ''; ?>
25 - 34
                    <form action="<?php echo BASE_URL; ?>userAccount.php" method="post">
116 - 35
                        <input type="hidden" name="sessionTab" value="<?php if (isset($_POST['sessionTab'])) echo $_POST['sessionTab']; ?>" />
36
                   	    <input type="hidden" name="searchTerm" value="<?php if (isset($_POST['searchTerm'])) echo $_POST['searchTerm']; ?>" />
122 - 37
						<input type="hidden" name="nonce" value="<?php if (isset($_SESSION['nonce'])) echo $_SESSION['nonce']; ?>" />
65 - 38
						<?php if (!empty($userData['password'])) { ?>
119 - 39
                        <input id="emailfieldHidden" type="text" value="<?php echo $userData['email'] ?>" autocomplete="username" />
25 - 40
                        <div class="frm-input">
116 - 41
							<input type="password" name="old_password" class="pass-in" placeholder="Current Password" aria-label="Current Password" required="" autocomplete="current-password" />
25 - 42
						</div>
65 - 43
						<?php
44
} ?>
25 - 45
                        <div class="frm-input">
116 - 46
							<input type="password" name="password" class="pass-in" placeholder="New Password" aria-label="New Password" required="" autocomplete="new-password" />
25 - 47
						</div>
48
                        <div class="frm-input">
116 - 49
							<input type="password" name="confirm_password" class="pass-in" placeholder="Confirm Password" aria-label="Confirm New Password" required="" autocomplete="new-password" />
25 - 50
						</div>
51
                        <div class="frm-btn">
57 - 52
                            <button type="submit" class="btn btn-success" name="updatePassword" value="Update">Update</button>
25 - 53
                        </div>
54
                    </form>
55
            </div>
56
		</div>
57 - 57
           </div>
25 - 58
	</div>
59
	<!--//main-->
60
 
61
	<!--footer-->
62
	<?php include_once 'elements/footer.php'; ?>
63
	<!--//footer-->
64
</div>
65
</body>
31 - 66
</html>