-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
164 lines (146 loc) · 6.75 KB
/
settings.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
<!DOCTYPE html>
<?php
session_start();
if(!isset($_SESSION['email'])){
header('location: login.php');
}
include_once("abcd.php");
?>
<html lang="en" oncontextmenu="return false">
<head>
<link rel="stylesheet" href="css/load.css">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="images/logo.PNG" type="image/PNG">
<title>THAPARTALKS - Settings</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,700' rel='stylesheet' type='text/css'>
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/templatemo-style.css" rel="stylesheet">
<link href="css/signup.css" rel="stylesheet">
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
</head>
<body id="hide">
<!-- Left column -->
<div class="templatemo-flex-row">
<div class="templatemo-sidebar">
<header class="templatemo-site-header">
<div class="square" style="color: #138963;"><center><b>T</b></center></div>
<h1>THAPARTALKS</h1>
</header>
<div class="profile-photo-container">
<?php $xID=$_SESSION['ID'];
include('loadProPic.php');
?>
<img onerror="this.onerror=null;this.src='images/unknown.png';" src='<?php echo $pic; ?>' alt="Profile Photo" class="img-responsive" style="pointer-events: none; user-select: none; cursor: default;">
<div class="profile-photo-overlay"></div>
</div>
<!-- Search box -->
<br><br>
<div class="mobile-menu-icon">
<i class="fa fa-bars"></i>
</div>
<nav class="templatemo-left-nav">
<ul>
<li><a href="index.php" ><i class="fa fa-home fa-fw"></i>Home</a></li>
<li><a href="feeds.php"><i class="fa fa-bar-chart fa-fw"></i>Posts</a></li>
<li><a href="c.php"><i class="fa fa-database fa-fw"></i>Chats</a></li>
<li><a href="buddylist.php"><i class="fa fa-users fa-fw"></i>buddies</a></li>
<li><a href="settings.php" class="active"><i class="fa fa-sliders fa-fw"></i>Settings</a></li>
<li><a href="logout.php"><i class="fa fa-eject fa-fw"></i>Sign Out</a></li>
</ul>
</nav>
</div>
<!-- Main content -->
<div class="templatemo-content col-1 light-gray-bg">
<div class="templatemo-top-nav-container">
<div class="row">
<nav class="templatemo-top-nav col-lg-12 col-md-12">
<ul class="text-uppercase">
<li><a href="profile.php">profile</a></li>
<li><a href="index.php">Home</a></li>
<li><a href="findbuddy.php">Find Buddy</a></li>
<li><a href="about.php">About ThaparTalks</a></li>
</ul>
</nav>
</div>
</div>
<div class="templatemo-content-container">
<div class="templatemo-flex-row flex-content-row">
</div>
<!-- Second row ends -->
<?php
include_once('abcd.php');
?>
<div class="col-1">
<div class="panel panel-default margin-10">
<div class="panel-heading"><h2 style="display:inline-block;" class="text-uppercase"><a href="<?php echo $_SERVER['HTTP_REFERER']; ?>"><img src="images/back2.png" style="width:35px; height:auto; padding-right:10px;"></a>Settings</h2></div>
<div class="panel-body">
<!--Settings Start -->
<!--change password starts-->
<h3>Change Password</h3><br>
<center><div id="result"></div></center><br>
<div class="form-group">
<div class="input-group">
<div class="input-group-addon"><i class="fa fa-key fa-fw"></i></div>
<input type="password" class="form-control" name="pwd" placeholder="Password" id="psw"
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
title="Must contain at least one number,one uppercase,one lowercase letter,and at least 8 or more characters" required>
</div>
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-addon"><i class="fa fa-key fa-fw"></i></div>
<input type="password" class="form-control" name="confirmpwd" placeholder="Repeat Password" id="conpsw" >
</div>
</div>
<div id="conf" style="color:red; padding: 10px 35px;"></div>
<div class="form-group">
<button type="submit" onclick="validate()" name="submit" class="templatemo-blue-button width-100">Update</button>
</div>
<div id="message2" class='invalid'><p>Mismatch !!Type down same password</p></div>
<div id="message" class="templatemo-content-widget templatemo-login-widget templatemo-register-widget white-bg">
<h3>Password must contain the following :</h3>
<p id="letter" class="invalid">A<b> Lowercase</b> letter</p>
<p id="capital" class="invalid">A<b> Capital</b> letter</p>
<p id="number" class="invalid">A<b> Number</b></p>
<p id="length" class="invalid">Minimum <b>8 characters</b></p>
</div>
<!--change password ends-->
<!--Settings End -->
</div>
</div>
</div>
<div id="xyz"></div>
<center><div id="auto" ></div></center>
<footer class="text-right">
<p>Copyright © 2020 Apoorv Computing Solutions </p>
</footer>
</div>
</div>
</div>
<!-- JS -->
<script src="js/changepassword.js"></script>
<script src="js/jquery-1.11.2.min.js"></script> <!-- jQuery -->
<script src="js/jquery-migrate-1.2.1.min.js"></script> <!-- jQuery Migrate Plugin -->
<script type="text/javascript" src="js/templatemo-script.js"></script> <!-- Templatemo Script -->
<script>
//preventing user from opening Inspect elements by pressing F12
document.onkeypress = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
return false;
}
}
document.onkeydown = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
return false;
}
}
//end preventing
</script>
</body>
</html>