[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/plugins/spamx/ -> IP.Examine.class.php (sommaire)

File: IP.Examine.class.php This is the IP BlackList Examine class for the Geeklog Spam-X plugin Copyright (C) 2004-2006 by the following authors: Author        Tom Willett        tomw AT pigstye DOT net

Poids: 100 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

IP:: (3 méthodes):
  execute()
  reexecute()
  _process()


Classe: IP  - X-Ref

Examines Comment according to Personal BLacklist

execute($comment)   X-Ref
The execute method examines the IP address a comment is coming from,
comparing it against a blacklist of banned IP addresses.

param: $comment string                 Comment text to examine

reexecute($comment, $date, $ip, $type)   X-Ref
The re-execute method is used to massdelete spam, essentially
it does the same as execute, but is called with recorded comments
in order to match them against new rules that were not in effect
at the time of posting. To do that, it uses the IP address logged
when the comment was saved.

param: $comment string            Comment text to examine
param: $date       unixtimestamp  Date/time the comment was posted
param: $ip         string         IPAddress comment posted from
param: $type       string         Type of comment (article etc)

_process($ip)   X-Ref
Private internal method, this actually processes a given ip
address against a blacklist of IP regular expressions.

param: $ip    string    IP address of comment poster



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics