diff --git a/Info/image.php b/Info/image.php index 22e55f1..ae2becc 100644 --- a/Info/image.php +++ b/Info/image.php @@ -25,7 +25,7 @@ function imagewritestring($img, $font_size, $string) { $color = imagecolorallocate($img, 180, 180, 180); static $y = 110; - $y += $font_size + 12; + $y += $font_size + 14; $x = 40; imagettftext($img, $font_size, 0, $x, $y, $color, "fonts/consola.ttf", $string); } diff --git a/Info/image0.php b/Info/image0.php new file mode 100644 index 0000000..f1af044 --- /dev/null +++ b/Info/image0.php @@ -0,0 +1,30 @@ +host->ip); +imagewritestring($img, 2, $user->host->city . " , " . $user->os->name . " " . $user->os->version); +imagewritestring($img, 3, $user->browser->name . " , " . $user->browser->version . " " . 'Pays: ' . $user->host->country); +imagejpeg($img, NULL, 100); +imagedestroy($img); + +function imagewritestring($img, $font_size, $string) +{ + $color = imagecolorallocate($img, 180, 180, 180); + static $y = 2; + $y += $font_size + 10; + $x = 10; + imagettftext($img, $font_size, 0, $x, $y, $color, "fonts/consola.ttf", $string); +} + diff --git a/Info/index.php b/Info/index.php index 88c39f6..e5762a4 100644 --- a/Info/index.php +++ b/Info/index.php @@ -30,8 +30,6 @@ $user = new uInfo($userAgent, $_SERVER["REMOTE_ADDR"]) ;