phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: IPBlock

Source Location: /modules/module_ipblock.php

Class IPBlock

Property Summary
mixed   $blockedips  
mixed   $blocklist  

[ Top ]
Method Summary
IPBlock   __construct()   Initialise the IP block.
void   add()   Add a given $ip to the blocklist..
boolean   compareOctet()   loose checking on octets. Allows for comparing ranges like 127.128.129.* or 127.128.129.40-80
boolean   isBlocked()   Check if a given IP address is blocked..
void   remove()   Remove a blocked $ip from the list..
void   save()   Save the blocklist to file..

[ Top ]
Properties
mixed   $blockedips [line 22]

[ Top ]
mixed   $blocklist [line 21]

[ Top ]
Methods
Constructor __construct  [line 27]

  IPBlock __construct( )

Initialise the IP block.



[ Top ]
add  [line 93]

  void add( string $ip, string $comment, [boolean $adddate = true]  )

Add a given $ip to the blocklist..

Parameters:
string   $ip: 
string   $comment: 
boolean   $adddate: 


[ Top ]
compareOctet  [line 166]

  boolean compareOctet( mixed $oct1, mixed $oct2  )

loose checking on octets. Allows for comparing ranges like 127.128.129.* or 127.128.129.40-80

Parameters:
mixed   $oct1: 
mixed   $oct2: 


[ Top ]
isBlocked  [line 55]

  boolean isBlocked( string $ip  )

Check if a given IP address is blocked..

Parameters:
string   $ip: 


[ Top ]
remove  [line 114]

  void remove( string $ip  )

Remove a blocked $ip from the list..

Parameters:
string   $ip: 


[ Top ]
save  [line 133]

  void save( )

Save the blocklist to file..



[ Top ]

Documentation generated on Tue, 05 Sep 2017 01:06:07 +0200 by phpDocumentor 1.4.3