[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libs/artichow/php5/ -> AntiSpam.class.php (sommaire)

(pas de description)

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

Définit 1 class

awAntiSpam:: (8 méthodes):
  __construct()
  setRand()
  setNoise()
  save()
  check()
  draw()
  drawNoise()
  session()


Classe: awAntiSpam  - X-Ref

AntiSpam
String printed on the images are case insensitive.

__construct($string = '')   X-Ref
Construct a new awAntiSpam image

param: string $string A string to display

setRand($length)   X-Ref
Create a random string

param: int $length String length
return: string String created

setNoise($noise)   X-Ref
Set noise on image

param: int $nois Noise intensity (from 0 to 10)

save($qName)   X-Ref
Save string value in session
You can use check() to verify the value later

param: string $qName A name that identify the anti-spam image

check($qName, $value, $case = TRUE)   X-Ref
Verify user entry

param: string $qName A name that identify the anti-spam image
param: string $value User-defined value
param: bool $case TRUE for case insensitive check, FALSE for case sensitive check ? (default to TRUE)
return: bool TRUE if the value is correct, FALSE otherwise

draw()   X-Ref
Draw image


drawNoise($width, $height)   X-Ref
Pas de description

session()   X-Ref
Pas de description



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics