-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.php
127 lines (103 loc) · 3.58 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
<?php require_once './management/main.php'?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="./styles/tab.min.css">
</head>
<body>
<div class="tab-wrapper">
<a href="profile.php" class="backProfile">
<?php include "./components/svg/profile.php"?>
</a>
<h1>User Settings</h1>
<form action="" method="POST">
<button class="tab" type="submit" name="pass">
<?php include './components/svg/changePass.php'?>
<span>Change Password</span>
</button>
<button class="tab" type="submit" name="theme">
<?php include './components/svg/theme.php'?>
<span>Change Theme</span>
</button>
<button class="tab" type="submit" name="deleteAcc">
<?php include './components/svg/deleteAcc.php'?>
<span>Delete Account</span>
</button>
<button class="tab" type="submit" name="removeData">
<?php include './components/svg/clearData.php'?>
<span>Clear Data</span>
</button>
<button class="tab" type="submit" name="privacy">
<?php include './components/svg/deleteAcc.php'?>
<span>User Privacy</span>
</button>
<button class="tab" type="submit" name="blocked">
<?php include './components/svg/deleteAcc.php'?>
<span>
Blocked Users
</span>
</button>
<button class="tab" type="submit" name="">
<?php include './components/svg/deleteAcc.php'?>
</button>
<button class="tab" type="submit" name="">
<?php include './components/svg/deleteAcc.php'?>
</button>
<button class="tab" type="submit" name="">
<?php include './components/svg/deleteAcc.php'?>
</button>
</form>
</div>
<div class="switch-wrapper">
<?php if (isset($_POST['pass'])): ?>
<h1>Change Password</h1>
<form class='changepass' action="" method="POST">
<input type="text" name="oPass" placeholder="Enter old password"><br>
<input type="password" name="nPass" placeholder="Enter new password"><br>
<input type="password" name="rPass" placeholder="Re-enter new password"><br>
<button type="submit" name="cPass">Change Password</button>
<button type="reset">Reset</button>
</form>
<?php endif?>
<?php if (isset($_POST['theme'])): ?>
<h1>Change Theme</h1>
<form action="" method="POST">
<input type="radio" name="color" value="dark">
<label for="color">Dark</label><br><br>
<input type="radio" name="color" value="light">
<label for="color">Light</label>
<br><br><br><br>
<button type="submit" name='color'>Apply</button>
</form>
<?php endif?>
<?php if (isset($_POST['deleteAcc'])): ?>
<form action="" method="POST">
<h1>Deactivate Account</h1>
<button type="submit" name='dAcc'>DEACTIVATE</button>
</form>
<?php endif?>
<?php if (isset($_POST['removeData'])): ?>
<form action="" method="POST">
<h1>Remove User Data</h1>
<button type="submit" name='clearData'>Clear Data</button>
</form>
<?php endif?>
<?php if (isset($_POST['privacy'])): ?>
<form action="" method="POST">
<h1>User Privacy</h1>
<button type="submit" name=''>Button</button>
</form>
<?php endif?>
<?php if (isset($_POST['blocked'])): ?>
<form action="" method="POST">
<h1>Blocked Users</h1>
<button type="submit" name=''>Button</button>
</form>
<?php endif?>
</div>
</body>
</html>