Размер файла: 832B
<? $image=ImageCreateFromPng("image.png");
$col1=imagecolorallocate($image, 0, 255, 0);
$col2=imagecolorallocate($image, 0, 255, 0); $var=mt_rand(1,3);
$slov1='udar';
$slov2='propustit'; $slov3='propustit';
session_start(); $_SESSION['ha']='a';
if($var==1){ $word1="1.$slov1"; $word2="2.$slov2"; $word3="3.$slov3"; $_SESSION['num']=1; $color1=$col1; $color2=$col2; $color3=$col2;}
if($var==2){ $word1="1.$slov2"; $word2="2.$slov1"; $word3="3.$slov3"; $_SESSION['num']=2; $color1=$col2; $color2=$col1; $color3=$col2;}
if($var==3){ $word1="1.$slov2"; $word2="2.$slov3"; $word3="3.$slov1"; $_SESSION['num']=3; $color1=$col2; $color2=$col2; $color3=$col1;}
ImageString($image,5,15,10,$word1,$color1);
ImageString($image,5,15,25,$word2,$color2);
ImageString($image,5,15,40,$word3,$color3);
Imagepng($image);
imagedestroy($image);
?>