timROGERS
06-03-2006, 04:04 PM
Don't we all love my pointless GD :P All it does is gets my GIF image (I only used GIF because IE will support transparency that way) and then writes your IP on top of it :P Soon I'll do a better version with more features :P
<?php
header("Content-type: image/gif");
$im = imagecreatefromgif("pc.gif");
$textcolour = imagecolorallocate($im, 255, 255, 255);
$font = "cournew.ttf";
imagettftext($im, 8, 0, 19, 110, $textcolour, $font, $_SERVER['REMOTE_ADDR']);
imagegif($im);
?>
I wanted to make it an avatar, but vBulletin wouldn't allow it due to the extension. I even tried using a htaccess but it still wouldn't work.
All you need to run it is pc.gif (http://www.lolz.co.uk/pc/pc.gif) and the Courier New font (http://www.lolz.co.uk/pc/cournew.ttf).
<?php
header("Content-type: image/gif");
$im = imagecreatefromgif("pc.gif");
$textcolour = imagecolorallocate($im, 255, 255, 255);
$font = "cournew.ttf";
imagettftext($im, 8, 0, 19, 110, $textcolour, $font, $_SERVER['REMOTE_ADDR']);
imagegif($im);
?>
I wanted to make it an avatar, but vBulletin wouldn't allow it due to the extension. I even tried using a htaccess but it still wouldn't work.
All you need to run it is pc.gif (http://www.lolz.co.uk/pc/pc.gif) and the Courier New font (http://www.lolz.co.uk/pc/cournew.ttf).