I0
function getsmiliesporn($text)
{
$sql = "SELECT * FROM ibwf_smilies_porn";
// or
#$sql = "SELECT * FROM ibwf_smilies WHERE cat='sex'";
$smilies = mysql_query($sql);
while($smilie=mysql_fetch_array($smilies, MYSQL_NUM))
{
$scode = $smilie[1];
$spath = $smilie[2];
$text = str_replace($scode,"<img src=\"$spath\" alt=\"$scode\"/>",$text);
}
return $text;
}
function parsepmporn($text, $sid="")
{
$text = htmlspecialchars($text);
$sml = mysql_fetch_array(mysql_query("SELECT hvia FROM ibwf_users WHERE id='".getuid_sid($sid)."'"), MYSQL_NUM);
if ($sml[0]=="1")
{
$text = getsmiliesporn($text);
}
$text = getbbcode($text, $sid);
return $text;
}
in chat.php // search for parsepm witch CTRL + F
$sql = mysql_query("SELECT mage FROM ibwf_rooms WHERE id='".$rid."'")
$rinfo = mysql_fetch_array($sql, MYSQL_NUM);
if($rinfo[0]>17)
$text = parsepmporn($chat[3], $sid);
else
$text = parsepm($chat[3], $sid);
// is that u searched for?
<?php unlink('World/Europe/Romania.country'); ?>