1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
Header("Content-Type: image/png");
$width = 350;
$height = 50;
$img = ImageCreate($width, $height);
$black = ImageColorAllocate($img, 0, 0, 0);
$daten_ip = $_SERVER['REMOTE_ADDR'];
$daten_host = gethostbyaddr($daten['ip']);
$daten_user = $_SERVER["HTTP_USER_AGENT"];
ImageFill($img, 0, 0, $black)
$text_color_white = ImageColorAllocate($img,255, 255, 255);
$text_color_blue = ImageColorAllocate($img,0, 255, 0);
$text_color_red = ImageColorAllocate($img,255, 0, 0);
ImageString($img, 2, 2, 2, 'Deine IP-Adresse: '.$daten_ip.'', $text_color_white);
ImageString($img, 2, 2, 15, 'Dein Hostname: '.$daten_host.'', $text_color_blue);
ImageString($img, 2, 2, 30, 'Dein Client: '.$daten_user.'', $text_color_red);
ImagePNG($img);
ImageDestroy($img)
?>
|