2024-06-28 21:41:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
//global $user;
|
|
|
|
if (is_null($user)) {
|
|
|
|
$error = true;
|
|
|
|
$error_body = "Not logged in.";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<?php include "partials/head.php" ?>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php include "partials/header.php" ?>
|
|
|
|
|
2024-07-03 20:28:13 +00:00
|
|
|
<main>
|
|
|
|
<?php
|
2024-07-27 12:07:27 +00:00
|
|
|
if (isset($error)) {
|
2024-07-03 20:28:13 +00:00
|
|
|
include 'partials/error.php';
|
|
|
|
include 'partials/footer.php';
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2024-07-27 12:07:27 +00:00
|
|
|
<div id="profile-wrapper">
|
|
|
|
<img id="profile-image"
|
|
|
|
src="<?= get_user_avatar($profile_owner['id']) ?>"
|
|
|
|
alt="<?= get_user_display_name($profile_owner['id']) ?>'s avatar" />
|
|
|
|
<div id="profile-user-info">
|
|
|
|
<span id="profile-display-name"><?= get_user_display_name($profile_owner['id']) ?></span>
|
|
|
|
<span id="profile-bcid"><?= format_bcid($profile_owner['id']) ?></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-03 20:28:13 +00:00
|
|
|
</main>
|
2024-06-28 21:41:35 +00:00
|
|
|
|
|
|
|
<?php include 'partials/footer.php' ?>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|