mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 10:38:43 +00:00
25 lines
591 B
PHP
25 lines
591 B
PHP
<?php
|
|
requireLib('bootstrap5');
|
|
requireLib('calendar_heatmap');
|
|
|
|
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
|
redirectToLogin();
|
|
}
|
|
|
|
if (!isNormalUser($myUser) && UOJConfig::$data['switch']['force-login']) {
|
|
become403Page();
|
|
}
|
|
|
|
$username = $_GET['username'];
|
|
|
|
if (!validateUsername($username) || !($user = queryUser($username))) {
|
|
become404Page();
|
|
}
|
|
?>
|
|
|
|
<?php echoUOJPageHeader($user['username'] . ' - ' . UOJLocale::get('user profile')) ?>
|
|
|
|
<?php uojIncludeView('user-info', array('user' => $user, 'myUser' => $myUser)) ?>
|
|
|
|
<?php echoUOJPageFooter() ?>
|