mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 12:28:42 +00:00
29 lines
670 B
PHP
29 lines
670 B
PHP
<?php
|
|
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
|
redirectToLogin();
|
|
}
|
|
|
|
if (!isNormalUser($myUser) && UOJConfig::$data['switch']['force-login']) {
|
|
become403Page();
|
|
}
|
|
|
|
$config = [
|
|
'page_len' => 100,
|
|
'div_classes' => ['card', 'mb-3'],
|
|
'table_classes' => ['table', 'uoj-table', 'mb-0', 'text-center'],
|
|
];
|
|
|
|
if (isset($_GET['type']) && $_GET['type'] == 'accepted') {
|
|
$config['by_accepted'] = true;
|
|
$title = UOJLocale::get('top solver');
|
|
} else {
|
|
become404Page();
|
|
}
|
|
|
|
requireLib('bootstrap5');
|
|
?>
|
|
<?php echoUOJPageHeader($title) ?>
|
|
<h1 class="h2"><?= $title ?></h1>
|
|
<?php echoRanklist($config) ?>
|
|
<?php echoUOJPageFooter() ?>
|