refactor: msg page with bs5

This commit is contained in:
Baoshuo Ren 2022-09-24 06:25:27 +08:00
parent c967357e01
commit a8233f1cb6
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -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();