8
First, Happy new year all XOOPS friends!
I have changed the code so the check doesn't apply to admins:
if ($user->isAdmin() == false) {
if ($user->isOnline()) {
redirect_header('index.php', 3, "User is already logged in");
}
}
Anyone to help me on how to exclude moderators too?
And another question. It seems that the online block gets the database updates (deletes inactive users) after a large number of user logins. Is there a way to decrease that number?
Thanks.