Jump to content

hey dynamic php sig


chriscloyd

Recommended Posts

[code]<?php
Header("Content-Type: image/png");
$main_font = 'C:/windows/fonts/verdana.ttf';
$second_font = 'C:/windows/fonts/arial.ttf';
$myimage = "images/mysig.png";
$quote[] = 'There are no stupid questions, just stupid people';
$quote[] = 'M$ works!';
$quote[] = 'Go shoot your self';
$quote[] = 'Is that the best turing can do?';
$quote[] = 'All your base are belong to us - CATS';
$quote[] = 'Turing? huh?';
$quote[] = 'Im with stupid';
$rand_quote = array_rand($quote);
if((ereg("Nav", $_SERVER["HTTP_USER_AGENT"])) || (ereg("Gold", $_SERVER["HTTP_USER_AGENT"])) || (ereg("X11", $_SERVER["HTTP_USER_AGENT"])) || (ereg("Mozilla", $_SERVER["HTTP_USER_AGENT"])) || (ereg("Netscape", $_SERVER["HTTP_USER_AGENT"])) AND (!ereg("MSIE", $_SERVER["HTTP_USER_AGENT"]) AND (!ereg("Konqueror", $_SERVER["HTTP_USER_AGENT"])))) $browser = "Netscape (Mozilla)";
elseif(ereg("MSIE", $_SERVER["HTTP_USER_AGENT"])) $browser = "MSIE";
elseif(ereg("Lynx", $_SERVER["HTTP_USER_AGENT"])) $browser = "Lynx";
elseif(ereg("Opera", $_SERVER["HTTP_USER_AGENT"])) $browser = "Opera";
elseif(ereg("WebTV", $_SERVER["HTTP_USER_AGENT"])) $browser = "WebTV";
elseif(ereg("Konqueror", $_SERVER["HTTP_USER_AGENT"])) $browser = "Konqueror";
elseif((eregi("bot", $_SERVER["HTTP_USER_AGENT"])) || (ereg("Google", $_SERVER["HTTP_USER_AGENT"])) || (ereg("Slurp", $_SERVER["HTTP_USER_AGENT"])) || (ereg("Scooter", $_SERVER["HTTP_USER_AGENT"])) || (eregi("Spider", $_SERVER["HTTP_USER_AGENT"])) || (eregi("Infoseek", $_SERVER["HTTP_USER_AGENT"]))) $browser = "Bot";
else $browser = "Other";
if(ereg("Win", $_SERVER["HTTP_USER_AGENT"])) $os = "Windows";
elseif((ereg("Mac", $_SERVER["HTTP_USER_AGENT"])) || (ereg("PPC", $_SERVER["HTTP_USER_AGENT"]))) $os = "Mac";
elseif(ereg("Linux", $_SERVER["HTTP_USER_AGENT"])) $os = "Linux";
elseif(ereg("FreeBSD", $_SERVER["HTTP_USER_AGENT"])) $os = "FreeBSD";
elseif(ereg("SunOS", $_SERVER["HTTP_USER_AGENT"])) $os = "SunOS";
elseif(ereg("IRIX", $_SERVER["HTTP_USER_AGENT"])) $os = "IRIX";
elseif(ereg("BeOS", $_SERVER["HTTP_USER_AGENT"])) $os = "BeOS";
elseif(ereg("OS/2", $_SERVER["HTTP_USER_AGENT"])) $os = "OS/2";
elseif(ereg("AIX", $_SERVER["HTTP_USER_AGENT"])) $os = "AIX";
else $os = "Other";
$im = ImageCreateFromPNG($myimage);
$white = ImageColorAllocate($im, 255, 255, 255);
$darkblue = ImageColorAllocate($im, 0, 6, 89);
$darkred = ImageColorAllocate($im, 128, 0, 0);
$prebackcolor = imagecolorallocate($im,255,255,255); // Assign the background color
$backcolor = imagecolortransparent($im,$prebackcolor); // Make the bg transparent, if the page is
$quote = array();
$ip = "Hey ".$_SERVER["REMOTE_ADDR"] .','; // IP
$browser = 'You are using '.$browser.' to view this page';
$operatingsystem = 'and your operating system is '.$os;
$quote_say = 'Random quote:';
$website = 'Visit: http://gfx-pro.ath.cx';
imagettftext($im, 8, 0, 100, 17, $white, $main_font, $ip); // Display ip address
imagettftext($im, 8, 0, 100, 27, $white, $main_font, $browser); // Display users browser
imagettftext($im, 8, 0, 100, 37, $white, $main_font, $operatingsystem); // Display users operating
imagettftext($im, 8, 0, 100, 57, $white, $main_font, $quote_say); // Display users operating system
imagettftext($im, 7.8, 0, 100, 71, $white, $main_font, $quote[$rand_quote]); // Display users
Header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);
?> [/code]
all it shows is the url im at
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.