2016-07-18 16:39:37 +00:00
|
|
|
<?php
|
2022-10-19 22:33:49 +00:00
|
|
|
requireLib('bootstrap5');
|
|
|
|
requireLib('calendar_heatmap');
|
|
|
|
|
2022-10-07 09:29:26 +00:00
|
|
|
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
2022-10-06 12:28:43 +00:00
|
|
|
redirectToLogin();
|
2022-03-17 04:00:03 +00:00
|
|
|
}
|
|
|
|
|
2022-10-07 09:29:26 +00:00
|
|
|
if (!isNormalUser($myUser) && UOJConfig::$data['switch']['force-login']) {
|
2022-04-03 10:18:17 +00:00
|
|
|
become403Page();
|
|
|
|
}
|
|
|
|
|
2016-07-18 16:39:37 +00:00
|
|
|
$username = $_GET['username'];
|
2022-03-25 05:16:37 +00:00
|
|
|
|
2022-09-28 07:39:39 +00:00
|
|
|
if (!validateUsername($username) || !($user = queryUser($username))) {
|
|
|
|
become404Page();
|
|
|
|
}
|
2022-09-18 04:58:35 +00:00
|
|
|
?>
|
2022-03-25 05:16:37 +00:00
|
|
|
|
2022-10-19 22:33:49 +00:00
|
|
|
<?php echoUOJPageHeader($user['username'] . ' - ' . UOJLocale::get('user profile')) ?>
|
2022-09-20 10:23:18 +00:00
|
|
|
|
2022-10-19 22:33:49 +00:00
|
|
|
<?php uojIncludeView('user-info', array('user' => $user, 'myUser' => $myUser)) ?>
|
2016-07-18 16:39:37 +00:00
|
|
|
|
|
|
|
<?php echoUOJPageFooter() ?>
|