1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
|
<?php
Header("Content-type: image/png"); // Mime-Type setzen
include'index.php';
$char = $_GET['char'];
$font = "kingasn.ttf";
$font2 = "arial.ttf";
$img = ImageCreateFromPNG("signatur_bild.png");
$bg = ImageColorAllocate($img, 255, 255, 255);
$schwarz = ImageColorAllocate($img, 0, 0, 0);
$gruen = ImageColorAllocate($img, 27, 189, 0);
if(isset($char)){
switch($char){
case 'Scrash':
ImageTTFText($img, 23, 0, 100, 42, $schwarz, $font, 'Scrash');
break;
case 'Necron':
ImageTTFText($img, 23, 0, 100, 42, $schwarz, $font, 'Necron');
break;
case 'Mindhunter':
ImageTTFText($img, 23, 0, 100, 42, $schwarz, $font, 'Mindhunter');
break;
}
}else{
ImageTTFText($img, 23, 0, 100, 42, $schwarz, $font, 'Nobody');
}
ImageTTFText($img, 8, 0, 15, 145, $gruen, $font2, 'DynSig © [url=''http://www.scrash.de/'']www.scrash.de[/url]');
ImageTTFText($img, 10, 0, 338, 30, $gruen, $font2, 'Hobbys:');
ImageTTFText($img, 10, 0, 338, 70, $gruen, $font2, 'Beruf:');
ImageTTFText($img, 10, 0, 338, 90, $gruen, $font2, 'Wohnort:');
ImageTTFText($img, 10, 0, 393, 30, $gruen, $font2, 'PHP, Java');
ImageTTFText($img, 10, 0, 393, 50, $gruen, $font2, 'C++, WoW');
ImageTTFText($img, 10, 0, 393, 70, $gruen, $font2, 'Fachinformatiker');
ImageTTFText($img, 10, 0, 393, 90, $gruen, $font2, 'NRW');
ImageTTFText($img, 10, 0, 144, 123, $gruen, $font2, $sig[$s]);
ImagePNG($img); // Bild ausgeben.
ImageDestroy($img); // Speicher wieder freigeben, der für das Bild in Anspruch genommen wurde.
?>
|