S2OJ/web/app/controllers/ranklist.php

16 lines
372 B
PHP

<?php
if (!Auth::check()) {
becomeMsgPage(UOJLocale::get('need login'));
}
if (isset($_GET['type']) && $_GET['type'] == 'accepted') {
$config = array('page_len' => 100, 'by_accepted' => true);
$title = UOJLocale::get('top solver');
} else {
become404Page();
}
?>
<?php echoUOJPageHeader($title) ?>
<?php echoRanklist($config) ?>
<?php echoUOJPageFooter() ?>