Hello! First of all, sorry for my english. I’m new here and I need some help from you guys 
I downloaded a free PHP shoutbox from the internet for my website and I customized it by adding some features. But there is one that I can’t get working because I’m not experienced at all, an AntiFlood system.
I know the method in english but I need someone to translate it in PHP language for me, please.
It looks like this:
-
Get the last date the user posted a message.
-
Compare this date to the actual date and if the difference is bigger than 60 seconds: post the message
if not, inform the user that he can post only 1 message a minute.
Can somebody do this for me?
I think that’s the function to send messages:
[php]private function addShout($nickname = null, $ville = null, $gsm = null, $message = null)
{
$time = date(‘Y-m-d H:i:s’);
$query = mysql_query(“INSERT INTO shouts (nickname, ville, gsm, message, date_added) VALUES (’”.$nickname."’, ‘".$ville."’, ‘".$gsm."’, ‘".$message."’,’".$time."’);");
if(!$query) {
$this->returnShouts(null, 'Database connection problem!');
} else {
$this->returnShouts('Shout added successfully');
}[/php]
If somebody has got a new ideea, let me know 