chriscloyd Posted November 30, 2006 Share Posted November 30, 2006 [code]<?phpHeader("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 addressimagettftext($im, 8, 0, 100, 27, $white, $main_font, $browser); // Display users browserimagettftext($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 systemimagettftext($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 https://forums.phpfreaks.com/topic/28937-hey-dynamic-php-sig/ Share on other sites More sharing options...
chriscloyd Posted November 30, 2006 Author Share Posted November 30, 2006 ta ta test Link to comment https://forums.phpfreaks.com/topic/28937-hey-dynamic-php-sig/#findComment-132507 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.