Update home.php

This commit is contained in:
nolanwhy 2023-02-04 22:01:36 +01:00 committed by GitHub
parent e2bfd8d316
commit b44f517b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 2 deletions

View File

@ -9,6 +9,25 @@ session_start();
require_once 'core/classes.php';
require_once 'core/classes/user.php';
$user = new User($con, $_SESSION['user']);
$himsgs = [
"Hello",
"What's up",
"How you doing",
"Ayo",
"Hola",
"Welcome",
"Welcome back",
"Hi",
"Hey",
"Heyyo",
"Howdy",
"Hi there",
"Ahoy"
];
$himsg = array_rand($himsgs);
$himsg = $himsgs[$himsg];
$getitstarted = new PartyStarter;
$getitstarted->header();
?>
@ -18,7 +37,7 @@ $getitstarted->header();
<main class="container text-white" style="width: 100%;">
<br><br>
<img src="https://tr.rbxcdn.com/4039b106ee8e92c8c73595ffaa35108d/150/150/AvatarHeadshot/Png" class="rounded-circle" width=190 height=190></img>
<span class=" text-center" style="font-size: 2rem; margin-left: 6px;">Welcome back, <?php echo $user->getUsername(); ?></span>
<span class=" text-center" style="font-size: 2rem; margin-left: 6px;"><?php echo $himsg; ?>, <?php echo $user->getUsername(); ?>!</span>
<div style="margin-bottom: 50px;"></div>
<h4 class=" card-title" style="margin-bottom: 15px;">Friends (2)</h4>
<div class="card shadow-sm-lg" style="height: 11.75rem;">
@ -84,4 +103,4 @@ $getitstarted->header();
</div>
</main>
</body>
</html>
</html>