This repository was archived by the owner on Oct 8, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathsettings.php
More file actions
75 lines (64 loc) · 2.26 KB
/
Copy pathsettings.php
File metadata and controls
75 lines (64 loc) · 2.26 KB
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
<?php
include('config.php');
if(isset($_COOKIE["user_id"])) { ?>
<html>
<head>
<title>Settings Page</title>
<link rel="stylesheet" href="css/main.css" type="text/css"></link>
</head>
<body>
<div class="signlanding">
<h1>Your Settings</h1>
<h3>If you want to change your credentials please change them up.</h3>
<form method="POST" action="<?=$link?>">
<input type="hidden" name="method" value="settings"/>
<br>
If you dont want to make any change, you can <a href="<?=$link?>">go back</a>.
<br>
<br>
<?php
if(@$_GET["message"] == "successful") { ?>
<div class="successful">
<span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
<?php echo "Succesfully updated";?>
</div>
<?php
} elseif(@$_GET["message"] == "failed") {?>
<div class="fail">
<span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
<?php echo "Something went wrong. Please check";?>
</div>
<?php
}
?><br>
<label for="username">Username</label>
<br>
<input name="username" id="username" value="<?php echo $_COOKIE["user_name"]; ?>" required></input>
<br><br>
<label for="password">Password</label>
<br>
<input name="password" id="password" value="<?php echo $_COOKIE["passwd"]; ?>" required></input>
<br><br>
<label for="email">Email</label>
<br>
<input name="email" id="email" value="<?php echo $_COOKIE["email"]; ?>" ></input>
<br><br>
<label for="address">Address</label>
<br>
<input name="address" id="address"value="<?php echo $_COOKIE["address"]; ?>" ></input>
<br><br>
<label for="phone_number">Phone Number</label>
<br>
<input name="phone_number" id="phone_number" value="<?php echo $_COOKIE["phone_number"]; ?>" ></input>
<br>
<br>
<button type="submit" class="button_blue" >Update</button>
<button class="button_white" ><a href="<?=$link?>">Go Back</a></button>
<br>
</form>
</div>
</body>
</html>
<?php
} else { header("Location:".$link); }
?>