0) { $drawfs20=substr($drawfs20,$pos_1+1); } } if ($namereplacebutton == '1') { $drawfs20=str_replace($namereplacebuttonsign, " ", $drawfs20); } ###ttf if ($emap=='') { $text=$statefs20; } else { $text=$emap; } #echo $text; #exit; $txtcolor=$bg3p; $fontsize=7; $box = @imageTTFBbox($fontsize,0, $fontttfb,$text); $textwidth = abs($box[4] - $box[0]); $textheight = abs($box[5] - $box[1]); $xcord = ($imgmaxxfs20/2)-($textwidth/2)-2; $ycord = ($imgmaxyfs20/2)+23; ImageTTFText ($im, $fontsize, 0, $xcord, $ycord, $txtcolor, $fontttfb, $text); $text=$date_button; $box = @imageTTFBbox($fontsize,0, $fontttf,$text); $textwidth = abs($box[4] - $box[0]); $textheight = abs($box[5] - $box[1]); #$xcord = ($imgmaxxfs20/2)-($textwidth/2)+53; $xcord = ($imgmaxxfs20)-($textwidth)-2; $ycord = ($imgmaxyfs20/2)+33; ImageTTFText ($im, $fontsize, 0, $xcord, $ycord, $txtcolor, $fontttf, $text); $text=$time_button; $box = @imageTTFBbox($fontsize,0, $fontttf,$text); $textwidth = abs($box[4] - $box[0]); $textheight = abs($box[5] - $box[1]); #$xcord = ($imgmaxxfs20/2)-($textwidth/2)-58; $xcord = 3; $ycord = ($imgmaxyfs20/2)+33; ImageTTFText ($im, $fontsize, 0, $xcord, $ycord, $txtcolor, $fontttf, $text); $txtcolor=$bg3p; ImageTTFText ($im, $fs20fontsizetitel, 0, 5, 15, $txtcolor, $fontttfb, $drawfs20); if ($room != '' and $roomname=='1') { ImageTTFText ($im, 7, 0, 5, 26, $txtcolor, $fontttf, $txtroom.$room); }; imagePng($im,$savefile); header("Content-type: image/png"); imagePng($im); ?>