hajime/public/mio_profile.php

61 lines
3 KiB
PHP
Raw Permalink Normal View History

2023-08-11 22:16:32 +00:00
<!DOCTYPE html>
<html lang="en-gb">
<head>
<meta charset="UTF-8" />
<title><?=$userVar['title'];?></title>
<link rel="stylesheet" type="text/css" href="/assets/global.css" />
<link rel="stylesheet" type="text/css" href="/assets/css/mio.css" />
<?=$userVar['profileBg'];?>
<script type="text/javascript" src="/assets/jquery.js"></script>
<script type="text/javascript" src="/assets/js/flashii.js"></script>
</head>
<body>
<?php include(FII_SRC_DIR . '/mio_bar.php'); ?><br /><br />
<?php if($userExists) { ?>
<div class="profile">
<h3 class="miotitle">Profile of <?=$userArray['username'];?></h3>
<div class="profile_cont">
<div class="prof_avatar_cont">
<img src="<?=$userVar['avatar'];?>" title="<?=$userArray['username'];?>" alt="<?=$userArray['username'];?>'s avatar" class="prof_avatar" />
</div>
<h2 style="margin: 0px;<?=$groupArray['style'];?>"><?=$userArray['username'];?></h2><i><?=$userVar['uTitle'];?></i>
<?php
if($flashii->loggedin()){
if($userArray['id'] == $_SESSION['uid']) {
print('<div class="prof_options"><a href="/ucp/profile">Edit Profile</a></div>');
}
}
?>
<hr />
<?php
print '<table style="float: right; margin: 0 30px;">';
print $userVar['sideBar'];
print '</table>';
print '<ul>
<li>Joined: '.date('l Y-m-d H:i', $userArray['join_date']).'</li>
<li>Last seen: '.($userArray['last_seen'] ? date('l Y-m-d H:i', $userArray['last_seen']) : 'Hasn\'t logged in yet.').'</li>';
print '</ul><div class="clear"></div>';
?>
</div>
<br />
</div>
<?php if($userPage) { ?>
<div class="pagecontent" id="userpage">
<h3 class="miotitle" style="margin:0px;"><?=$userArray['username'];?>'<?=(substr($userArray['username'], -1) == 's' ? null : 's');?> Userpage<span class="windowbutton-container" onclick="hidePageSection('userpage',0);"><img class="maxbutton" src="/assets/pixel.png" alt="_" /></span></h3>
<div class="mioboxcontent sub hidden" style="margin:0px;">
<?=$mdparser->text(strip_tags($userArray['profilemarkdown']));?>
</div>
</div>
<?php
}
} else {
print('<h1 class="miomessage" style="margin-top: 10%;margin-bottom: 10%;line-height:110%;">The requested user does not exist.</h1>');
}
?>
<div class="navbar">
<?php include(FII_SRC_DIR . '/mio_menu.php'); ?>
</div>
<?php include(FII_SRC_DIR . '/mio_copyright.php'); ?>
</body>
</html>