habboname = $habboname;
$this->hotel = $hotel;
$this->data = file_get_contents("http://habbo." . $hotel . "/home/" . $habboname);
}
function online()
{
if (eregi("habbo_online_anim.gif", $this->data))
{
return true;
}
else
{
return false;
}
}
function banned()
{
if (eregi("This page is not available anymore", $this->data))
{
return true;
}
else
{
return false;
}
}
function actual()
{
if (eregi('
', '', $motto);
return $motto;
}
function badge()
{
if (eregi("c_images/album1584/", $this->data))
{
$badge = explode('http://images.habbohotel.' . $this->hotel .
'/c_images/album1584/', $this->data);
$badge = explode('.gif', $badge[1]);
$badge = trim($badge[0]);
$badge = "http://images.habbohotel." . $this->hotel . "/c_images/album1584/" . $badge .
".gif";
return $badge;
}
else
{
return false;
}
}
function figure()
{
$figure = "http://www.habbo.".$this->hotel."/habbo-imaging/avatarimage?user=".$this->habboname."&action=&direction=2&head_direction=3&gesture=sml&size=l&img_format=gif";
return $figure;
}
function birthdate()
{
$birthdate = explode('
', $this->data);
$birthdate = explode('
', $birthdate[1]);
$birthdate = trim($birthdate[0]);
return $birthdate;
}
function normal()
{
if (!$this->banned() and !$this->pageprivate() and $this->actual())
{
return true;
}
else
{
return false;
}
}
function name()
{
$name = explode('
', $this->data);
$name = explode('', $name[1]);
$name = trim($name[0]);
return $name;
}
function groupbadge()
{
if (eregi("/habbo-imaging/badge/", $this->data))
{
$badge = explode('/habbo-imaging/badge/', $this->data);
$badge = explode('.gif', $badge[1]);
$badge = trim($badge[0]);
$badge = "http://www.habbo." . $this->hotel . "/habbo-imaging/badge/" . $badge .
".gif";
return $badge;
}
else
{
return false;
}
}
}
?>