The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.4.12 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



2DWorlds Forums
Oh, memories... - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5)
+--- Forum: General Discussion (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=17)
+--- Thread: Oh, memories... (/showthread.php?tid=1016)



Oh, memories... - Ghosty - 05-24-2013

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
?>



RE: Oh, memories... - rep3 - 05-25-2013

Has anyone really been far even as decided to use even go want to do look more like?


RE: Oh, memories... - Ghosty - 05-25-2013

Sorry for the awkward text format Tongue I was avoiding the random filter Jacob had running at the time on the letter 'a'.