cache announce userInfo

This commit is contained in:
xiaomlove
2022-03-19 19:51:23 +08:00
parent 4857b799b8
commit a5ea51de55
9 changed files with 17 additions and 6 deletions

View File

@@ -2812,6 +2812,9 @@ function base64 ($string, $encode=true) {
function loggedinorreturn($mainpage = false) {
global $CURUSER,$BASEURL;
if (!$CURUSER) {
if (CURRENT_SCRIPT == 'ajax') {
exit(fail('Not login!', $_POST));
}
if ($mainpage)
header("Location: " . get_protocol_prefix() . "$BASEURL/login.php");
else {