Dentafrice,
14-08-2007, 02:57 PM
<?
$action = $_GET[action];
if($action == "show") {
$habbo = $_POST[habbo];
$domain = "http://www.habbo.co.uk/home/$habbo";
$content = file_get_contents("$domain");
$div_start = explode('<div class="profile-figure">', $content, 2);
$div_end = explode('</div>', $div_start[1], 2);
$img = trim($div_end[0]);
$img = preg_replace('/<img alt=\"(.*?)\" src=\"(.*?)\" \/>/', '$2', $img);
$imag = $img;
$d = explode("/", $imag);
$ff = explode(".gif", $d[3]);
$bob = substr($ff[0], 0, "25");
echo "<input type=\"text\" value=\"$bob\" size=50>";
exit;
}
?>
<form method="post" action="?action=show">
<font face=verdana size=1><b>Habbo Name:</b><br><input type="text" name="habbo" id="habbo"><br><br><input type="Submit" value="Submit">
Not much use to some people, but it will grab the figure of anyone that has their Habbo Home accessible.
$action = $_GET[action];
if($action == "show") {
$habbo = $_POST[habbo];
$domain = "http://www.habbo.co.uk/home/$habbo";
$content = file_get_contents("$domain");
$div_start = explode('<div class="profile-figure">', $content, 2);
$div_end = explode('</div>', $div_start[1], 2);
$img = trim($div_end[0]);
$img = preg_replace('/<img alt=\"(.*?)\" src=\"(.*?)\" \/>/', '$2', $img);
$imag = $img;
$d = explode("/", $imag);
$ff = explode(".gif", $d[3]);
$bob = substr($ff[0], 0, "25");
echo "<input type=\"text\" value=\"$bob\" size=50>";
exit;
}
?>
<form method="post" action="?action=show">
<font face=verdana size=1><b>Habbo Name:</b><br><input type="text" name="habbo" id="habbo"><br><br><input type="Submit" value="Submit">
Not much use to some people, but it will grab the figure of anyone that has their Habbo Home accessible.