Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv4489/chat
Modified Files:
whois_popup.php3
Log Message:
Allow an user to see all informations about itself
Index: whois_popup.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** whois_popup.php3 2001/04/12 23:38:25 1.7
--- whois_popup.php3 2001/04/13 11:42:08 1.8
***************
*** 78,95 ****
* Define the level of information the current user is allowed to see
*/
! switch ($dbSessionVars['status'])
{
! case 'a': // administrator
! $power = 'high';
! break;
!
! case 'm': // moderator
! $power = 'medium';
! break;
! default:
! $power = 'weak';
! } // end switch
/**
--- 78,101 ----
* Define the level of information the current user is allowed to see
*/
! if ($dbSessionVars['nick'] == $whoisTarget)
{
! $power = 'high';
! }
! else
! {
! switch ($dbSessionVars['status'])
! {
! case 'a': // administrator
! $power = 'high';
! break;
! case 'm': // moderator
! $power = 'medium';
! break;
+ default:
+ $power = 'weak';
+ } // end switch
+ }
/**
|