Quote:
Originally Posted by H@K@N
Does anybody see the possibility to disallow external Image linking within the Shoutbox ?
So only images from same Host, will be allowed, as for smilies for ex.
Have still some kiddies, which posting external images, which are stored on a Server/Folder which have .htaccess with AUTH activated, so always the authentication Popup is coming up on my Forum. Some will Enter his Username and Password, i'm sure.
th@nks
|
this should do:
Code:
//unallowed extensions
if (strpos($Shout['s_shout'],"gif")|strpos($Shout['s_shout'],"jpg")|strpos($Shout['s_shout'],"bmp"))
{
//allowed domain
$allow="http://forum.ubuntu.pl";
if (strpos($Shout['s_shout'],$allow)!=0)
{
$Shout['s_shout'] = str_replace("http://","", $Shout['s_shout']);
$Shout['s_shout'] = str_replace("www.","", $Shout['s_shout']);
}
}
please, don't ask "where?". I dont know :P Check my last posts about word wrap in this topic and add this code in a same place (and let us know where is it)