irmtfan wrote:
huum
i nearlly sure this possible with check ip of first user login and no other way for it
am i right?
btw i think you want this for prevent sneak preview at your site or something like this
true.
Quote:
Mithrandir wrote:
include/checklogin.php around line 43://existing code
$myts =& MyTextsanitizer::getInstance();
$user =& $member_handler->loginUser(addslashes($myts->stripSlashesGPC($uname)), addslashes($myts->stripSlashesGPC($pass)));
if (false != $user) {
//add this to check if user is already logged in
if ($user->isOnline()) {
redirect_header('index.php', 3, "User is already logged in");
}
//rest of the existingcode
Note that the who's online block should be set visible for this to work properly.
Thanks a lot, I will try it and i'll post the result. Can you tell why the who's online block must be set to visible? Does it need to read something from it?