Public feed #603747

Something

public text v1 · immutable
Raw Edit
·published 2007-07-05 01:36 UTC
rendered paste body
function CheckVulgText($text,$ip)
{
	$text = strtolower($text);
	$h = fopen('filter.txt','r');
	$words = fread($h,filesize('filter.txt'));
	fclose($h);
	$vulgs = array();
	$vulgs = explode("\n",$words);
	foreach($vulgs as $vulg)
	{
		if (strpos($text,$vulg)===true)
		{
			AddBan($ip,'Grow Up.');
			echo "Grow Up.";
			exit;
		}
	}
}