<?php
header('content-type:image/png');
/*
*
*/
$width=86;
$height=38;
$img=imagecreatetruecolor($width, $height);
$color=imagecolorallocate($img, rand(0,255), rand(0,255), rand(0,255));
imagefill($img, 0, 0,imagecolorallocate($img, rand(0,100), 200, 200));
for($i=0;$i<80;$i++){
$color=imagecolorallocate($img, rand(0,255), rand(0,255), rand(0,255));
imagesetpixel($img, rand(0,86),rand(0,38),$color);
}
for($j=0;$j<6;$j++){
$color=imagecolorallocate($img, rand(0,255), rand(0,255), rand(0,255));
imageline($img,rand(0,86),rand(0,38),rand(0,86),rand(0,38),$color);
}
$random="123456789ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnpqrstuvwxyz";
for($q=0;$q<4;$q++){
$color=imagecolorallocate($img, rand(0,255), rand(0,255), rand(0,255));
$num= mb_substr($random,rand(0,mb_strlen($random,'utf-8')-1),1,'utf-8');
imagettftext($img,20,rand(-30,30),10*$q+20,rand(20,30), $color,'FZYTK.TTF', $num);
$num .=$num;
}
imagepng($img);
header('content-type:image/png');
/*
*
*/
$width=86;
$height=38;
$img=imagecreatetruecolor($width, $height);
$color=imagecolorallocate($img, rand(0,255), rand(0,255), rand(0,255));
imagefill($img, 0, 0,imagecolorallocate($img, rand(0,100), 200, 200));
for($i=0;$i<80;$i++){
$color=imagecolorallocate($img, rand(0,255), rand(0,255), rand(0,255));
imagesetpixel($img, rand(0,86),rand(0,38),$color);
}
for($j=0;$j<6;$j++){
$color=imagecolorallocate($img, rand(0,255), rand(0,255), rand(0,255));
imageline($img,rand(0,86),rand(0,38),rand(0,86),rand(0,38),$color);
}
$random="123456789ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnpqrstuvwxyz";
for($q=0;$q<4;$q++){
$color=imagecolorallocate($img, rand(0,255), rand(0,255), rand(0,255));
$num= mb_substr($random,rand(0,mb_strlen($random,'utf-8')-1),1,'utf-8');
imagettftext($img,20,rand(-30,30),10*$q+20,rand(20,30), $color,'FZYTK.TTF', $num);
$num .=$num;
}
imagepng($img);