<?php
/*******************************************************
* SIG.PNG(PHP)
* This is a dynamic siginutre created by GFX-PRO group
* [url]http://gfx-pro.ath.cx[/url]
*
* Note: The image size of your .png file (mysig.png)
* Must be 400x80 (if your text is longer, you have to make your
* image's width longer also) And it has to be in png format
*
/*******************************************************/
$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);
///////////////////////////////////////////////////////////////////////////
//
// Begin getting the users info
// The script below has been taken from the php-nuke webportal.
// (only the part where the borwser and os data is gotten from)
//
///////////////////////////////////////////////////////////////////////////
$prebackcolor = imagecolorallocate($im,255,255,255); // Assign the background color
$backcolor = imagecolortransparent($im,$prebackcolor); // Make the bg transparent, if the page is alone, make it black
//
// And now to build the info.
// First to create it
//
$quote = array();
/* These are the quotes, you may add new quotes
by simply following the pattern */
$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';
//
// Create the text and display the image
//
imagettftext($im, 8, 0, 100, 17, $darkblue, $second_font, $ip); // Display ip address
imagettftext($im, 8, 0, 100, 27, $darkblue, $second_font, $browser); // Display users browser
imagettftext($im, 8, 0, 100, 37, $darkblue, $second_font, $operatingsystem); // Display users operating system
imagettftext($im, 8, 0, 100, 57, $darkblue, $second_font, $quote_say); // Display users operating system
imagettftext($im, 7.8, 0, 100, 71, $darkblue, $second_font, $quote[$rand_quote]); // Display users operating system
Hey, Just wanted to share with everyone the dynamic signiture i created (demo is in my signiture).
Now I also wanted to know if this works for anyones elses servers... because up to know, 1 person couldn't seem to get it to work.
Remember you must have GD installed on your server inorder for this to work.
Cool cheers i have one on my server for a similar thing but never delved into it that much, managed to get my server up time, OS of user and browser but formatting the thing became to laboursome :-)
The sig I'm using was made by me. It's kind of like the one he posted about, but it is PHP and doesn't require the GD library. The only problem is that to use it, you need to have HTML enabled on the forum you wish to use it on. If anyone wants the code, or a chat about it, please email me at phate@knetworks.co.uk! That address is compatible with MSN Messenger too, and I'm almost always on there!