Public feed #890909

Unnamed

public php v1 · immutable
Raw Edit
·published 2008-02-04 04:54 UTC
rendered paste body
<?php     $ip = getenv("REMOTE_ADDR");     $ip_avatar = "avatar.png";     $font = "arial.ttf";     $im3 = imagecreatefrompng($ip_avatar);     $wc2 = ImageColorAllocate ($im3, 255, 255, 255);      $red2 = ImageColorAllocate ($im3, 255, 0, 0);     $random2 = ImageColorAllocate ($im3, 255, 0, 190);     $color_black2 = ImageColorAllocate($im3, (rand()%255), (rand()%255), (rand()%255));     imagettftext($im3, 5, 0, 1, 5, $wc2, $font, "You IP is:");     imagettftext($im3, 10, 0, 1, 5, $wc2, $font, "$ip");      Imagepng($im3);     ImageDestroy ($im3); ?>