S2OJ/web/app/controllers/user_info.php

14 lines
439 B
PHP
Raw Normal View History

2016-07-18 16:39:37 +00:00
<?php
2022-11-11 23:10:34 +00:00
requireLib('calendar_heatmap');
2022-10-19 22:33:49 +00:00
2022-11-11 23:10:34 +00:00
Auth::check() || redirectToLogin();
($user = UOJUser::query($_GET['username'])) || UOJResponse::page404();
Auth::id() == $user['username'] || UOJUser::checkPermission(Auth::user(), 'users.view') || UOJResponse::page403();
?>
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-11-06 02:26:21 +00:00
<?php uojIncludeView('user-info', ['user' => $user]) ?>
2016-07-18 16:39:37 +00:00
<?php echoUOJPageFooter() ?>