Made to Order Software Corporation Logo

MO Anti-pounding: mo_anti_pounding.install File Reference

Ban users that pounder really hard on your site. More...

Functions

 mo_anti_pounding_uninstall ()
 Delete variables and files used by this module.

 mo_anti_pounding_requirements ($phase)
 Check for the installation requirements.


Detailed Description

This file handles the module install and uninstall features.

It also checks the current status of the module via the hook_requirements() function.

Copyright (c) 2010-2011 Made to Order Software Corp.

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.


Function Documentation

mo_anti_pounding_requirements ( phase)

This function is used to issue a warning in the status page. It is the same function used when opening the settings form.

Parameters:
[in]$phaseThe phase the check is performed on.

References mo_anti_pounding_status().

mo_anti_pounding_uninstall ( )

The uninstall function deletes all the session files and the variables used by the module. Note that it does not delete the main directory since you created by hand at installation time.

You can do so with the use of a shell command line:

  rm -rf anti_pounding 

It will however, delete the preferences and sub-folders that it creates to handle the sessions.

References mo_anti_pounding_clear_cache().

Documentation generated by Doxygen on Mon Oct 10 2011 14:30:48