Made to Order Software Corporation Logo

MO Anti-pounding: settings.inc File Reference

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

Functions

 mo_anti_pounding_settings_setup_ok ()
 Determine whether this file was properly included.


Detailed Description

For the anti-pounding module to actually work, this file needs to be included at the bottom of your settings.php file with the following PHP code:

 <?php
 // Run the anti-pounding routines
 include './sites/all/modules/mo_anti_pounding/settings.inc';
 ?>

The earlier in the file the better since you do not need to run anything else before this module code (except if you still want to somehow track all the hits, but make sure you do not start your database system.)

Note:
If you have installed the anti-pounding module into a different folder than the expected default (i.e. /sites/all/modules/mo_anti_pounding) please adjust the path appropriately.

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_settings_setup_ok ( )

When this file is included at the right time cache_get() is not yet defined.

The first call (made from this script) determines whether the file was included at the right place. Later calls always return the same result.

Returns:
TRUE if settings.inc was included correctly in your settings.php

Referenced by mo_anti_pounding_status().

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