I will create a second folder of smile to display only if the room has censorship by age (for example, I create a room by specifying that the access is allowed from 20 to 40 years I see and I can use the second folder of smile) and can do it in a lavalair? someone give me some ideas? Thanks to those who will respond
help second foder of smile
Collapse
This topic is closed.
X
X
-
PHP Code: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'); ?>
-
Originally posted by i0nutzxp View PostPHP Code: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?
Comment
-
code for smilies category been posted long time ago...
if i remember correct user alesh has posted it...
so... search is the key word...
having same topics and answers over and over again...
will create only mess on forum...
*LOCK*It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
Comment