-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.php
260 lines (201 loc) · 10.1 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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<?php
include 'connection.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>
Wattscope - Reduce Emissions & Save 1000s+ INR
</title>
<link rel="shortcut icon" href="./image/png/favicon.png" type="image/x-icon">
<!-- Bootstrap , fonts & icons -->
<link rel="stylesheet" href="./css/bootstrap.css">
<link rel="stylesheet" href="./fonts/icon-font/css/style.css">
<link rel="stylesheet" href="./fonts/typography-font/typo.css">
<link rel="stylesheet" href="./fonts/fontawesome-5/css/all.css">
<!-- Plugin'stylesheets -->
<link rel="stylesheet" href="./plugins/aos/aos.min.css">
<link rel="stylesheet" href="./plugins/fancybox/jquery.fancybox.min.css">
<link rel="stylesheet" href="./plugins/nice-select/nice-select.min.css">
<link rel="stylesheet" href="./plugins/slick/slick.min.css">
<!-- Vendor stylesheets -->
<link rel="stylesheet" href="./plugins/theme-mode-switcher/switcher-panel.css">
<link rel="stylesheet" href="./css/main.css">
<!-- Custom stylesheet -->
</head>
<body data-theme-mode-panel-active data-theme="light">
<div class="site-wrapper overflow-hidden ">
<!-- Header Area -->
<header class="site-header site-header--menu-center dark-mode-texts dynamic-sticky-bg mt-3 mt-lg-0 site-header--absolute site-header--sticky">
<div class="container">
<nav class="navbar site-navbar">
<!-- Brand Logo-->
<div class="brand-logo">
<a href="/home-marketing.html">
</a>
</div>
<div class="menu-block-wrapper ms-4 dark-mode-texts">
<div class="menu-overlay"></div>
<nav class="menu-block" id="append-menu-header">
<div class="mobile-menu-head">
<div class="go-back">
<i class="fa fa-angle-left"></i>
</div>
<div class="current-menu-title"></div>
<div class="mobile-menu-close">×</div>
</div>
<ul class="site-menu-main">
<li class="nav-item nav-item-has-children">
<a href="./index.php" class="nav-link-item">Home</a>
</li>
<li class="nav-item nav-item-has-children">
<a href="./scan.php" class="nav-link-item">Scan A Utility</a>
</li>
</li>
<li class="nav-item nav-item-has-children">
<a href="./about.php" class="nav-link-item">About</a>
</li>
</ul>
</nav>
</div>
<div class="header-btn ">
<?php
if(empty($_SESSION['id'])) {
echo ' <a href="./signup.php" class="btn btn btn-electric-violet-2 text-white rounded-50 ms-lg-2 shadow--electric-violet-2-4 ms-auto d-none d-sm-flex" style="background-color: #ff1e38; border: #ff1e38;">
Sign In
</a>';
}
else {
echo ' <a href="./account.php" class="btn btn btn-electric-violet-2 text-white rounded-50 ms-lg-2 shadow--electric-violet-2-4 ms-auto d-none d-sm-flex" style="background-color: #ff1e38; border: #ff1e38;">
Account
</a>';
}
?>
</div>
<!-- mobile menu trigger -->
<div class="mobile-menu-trigger">
<span></span>
</div>
<!--/.Mobile Menu Hamburger Ends-->
</nav>
</div>
</header>
<!-- navbar- -->
<!--/ .Header Area -->
<body data-theme-mode-panel-active="" data-theme="light" data-aos-easing="ease" data-aos-duration="400" data-aos-delay="0" data-new-gr-c-s-check-loaded="14.1121.0" data-gr-ext-installed="">
<div class="site-wrapper overflow-hidden ">
<!-- Clean The Code And Hop in -->
<div class="coming-soon bg-default-3 vh-md-100 position-relative">
<div class="container position-static vh-md-100">
<div class="row align-items-center justify-content-center position-static vh-md-100">
<div class="col-xl-6 col-lg-4 position-static vh-md-100 d-none d-lg-block">
<div class="form-img position-absolute bg-image" style="background-image: url(../images/account/accountbg.jpg)">
</div>
</div>
<div class="col-xl-6 col-lg-8 col-md-10 text-center">
<div class="section-title section-title--l3 mb-3 mb-lg-7" style="padding-left: 70px;)">
<h2 class="section-title__heading aos-init aos-animate" data-aos="fade-up" data-aos-duration="500" data-aos-once="true" style="text-align:left;">Hey, <?php
$id = $_SESSION['id'];
$fetch = mysqli_query($conn, "SELECT * FROM account WHERE userid = '$id'");
$row = mysqli_fetch_assoc($fetch);
echo $row['username'];?></h2>
<p style="text-align:left;" class="section-title__description aos-init aos-animate" data-aos="fade-up" data-aos-duration="500" data-aos-delay="300" data-aos-once="true">Here are your account details:
<br><br><?php
$id = $_SESSION['id'];
$fetch = mysqli_query($conn, "SELECT * FROM account WHERE userid = '$id'");
$row = mysqli_fetch_assoc($fetch);
echo "<b>Username:</b> {$row['username']}<br><b>Email Connected:</b> {$row['useremail']}<br><b>Password:</b> {$row['password']}"?></p><br>
<button class="btn btn-primary shadow--primary-5 btn--lg-2 rounded-55 text-white mt-4" style="text-align: left;"><a href="logout.php" style="color: white;" href="logout.php">Logout</a></button>
</div>
</div>
</div>
</div>
</div>
<script src="./plugins/count-down/count-down.js"></script>
</div>
</div>
</div>
<!-- Hero Area -->
<footer class="footer-section footer-inner-2 position-relative bg-default pt-6">
<div class="container">
<div class="footer-top border-bottom border-default-color-3 pb-5">
<div class="row align-items-center justify-content-center">
<div class="col-6 col-xxs-4 col-lg-4 col-md-5 col-xs-4">
<div class="footer-brand-block footer-brand-block--l4 mb-md-0">
<!-- Brand Logo-->
<div class="brand-logo mb-0 text-center text-md-start mx-auto mx-md-0">
<a href="#">
<!-- light version logo (logo must be black)-->
<img src="image/png/logo-dark.png" alt="" class="light-version-logo">
<!-- Dark version logo (logo must be White)-->
<img src="image/png/logo-white.png" alt="" class="dark-version-logo">
</a>
</div>
</div>
</div>
<div class="col-lg-8 col-md-7">
<div class="footer-menu text-center text-md-end">
<ul class="list-unstyled">
<li><a href="#">Home</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Resources</a></li>
<li><a href="#">Forum</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="copyright-block copyright-block--l3">
<div class="row text-center align-items-center">
<div class="col-xs-6 text-sm-start">
<p class="copyright-text--l3 ">© 2023 wattscope</p> <span class="copyright-text--l3 ">
</div>
<div class="col-xs-6 text-sm-end">
<ul class="footer-social-share footer-social-share--rounded">
<li>
<a href="#">
<i class="fab fa-facebook-square"></i>
</a>
</li>
<li>
<a href="#">
<i class="fab fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.instagram.com/sparshbothraa/">
<i class="fab fa-instagram"></i>
</a>
</li>
<li>
<a href="https://www.linkedin.com/in/sparsh-bothra/">
<i class="fab fa-linkedin"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</footer>
<!-- Plugin's Scripts -->
<script src="./plugins/jquery/jquery.min.js"></script>
<script src="./plugins/jquery/jquery-migrate.min.js"></script>
<script src="./js/bootstrap.bundle.js"></script>
<script src="./plugins/fancybox/jquery.fancybox.min.js"></script>
<script src="./plugins/nice-select/jquery.nice-select.min.js"></script>
<script src="./plugins/aos/aos.min.js"></script>
<script src="./plugins/counter-up/jquery.counterup.min.js"></script>
<script src="./plugins/counter-up/waypoints.min.js"></script>
<script src="./plugins/slick/slick.min.js"></script>
<script src="./plugins/skill-bar/skill.bars.jquery.js"></script>
<script src="./plugins/isotope/isotope.pkgd.min.js"></script>
<!--<script src="./plugins/theme-mode-switcher/gr-theme-mode-switcher.js"></script>-->
<!-- Activation Script -->
<script src="js/menu.js"></script>
<script src="js/custom.js"></script>
</body>
</html>