| Current File : /var/www/uim.org.in/admin/captcha.php |
<?php
include("../includes/connection.php");
$text = '';
$text .= rand(1000, 9999);
$_SESSION["vercode"] = $text;
$height = 46;
$width = 60;
$image_p = imagecreate($width, $height);
$black = imagecolorallocate($image_p, 64, 124, 255);
$white = imagecolorallocate($image_p, 255, 255, 255);
$font_size = 25;
imagestring($image_p, $font_size, 14, 15, $text, $white);
imagejpeg($image_p, null, 80);
?>