-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.php
107 lines (99 loc) · 3.99 KB
/
account.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
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cryptopow - Account</title>
<link rel="stylesheet" href="./css/style.css">
<link rel="icon" href="./img/logo.png">
<link rel="stylesheet" href="https://use.typekit.net/vub1dne.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.css">
<script src="https://code.jquery.com/jquery-3.6.3.min.js"></script>
</head>
<body>
<?php include './php/topbar.php'; ?>
<div class="about">
<br><br>
<h1><strong>Hi there, <?php if (isset($_SESSION['uname'])){echo $_SESSION['uname'];} ?></strong></h1>
<div class="recommend-outside" id="popup">
<div class="recommend" id="popup-1">
<?php include './php/logout.php'; ?>
<?php include './php/account.php'; ?>
</div>
</div>
<!-- <p>I use linux btw</p> -->
<br><br>
<div class="account-button">
<form action="" method="post">
<input type="submit" value="Logout" name="logout">
</form>
<br><br>
<button onclick="show()"><h3>Change Password</h3></button>
<br><br>
</div>
<div id="account-box">
<div class="account">
<br><br>
<form action="" method="post">
<label for="passwd">Current Password</label><br>
<input type="password" name="current"><br><br>
<label for="passwd">Password</label><br>
<input type="password" name="passwd"><br><br>
<label for="confirm">Confirm Password</label><br>
<input type="password" name="confirm"><br><br>
<input type="submit" value="Change Password" name="change">
</form>
<br><br><br>
</div>
</div>
<br><br>
</div>
<br><br><br><br>
<div class="botbar">
<h1><span>©2022</span>Cryptopow</h1>
<div class="botbar-img">
<img src="./img/logo.png" alt="logo" width="15%">
</div>
<div class="botbar-social">
<a href="https://github.com/gagahsyuja" target="_blank"><i class="fa-brands fa-github"></i></a>
<a href="https://instagram.com/gagahsyuja__" target="_blank"><i class="fa-brands fa-instagram"></i></a>
<a href="https://www.facebook.com/gagah.s.abdullah" target="_blank"><i class="fa-brands fa-facebook"></i></a>
</div>
</div>
<script>
let popup = document.getElementById("popup");
let popup1 = document.getElementById("popup-1");
function closePopup()
{
popup.style.display = 'none';
popup1.style.display = 'none';
window.location = './index.php';
}
function closePopupLogin()
{
popup.style.display = 'none';
popup1.style.display = 'none';
window.location = './login.php';
}
function closePopupOnly()
{
popup.style.display = 'none';
popup1.style.display = 'none';
}
function show()
{
var account = document.getElementById("account-box");
if (account.style.display === "none")
{
account.style.display = "block";
}
else
{
account.style.display = "none";
}
}
</script>
</body>
</html>