05-24-2013, 01:41 PM
Do you remember my siggy on the old site? The one with text for you, given specific to you from your IP?
See if it's possible for you to guess who every text is for. Most of them, it's obvious. Others, not so much.
See if it's possible for you to guess who every text is for. Most of them, it's obvious. Others, not so much.
Code:
<?php
include 'country-redirect.php'; // I didn't make this code it was from a tutorial about something called geoIP
header('Content-Type: image/png'); // this tells the browser to display it as a png image
$im = imagecreatetruecolor(600, 60); //this makes the image
$white = imagecolorallocate($im, 255, 255, 255); // this is the color white
$grey = imagecolorallocate($im, rand(1, 50), rand(1, 100), rand(225, 255)); // this is the color BLUE haha
$black = imagecolorallocate($im, 0, 0, 0); // this is black. xD
imagefilledrectangle($im, 0, 0, 600, 60, $white); // this makes a white box aka the background
//$text = "You're from the " . $country; // more text + country variable found on the country-redirect page
$text2 = $_SERVER['REMOTE_ADDR']; // the viewers IP
$backup = "Hi" . $text2;
$fonts = array("Prototype.ttf", "256BYTES.TTF", "ACKLIN.TTF", "albas.ttf", "Alger.ttf", "ARISTOCR.TTF", "BACCA.TTF", "BALLOON.TTF", "BankGothic.TTF", "BAVEUSE.TTF", "BIRDLAND.TTF", "BULLPEN3.TTF", "CHOWMEIN.TTF"); //these are fonts I uploaded to the same folder as the PHP file
$font = $fonts[array_rand($fonts)];
//imagettftext($im, 25, 0, 16, 28, $grey, $font, $text); //this attaches the text and box to the image in a way.
if($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, Jacob_!");
}
elseif($text2==[censored] or $text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "I love my signature");
}
elseif($text2==[censored] or $text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, Glome!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, Interwebs!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, noob007!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, Luckyone!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, roperson/Dignity!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hello Mr. Random Gradient!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hello Mr. Epic Skin Guy!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "This statement is false!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi there, Argentinian!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hello, Dr. Kron!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "ARE YOU A HIPPO, OR A DUCK?!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Ah, testerrocksroblox...");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, Ashely!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, LOL!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hi, simon!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "CYBORG DETECTED!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "AAAH ITSA WALRUS!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hello, c00l dude!");
}
elseif($text2==[censored])
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "Hello, LXA.");
}
elseif($text2==[censored])
{
imagettftext($im, 10, 0, 16, 28, $grey, $font, "I miss you so much, Mysty... I hope someday we'll get it all worked out.");
}
else
{
imagettftext($im, 25, 0, 16, 28, $grey, $font, "-The Maniac");
}
imagepng($im); // create the image
imagedestroy($im); //not too sure how to explain this but it err destroys it. xD
?>
![[Image: iwn8gk.gif]](http://i46.tinypic.com/iwn8gk.gif)