Function checkSubmitOnce
Check whether a form has been submitted twice. Registers a sequence number for a form. Checks whether a submitted sequence number is registered in the current session. Depending on the value of is_fatal shows an error or returns true or false. Frees a sequence number from the stack after it's been checked. Frees a sequence number without checking if action == 'free'.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Security.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Security.php
string |
$action |
The action - can be 'register', 'check' or 'free' |
boolean |
$is_fatal = true |
Whether to die with a fatal error |
|boolean
|
If the action isn't check, returns nothing, otherwise returns whether the check was successful |