| 1 |
<?php |
| 2 |
/* |
| 3 |
Custom Contact Forms Plugin |
| 4 |
By Taylor Lovett - http://www.taylorlovett.com |
| 5 |
Plugin URL: http://www.taylorlovett.com/wordpress-plugins |
| 6 |
*/ |
| 7 |
header("Content-type: image/png"); |
| 8 |
require_once('custom-contact-forms-images.php'); |
| 9 |
$image = new CustomContactFormsImages(); |
| 10 |
$str = rand(10000, 99999); |
| 11 |
if (!session_id()) |
| 12 |
session_start(); |
| 13 |
$captcha_name = 'captcha_' . $_GET[fid]; |
| 14 |
if (!$_SESSION[$captcha_name]) |
| 15 |
$_SESSION[$captcha_name] = $str; |
| 16 |
else |
| 17 |
$str = $_SESSION[$captcha_name]; |
| 18 |
$image->createImageWithText($str); |
| 19 |
?> |