Вход Регистрация
Файл: captcha.php
Строк: 14
<?php
session_start
();
$string "";
for (
$i 0$i 5$i++)
$string .= chr(rand(97122));
$_SESSION['rand_code'] = $string;
$dir "captcha/";
$image imagecreatetruecolor(15050);
$black imagecolorallocate($image000);
$color imagecolorallocate($image20010090);
$white imagecolorallocate($image255255255);
imagefilledrectangle($image,0,0,399,99,$white);
imagettftext ($image3001040$color$dir."verdana.ttf"$_SESSION['rand_code']);
header("Content-type: image/png");
imagepng($image);
?>
Онлайн: 0
Реклама