mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 23:58:41 +00:00
15 lines
465 B
PHP
15 lines
465 B
PHP
<?php
|
|
requireLib('bootstrap5');
|
|
requireLib('calendar_heatmap');
|
|
|
|
Auth::check() || redirectToLogin();
|
|
($user = UOJUser::query($_GET['username'])) || UOJResponse::page404();
|
|
Auth::id() == $user['username'] || UOJUser::checkPermission(Auth::user(), 'users.view') || UOJResponse::page403();
|
|
?>
|
|
|
|
<?php echoUOJPageHeader($user['username'] . ' - ' . UOJLocale::get('user profile')) ?>
|
|
|
|
<?php uojIncludeView('user-info', ['user' => $user]) ?>
|
|
|
|
<?php echoUOJPageFooter() ?>
|