Ban users that pounder really hard on your site. More...
Enumerations | |
enum | MO_ANTI_POUNDING_VERSION |
Define the version of the MO Anti-Pounding module. More... | |
Functions | |
mo_anti_pounding_perm () | |
Implementation of hook_perm() | |
mo_anti_pounding_menu () | |
Implementation of hook_menu() | |
mo_anti_pounding_cron () | |
Implementation of hook_cron() |
This file defines the module callbacks.
The anti-pounding system uses a CRON call to delete old sessions and let you administer the preferences.
http://www.m2osw.com/mo_anti_pounding contact@m2osw.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This variable defines the version of the MO Anti-Pounding module. This will always be the same as the version defined in Drupal (throught the .info file.)
mo_anti_pounding_cron | ( | ) |
This function is run whenever your cron run against your website.
It will delete old session files as required.
References mo_anti_pounding_clear_cache(), and mo_anti_pounding_get_conf_path().
mo_anti_pounding_menu | ( | ) |
This function generates the array representing the anti-pounding menu.
mo_anti_pounding_perm | ( | ) |
Returns the list of permissions for the anti-pounding module.