$t1"; else { $t = "$t1\n$t2"; }; $svg =<<< svg $t svg; echo $svg; } else { header("Content-type: image/gif"); $i = imagecreate(201, 201); $negro = imagecolorallocate($i, 0, 0, 0); imagefill($i, 0, 0, $negro); imagecolortransparent($i, $negro); $oro = imagecolorallocate($i, 255, 255, 0); $rojo = imagecolorallocate($i, 255, 0, 0); imagefilledpolygon($i, explode(",", $_coor), $puntas * 2, $oro); if ($t2 == "") imagestring($i, 8, 60, 100, $t1, $rojo); else { imagestring($i, 8, 60, 80, $t1, $rojo); imagestring($i, 8, 60, 110, $t2, $rojo); }; $r = imagerotate($i, 35, $negro); $n = imagecolorallocate($r, 0, 0, 0); imagefill($r, 0, 0, $n); imagecolortransparent($r, $n); $ancho = imagesx($r); $alto = imagesy($r); imagedestroy($i); $i = imagecreate(201, 201); $negro = imagecolorallocate($i, 0, 0, 0); imagefill($i, 0, 0, $negro); imagecolortransparent($i, $negro); imagecopyresampled($i, $r, 0, 0, ($ancho - 201) / 2, ($alto - 201) / 2, 201, 201, 201, 201); imagedestroy($r); imagegif($i); imagedestroy($i); }; unset($css); unset($body);; ?>