phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Procedural File: SourceIPAddrAuthzEngine.php

Source Location: /lib/authz/SourceIPAddrAuthzEngine.php



Classes:

SourceIPAddrAuthzEngine
Authorization engine that works by checking the source IP address of the request.


Page Details:



Tags:

author:  Jaime Perez <jaime.perez@rediris.es>
version:  2.0
copyright:  

Copyright 2005-2010 RedIRIS, http://www.rediris.es/

This file is part of phpPoA2.

phpPoA2 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

phpPoA2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with phpPoA2. If not, see <http://www.gnu.org/licenses/>.

filesource:  Source Code for this file
license:  GNU General Public License







SOURCEADDR_BEFORE_FILTERS [line 37]

SOURCEADDR_BEFORE_FILTERS = "SOURCEADDR_BEFORE_FILTERS"
This hook is executed right after retrieving source address and the arrays of allowed and denied patterns that will be checked inmediately.

It can be used to alter the source address, and also to configure the filters on runtime. The hook receives the source IP address, the allowed and the denied patterns. Functions for this hook must be defined like this:

function ipBeforeFilterHook(&$ipaddr, &$allowed, &$denied);

Please bear in mind that hooks must return TRUE or they'll keep other hooks from executing.



[ Top ]




Documentation generated on Thu, 26 Aug 2010 13:38:57 +0200 by phpDocumentor 1.4.3