14 |
); |
); |
15 |
while (list($k, $v) = each($map)) $text = str_replace($k, "&#".$v.";", $text); |
while (list($k, $v) = each($map)) $text = str_replace($k, "&#".$v.";", $text); |
16 |
$text = preg_replace("/\\\(.)/", '$1', $text); |
$text = preg_replace("/\\\(.)/", '$1', $text); |
17 |
#$text = "";for ($i = 256; $i <= 400; $i++) $text .= "&#".$i.";"; |
$im = ImageCreate(130, 18); |
|
$im = ImageCreate(130, 16); |
|
18 |
$dark = ImageColorAllocate($im, 0x66, 0x99, 0x66); |
$dark = ImageColorAllocate($im, 0x66, 0x99, 0x66); |
19 |
$mid = ImageColorAllocate($im, 0xB6, 0xE1, 0xCB); |
$mid = ImageColorAllocate($im, 0xB6, 0xE1, 0xCB); |
20 |
$light = ImageColorAllocate($im, 0xFF, 0xFF, 0xFF); |
$light = ImageColorAllocate($im, 0xFF, 0xFF, 0xFF); |
25 |
ImageLine($im, 0, ImageSY($im) - 1, ImageSX($im) - 1, ImageSY($im) - 1, $dark); |
ImageLine($im, 0, ImageSY($im) - 1, ImageSX($im) - 1, ImageSY($im) - 1, $dark); |
26 |
$txt = ImageColorAllocate($im, 0x33, 0x66, 0x33); |
$txt = ImageColorAllocate($im, 0x33, 0x66, 0x33); |
27 |
if ($type) { |
if ($type) { |
28 |
ImageTTFText($im, 8, 0, 4, 12, $light, "verdanab.ttf", $text); |
ImageTTFText($im, 8, 0, 4, 13, $light, "verdanab.ttf", $text); |
29 |
ImageTTFText($im, 8, 0, 3, 11, $dark, "verdanab.ttf", $text); |
ImageTTFText($im, 8, 0, 3, 12, $dark, "verdanab.ttf", $text); |
30 |
} else ImageTTFText($im, 8, 0, 3, 11, $txt, "verdanab.ttf", $text); |
} else ImageTTFText($im, 8, 0, 3, 12, $txt, "verdanab.ttf", $text); |
31 |
$types = ImageTypes(); |
$types = ImageTypes(); |
32 |
if ($types & IMG_GIF) { |
if ($types & IMG_GIF) { |
33 |
Header("Content-Type: image/gif"); |
Header("Content-Type: image/gif"); |