dolibarr 21.0.0-beta
public.lib.php File Reference

Library of public page functions. More...

Go to the source code of this file.

Functions

 checkNbPostsForASpeceificIp ($object, $nb_post_max)
 Check if the object exceeded the number of posts for a specific ip in the same week.
 

Detailed Description

Library of public page functions.

Definition in file public.lib.php.

Function Documentation

◆ checkNbPostsForASpeceificIp()

checkNbPostsForASpeceificIp ( $object,
$nb_post_max )

Check if the object exceeded the number of posts for a specific ip in the same week.

Parameters
object$objectObject to check
int$nb_post_maxNumber max of posts
Returns
int Return <0 if error, >0 if OK

Definition at line 39 of file public.lib.php.

References $object, dol_now(), dol_time_plus_duree(), and getUserRemoteIP().