-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdash.php
More file actions
22 lines (22 loc) · 899 Bytes
/
dash.php
File metadata and controls
22 lines (22 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
session_start();
if ($_SESSION["loggedin"] == "true") {
require 'components/header.php';
$user = $_SESSION["username"];
$sql = "SELECT * FROM `user` WHERE `user`.`username` = '$user'";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_assoc($result);
?>
<div class="alert alert-success mt-4 mx-5" role="alert">
<h4 class="alert-heading">Welcome <?php echo $row["username"] ?>!</h4>
<p>Aww yeah, you have successfully signed up at <?php echo $site_name ?>, this important alert message for blah blahh...</p>
<hr>
<p class="mb-0">Your Username is <?php echo $row["username"] ?>, your email is <?php echo $row["email"] ?> and you have signed up on <?php echo $row["date"] ?> Have a nice day!</p>
</div>
<?php
require 'components/footer.php';
} else {
header('Location: /login.php');
exit();
}
?>