$this->_userEmail = (isset($_POST['user_email']) ? stripinput(trim(preg_replace("/ +/i", " ", $_POST['user_email']))) : "");
// Check E-Mail for Spammer from stopforumspam.com
$xml_string = file_get_contents('http://www.stopforumspam.com/api?email='.$this->_userEmail);
$xml = new SimpleXMLElement($xml_string);
if($xml->appears == 'yes')
{
$this->_setError("user_email", "<span style='color: #ff0000;'><b>You are a Reported Spammer on StopForumSpam.com ! So just stay away from my website...</b><img src='".IMAGES."smiley/angry.gif' alt='' /></span>");
}
Quote
wanabo wrote:
I see you started the battle against spammers! ;)
Will try this one out.
// Check E-Mail for Spammer from stopforumspam.com
$xml_string = file_get_contents('http://www.stopforumspam.com/api?email='.$this->_userEmail);
$xml = new SimpleXMLElement($xml_string);
if($xml->appears == 'yes')
{
$this->_setError("user_email", "<span style='color: #ff0000;'><b>You are a Reported Spammer on <a href='http://www.stopforumspam.com/' target='_blank'>StopForumSpam.com</a>! So just stay away from my website...</b><img src='".IMAGES."smiley/angry.gif' alt='' /><br /><center><img src='".BASEDIR."images/botspamstop.png' /></center></span>");
}
Category Forum
Code Snippet and functions - 8Labels
None yet
Statistics
7 participants
Notifications
You are not receiving notifications from this thread.
Related Questions