S2OJ/web/app/controllers/subdomain/blog/aboutme.php

14 lines
509 B
PHP
Raw Normal View History

2022-03-17 04:00:03 +00:00
<?php
2022-11-06 02:26:21 +00:00
requireLib('bootstrap5');
requireLib('calendar_heatmap');
2022-03-17 04:00:03 +00:00
2022-11-06 02:26:21 +00:00
Auth::check() || redirectToLogin();
2022-11-11 23:10:34 +00:00
UOJUserBlog::userIsOwner(Auth::user()) || UOJUser::checkPermission(Auth::user(), 'blogs.view') || UOJResponse::page403();
Auth::id() == $user['username'] || UOJUser::checkPermission(Auth::user(), 'users.view') || UOJResponse::page403();
2022-11-06 02:26:21 +00:00
?>
2016-07-18 16:39:37 +00:00
<?php echoUOJPageHeader('关于我') ?>
2022-11-06 02:26:21 +00:00
<?php uojIncludeView('user-info', ['user' => UOJUserBlog::user(), 'is_blog_aboutme' => true]) ?>
2016-07-18 16:39:37 +00:00
<?php echoUOJPageFooter() ?>