generate_code(); require('conf_system.php'); $_SESSION['validation_image']=str_replace(" ","",$vcode); $im = @imagecreate(135, 30); // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 0); // write the string at the top left imagettftext($im, 12, 0, 40, 18, $textcolor, "{$conf_s['font']}", $vcode); #imagestring($im, 5, 10, 5, $code, ); // output the image imagejpeg ($im, $conf_s['validate_image']."verify.jpg"); imagedestroy($im); echo "\"verification"; } } ?>