This is a script I created yesterday to make an image and say if a habbo is on-line or not.. I posted it in a thread earlier but I've decided to make a separate one.
If you were saving it as 'status.php' you would type:PHP Code:<?php
$habbo = $_GET['name'];
$home = file_get_contents("http://www.habbohotel.co.uk/home/".$habbo);
if (eregi("http://images.habbohotel.co.uk/web/web-2.0.1_b21/images/myhabbo/profile/habbo_online_anim.gif", $home)){
$img = "http://images.habbohotel.co.uk/web/web-2.0.1_b21/images/myhabbo/profile/habbo_online.gif";
}else{
$img = "http://images.habbohotel.co.uk/web/web-2.0.1_b21/images/myhabbo/profile/habbo_offline.gif";
}
header("Content-type: image/gif");
$im = imagecreatefromgif($img);
imagegif($im);
imagedestroy($im);
?>
http://blah.com/status.php?name=Korma
etc.
If you want it set to a habbo you would:
Change the 2nd line from
$habbo = $_GET['name'];
to
$habbo = "Korma";
Thanks.
Example in my signature set to the habbo " -1. "





Reply With Quote






