|
Enumerations |
enum | wc_inc_path |
Variables |
| $file_path = __FILE__ |
| $path = dirname(__FILE__).'/' |
| $len = strlen($user_antibot) |
| $width = 9 * $len + 1 |
| $height = 18 |
| $img = ImageCreate($width, $height) |
| $bg_color = ImageColorAllocate($img, 255, 255, 255) |
| $text_color = ImageColorAllocate($img, 0, 0, 200) |
| $img2 = ImageCreate($width, 2 * $height) |
| $bg2 = ImageColorAllocate($img2, 220, 220, 255) |
| $fg2 = ImageColorAllocate($img2, 190, 190, 235) |
This feature is used in the registration process. It tries to stop basic bots from registering to the site. a random text is generated from the calling page, it is stored in a session variable, then an image is generated with some noise (so that OCR tool cannot easily guess it but human user can) and served with a image/png content type.