0) { switch ($size) { case 1: $width=60; $height=10; break; case 2: $width=70; $height=14; break; case 3: $width=80; $height=14; break; case 4: $width=90; $height=15; break; case 5: $width=100; $height=16; break; } $im = @ImageCreate ($width, $height) or die ("counter error"); $background_color = ImageColorAllocate ($im, $back["r"], $back["g"], $back["b"]); $text_color = ImageColorAllocate ($im, $font["r"], $font["g"], $font["b"]); @ImageString ($im, $size, 4, 0, $show, $text_color); header("Content-type: image/jpeg"); ImageJPEG ($im,"",95); } else { // groesse = 0 header("Content-type: image/gif"); readfile("trans.gif"); } ?>