Poll:
You do not have permission to vote in this poll.
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

Oh, memories...
#1
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.

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]
Reply
#2
Has anyone really been far even as decided to use even go want to do look more like?
[Image: 9g5l9w1mtad.png]
The red dots specify where the dogs will be taught.
Reply
#3
Sorry for the awkward text format Tongue I was avoiding the random filter Jacob had running at the time on the letter 'a'.
[Image: iwn8gk.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)