<? header('Content-type: image/gif'); srand( microtime() * 100000 ); $num = rand( 1, 9 ); switch ( $num ) { case 1 : $img_url="sig1.gif"; break; case 2 : $img_url="sig2.gif"; break; case 3 : $img_url="sig3.gif"; break; case 4 : $img_url="sig4.gif"; break; case 5 : $img_url="sig5.gif"; break; case 6 : $img_url="sig6.gif"; break; case 7 : $img_url="sig7.gif"; break; case 8 : $img_url="sig8.gif"; break; case 9 : $img_url="sig9.gif"; break; } $image = imagecreatefromgif("$im_url"); $black = imagecolorallocate($image, 0, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); $ip = $_SERVER['REMOTE_ADDR']; // the ip address. srand( microtime() * 100000 ); $num1 = rand( 1, 9 ); switch ( $num1 ) { case 1 : $message="You wish you were as cool as me..."; break; case 2 : $message="I eat noobs"; break; case 3 : $message="The Ranman will own you"; break; case 4 : $message="Ranman is currently... coding"; break; case 5 : $message="Ranman is currently... eating"; break; case 6 : $message="Ranman is currently... hacking"; break; case 7 : $message="Ranman is currently... doing nothing"; break; case 8 : $message="Hacked"; break; case 9 : $message="Simplicity is best"; break; } imagestring($image, 5, 0, 0, "Your ip is $ip\n$message", $white); // this creates the text imagegif($image); imagedestroy($image); ?> |