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