Keeps track of IP's.
More...
List of all members.
Public Member Functions |
| add ($ip) |
| Add an IP to the monitor.
|
| exists ($ip) |
| Does the IP exist in our databse?
|
| find_old ($timeout=false) |
| Finds IPs in the database that haven't been touched in $timeout seconds.
|
| remove ($ip) |
| Remove an IP from the monitor.
|
| touch ($ip) |
| Touch an IP address (= mark it as used / seen).
|
Protected Attributes |
| $ips = array() |
Detailed Description
Keeps track of IP's.
- Author:
- Edward Plainview <it@sverigedemokraterna.se>
Member Function Documentation
Add an IP to the monitor.
- Parameters:
-
Does the IP exist in our databse?
- Parameters:
-
- Returns:
- True, if the IP is known in our database.
find_old |
( |
$ |
timeout = false |
) |
|
Finds IPs in the database that haven't been touched in $timeout seconds.
- Parameters:
-
| $timeout | How old an IP must be to be considered old. |
- Returns:
- Array of {log2command_ip_monitor_ip}s.
Remove an IP from the monitor.
- Parameters:
-
Member Data Documentation
$ips = array() [protected] |
The documentation for this class was generated from the following file:
- lib/class_log2command_ip_monitor.php