|
From: Lo?c C. <lo...@us...> - 2001-04-13 11:42:11
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands
In directory usw-pr-cvs1:/tmp/cvs-serv4489/chat/lib/commands
Modified Files:
whois.cmd.php3
Log Message:
Allow an user to see all informations about itself
Index: whois.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/whois.cmd.php3,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** whois.cmd.php3 2001/04/10 09:38:14 1.2
--- whois.cmd.php3 2001/04/13 11:42:08 1.3
***************
*** 45,53 ****
// Not a registered users -> show IP if the current user is administrator
! // or moderator of the current room
if (!$isProfile)
{
$error = sprintf(L_NONREG_USER, $cmd[1]);
! if ($dbSessionVars['status'] == 'a' || $dbSessionVars['status'] == 'm')
{
$dbLink->query("SELECT ip FROM " . C_USR_TBL . " WHERE username='" . $slashedTarget . "' LIMIT 1");
--- 45,54 ----
// Not a registered users -> show IP if the current user is administrator
! // or moderator of the current room, or if the target user is itself
if (!$isProfile)
{
$error = sprintf(L_NONREG_USER, $cmd[1]);
! if (($dbSessionVars['status'] == 'a' || $dbSessionVars['status'] == 'm')
! || $dbSessionVars['nick'] == $cmd[1])
{
$dbLink->query("SELECT ip FROM " . C_USR_TBL . " WHERE username='" . $slashedTarget . "' LIMIT 1");
***************
*** 67,74 ****
{
$isPopup = true;
! $winName = 'whois_popup_' . uniqid('');
$whoisUrl = 'whois_popup.' . C_EXTENSION
. '?' . dbSessionSID('GET')
! . $pmcQueryArgSeparator . 'whoisTarget=' . $cmd[1];
$jsToRun = array(
--- 68,76 ----
{
$isPopup = true;
! $nickForUrl = urlencode($cmd[1]);
! $winName = 'whois_popup_' . md5($cmd[1]);
$whoisUrl = 'whois_popup.' . C_EXTENSION
. '?' . dbSessionSID('GET')
! . $pmcQueryArgSeparator . 'whoisTarget=' . urlencode($cmd[1]);
$jsToRun = array(
|