Jump to content
MakeWebGames

.


gpo26

Recommended Posts

Surely there's a date sent field in the mailbox table?

Work from that.

Query the db to see if x user has sent a mail within x seconds.

- result: disallow the mail( but keep the values for sending, it's a pain in the arse having to write it out again )

- no result: let the mail go.

Link to comment
Share on other sites

I don't know the forums table for MCCodes V2 but try and add this somewhere near function_reply.

 

$q1=mysql_query("SELECT * FROM forum_posts WHERE $userid=fp_poster_id AND fp_time >unix_timestamp()-60");
if(mysql_num_rows($q1) >= 1)
{
print "The last posting from your ID was less than 60 seconds ago.<br />Please try again later.<br/><br/>
";
$h->endpage();
exit;
}
Link to comment
Share on other sites

  • gpo26 changed the title to .

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...