mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-09 17:18:42 +00:00
refactor: msg page with bs5
This commit is contained in:
parent
c967357e01
commit
a8233f1cb6
@ -58,9 +58,13 @@ function redirectToLogin() {
|
||||
}
|
||||
}
|
||||
function becomeMsgPage($msg, $title = '消息') {
|
||||
global $REQUIRE_LIB;
|
||||
|
||||
if (UOJContext::isAjax()) {
|
||||
die($msg);
|
||||
} else {
|
||||
$REQUIRE_LIB['bootstrap5'] = '';
|
||||
|
||||
echoUOJPageHeader($title);
|
||||
echo $msg;
|
||||
echoUOJPageFooter();
|
||||
|
Loading…
Reference in New Issue
Block a user