The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Dateline and Flood Control
I am making a section on my site that uses vBulletin's global.php for login, member permissions, etc. but has users post entries into a custom table located in the vB database. I am trying to figure out a way to implement flood control for this section, and was wondering how the dateline system works in vBulletin, as far as which MySQL function vB uses to get that number, how it is converted into time using PHP, and how it can be used for flood control.
|
#2
|
|||
|
|||
It's the number of seconds since 1/1/1970. You can get this number using the time() function in php.
Example, user submits data, get time(), check if time from last data is at least 10 smaller, and either save data or not. Now user can submit only once every 10 seconds. |
#3
|
|||
|
|||
In MySQL, the function is UNIX_TIMESTAMP.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|