S2OJ/web/app/controllers/ranklist.php

28 lines
672 B
PHP
Raw Normal View History

2016-07-19 00:39:37 +08:00
<?php
2022-03-17 12:00:03 +08:00
if (!Auth::check()) {
2022-04-02 18:01:26 +08:00
become403Page(UOJLocale::get('need login'));
2022-03-17 12:00:03 +08:00
}
2022-04-03 18:18:17 +08:00
if (!isNormalUser($myUser)) {
become403Page();
}
2022-03-21 10:51:31 +08:00
if (isset($_GET['type']) && $_GET['type'] == 'accepted') {
$config = array('page_len' => 100, 'by_accepted' => true);
$title = UOJLocale::get('top solver');
} else {
become404Page();
}
2022-09-24 11:55:34 +08:00
if (!isset($_COOKIE['bootstrap4'])) {
$REQUIRE_LIB['bootstrap5'] = '';
$config['div_classes'] = array('card', 'mb-3');
$config['table_classes'] = array('table', 'uoj-table', 'mb-0', 'text-center');
}
2022-09-18 12:58:35 +08:00
?>
2022-03-21 10:51:31 +08:00
<?php echoUOJPageHeader($title) ?>
2022-09-24 11:55:34 +08:00
<h1 class="h2"><?= $title ?></h1>
2016-07-19 00:39:37 +08:00
<?php echoRanklist($config) ?>
<?php echoUOJPageFooter() ?>