when a user doing private msg to other user in chatroom then how can owner see those private msg?anybody can help me in this code. thnks
PHP Code:
$canc = false;
}*/
//////////good
if($chat[0]!=$uid)
{
if($chat[1]!=0)
{
if($chat[1]!=$uid)
{
$canc = false;
}
}
}
if($chat[4]=='1' && ismod($uid))
{
$canc = true;
}
if($canc)
{
$cmid = mysql_fetch_array(mysql_query("SELECT chmood FROM ibwf_users WHERE id='".$chat[0]."'"));
$iml = "";
if(($cmid[0]!=0))
{
$mlnk = mysql_fetch_array(mysql_query("SELECT img, text FROM ibwf_moods WHERE id='".$cmid[0]."'"));
$iml = "<img src=\"$mlnk[0]\" alt=\"$mlnk[1]\"/>";
}
$chnick = getnick_uid($chat[0]);
$optlink = $iml.$chnick;
if(($chat[1]!=0)&&($chat[0]==$uid))
{
///out
$iml = "<img src=\"../moods/out.gif\" alt=\"!\"/>";
$chnick = getnick_uid($chat[1]);
$optlink = $iml."Pm To ".$chnick;
}
if($chat[1]==$uid)
{
///out
$iml = "<img src=\"../moods/in.gif\" alt=\"!\"/>";
$chnick = getnick_uid($chat[0]);
$optlink = $iml."Pm By ".$chnick;
}
if($chat[4]=='1')
{
///out
$iml = "<img src=\"../moods/point.gif\" alt=\"!\"/>";
$chnick = getnick_uid($chat[0]);
$tonick = getnick_uid($chat[1]);
$optlink = "$iml By ".$chnick." To ".$tonick;
}
$ds= date("H.i.s", $chat[2]);
$text = parsepm($chat[3], $sid);
$nos = substr_count($text,"<img src=");
if(isspam($text))
{
$chnick = getnick_uid($chat[0]);
echo addchatmsg($chat[0],$text,1,"*Oi! $chnick, No Spamming!*");
}
else if($nos>2){
$chnick = getnick_uid($chat[0]);
echo addchatmsg($chat[0],$text,1,"*Hey! $chnick, U Can Only Use 2 Smilies Per Msg!*");
}else{
$sres = substr($chat[3],0,3);
if($sres == "/me")
{
$chco = strlen($chat[3]);
$goto = $chco - 3;
$rest = substr($chat[3],3,$goto);
$tosay = parsepm($rest, $sid);
echo addchatmsg($chat[0],$tosay,1,"");
}
else{
if($rinfo[0]==0){$tosay = getbbcode($chat[3], $sid, 0);}
else{$tosay = parsepm($chat[3], $sid, 1);}
if($rinfo[1]==1){$tosay = strrev($tosay);}
echo "<a href=\"chat.php?action=say2&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a> - ";
echo $tosay."<br/>";
}
}
$counter++;
}
}
}
Comment