Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv7155/chat
Modified Files:
whois_popup.php3
Log Message:
bug: moderator of level 6 can view IP only users from pmc_rights and if they right_level < you level
fix: disable view IP of users if they right_level > then you. Allow IP any other users.
Index: whois_popup.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** whois_popup.php3 2001/12/10 22:50:55 1.20
--- whois_popup.php3 2001/12/24 09:30:47 1.21
***************
*** 105,112 ****
else
{
! $whoisDbLnk->query("SELECT COUNT(*) FROM " . C_RIGHT_TBL . " WHERE username = '$slashedWhoisTarget' AND right_level < " . $dbSessionVars['status']);
list($isHigh) = $whoisDbLnk->nextRecord();
$whoisDbLnk->cleanResults();
! $power = ($isHigh) ? 'high' : 'low';
}
}
--- 105,112 ----
else
{
! $whoisDbLnk->query("SELECT COUNT(*) FROM " . C_RIGHT_TBL . " WHERE username = '$slashedWhoisTarget' AND right_level > " . $dbSessionVars['status']);
list($isHigh) = $whoisDbLnk->nextRecord();
$whoisDbLnk->cleanResults();
! $power = ($isHigh) ? 'low' : 'high';
}
}
|