-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.php
More file actions
32 lines (27 loc) · 791 Bytes
/
settings.php
File metadata and controls
32 lines (27 loc) · 791 Bytes
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
<?php include("header.php");
function check_logged(){
global $_SESSION, $USERS;
if (!isset($_SESSION['logged'])) {
header("Location: index.php");
};
};
check_logged()
?>
<p style='color: red'><?php if(isset($_SESSION["error_msg"])) {
echo $_SESSION["error_msg"];
unset($_SESSION["error_msg"]);
}
?></p>
<div id="body">
<h1>My Settings</h1>
<h4>Change password:</h4>
<form action="change_settings.php" method="post">
<label for="dish"><h3> OLD PASSWORD:</h3></label>
<input class="mainform" name="oldpass" type="text" />
<label for="dish"><h3> NEW PASSWORD:</h3></label>
<input class="mainform" name="newpass" type="password" />
<input class="mainform" id="dish" type="submit" value="REGISTER"/>
</form>
<br />
</body>
</html>