PDA

View Full Version : Php help



TommoGotBanned!
04-10-2006, 06:55 PM
<?php
//SigStat.com MOD API
//Customize Output messages from the javascript feed
//Created by Adam Davis 2006

//your msn id here

$id = '(hidden for reasons lol)';

//get the contents of the above source

$source = file_get_contents($id);

$backgroundImage = "http://tomlol3.100webspace.net/tommo/sigbg.png";

//run a serious of checks and echo out the message which links with the users status

if (stristr($source, Online) == TRUE) {
echo "Msn Status: Online <br /> Powered by SigStat.com";
}
elseif (stristr($source, Busy) == TRUE) {
echo "Msn Status: Busy <br /> Powered by SigStat.com";
}
elseif (stristr($source, Away) == TRUE) {
echo "Msn Status: Away <br /> Powered by SigStat.com";
}
elseif (stristr($source, BRB) == TRUE) {
echo "Msn Status: Be Right Back <br /> Powered by SigStat.com";
}
elseif (stristr($source, PHN) == TRUE) {
echo "Msn Status: In A Call <br /> Powered by SigStat.com";
}
elseif (stristr($source, LUN) == TRUE) {
echo "Msn Status: Out To Lunch <br /> Powered by SigStat.com";
}
elseif (stristr($source, Offline) == TRUE) {
echo "Msn Status: Offline <br /> Powered by SigStat.com";

//there must have been a error somewhere, couldent get the status

} else {
echo "Unable to get your status at this time - SigStat.com";
}

?>

I added in the "$backgroundImage = "http://tomlol3.100webspace.net/tommo/sigbg.png";


Just wondering how to make the "Msn Status: Online" onto the image?

Cheers/

uber
04-10-2006, 07:02 PM
use GD or ImageMagic

600th post!

TommoGotBanned!
04-10-2006, 07:22 PM
I'm not that good at php. I know basic, not gd.

Want to hide these adverts? Register an account for free!