mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 19:28:42 +00:00
14 lines
439 B
PHP
14 lines
439 B
PHP
<?php
|
|
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() ?>
|