2016-07-19 00:39:37 +08:00
|
|
|
<?php
|
2022-10-19 11:58:16 +08:00
|
|
|
requireLib('bootstrap5');
|
|
|
|
|
2022-10-07 17:29:26 +08:00
|
|
|
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
2022-10-06 20:28:43 +08:00
|
|
|
redirectToLogin();
|
2022-03-17 12:00:03 +08:00
|
|
|
}
|
|
|
|
|
2022-10-07 17:29:26 +08:00
|
|
|
if (!isNormalUser($myUser) && UOJConfig::$data['switch']['force-login']) {
|
2022-04-03 18:18:17 +08:00
|
|
|
become403Page();
|
|
|
|
}
|
|
|
|
|
2022-10-15 07:15:22 +08:00
|
|
|
$config = [
|
2022-10-19 11:58:16 +08:00
|
|
|
'page_len' => 50,
|
2022-10-15 07:15:22 +08:00
|
|
|
'div_classes' => ['card', 'mb-3'],
|
|
|
|
'table_classes' => ['table', 'uoj-table', 'mb-0', 'text-center'],
|
|
|
|
];
|
|
|
|
|
2022-03-21 10:51:31 +08:00
|
|
|
if (isset($_GET['type']) && $_GET['type'] == 'accepted') {
|
2022-10-15 07:15:22 +08:00
|
|
|
$config['by_accepted'] = true;
|
2022-03-21 10:51:31 +08:00
|
|
|
$title = UOJLocale::get('top solver');
|
|
|
|
} else {
|
|
|
|
become404Page();
|
|
|
|
}
|
2022-09-18 12:58:35 +08:00
|
|
|
?>
|
2022-10-19 11:58:16 +08:00
|
|
|
|
2022-03-21 10:51:31 +08:00
|
|
|
<?php echoUOJPageHeader($title) ?>
|
2022-10-19 11:58:16 +08:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- left col -->
|
|
|
|
<div class="col-lg-9">
|
2022-09-24 11:55:34 +08:00
|
|
|
<h1 class="h2"><?= $title ?></h1>
|
2022-10-19 11:58:16 +08:00
|
|
|
|
2016-07-19 00:39:37 +08:00
|
|
|
<?php echoRanklist($config) ?>
|
2022-10-19 11:58:16 +08:00
|
|
|
</div>
|
|
|
|
<!-- end left col -->
|
|
|
|
|
|
|
|
<!-- right col -->
|
|
|
|
<aside class="col-lg-3 mt-3 mt-lg-0">
|
|
|
|
<?php uojIncludeView('sidebar', array()) ?>
|
|
|
|
</aside>
|
|
|
|
<!-- end right col -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2016-07-19 00:39:37 +08:00
|
|
|
<?php echoUOJPageFooter() ?>
|