PDA

View Full Version : PHP Figure graber :)



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.

Telescoped
14-08-2007, 05:49 PM
Well is useful to me but can't get it to work.

Just keeps saying:



Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/jamie/public_html/jamie/habbo.php on line 6

Warning: file_get_contents(http://www.habbo.co.uk/home/Telescoped) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/jamie/public_html/jamie/habbo.php on line 6


Im ok at PHP, but don't know how to fix it.

Drompo
14-08-2007, 05:52 PM
Sorry, It Double posted.

Drompo
14-08-2007, 05:53 PM
I think thats your hosting/server

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/jamie/public_html/jamie/habbo.php on line 6

Dentafrice,
14-08-2007, 05:55 PM
Server won't let you do file_get_contents

Telescoped
14-08-2007, 06:11 PM
Anyways on fixing it?

Dentafrice,
14-08-2007, 06:13 PM
contact your host :)

Sunny.
14-08-2007, 06:16 PM
Nice +rep

Telescoped
14-08-2007, 06:18 PM
Ah cba its only temporary host until i get a new one.

cunning
14-08-2007, 10:29 PM
I think there is a more simple Habbo imager...

Dentafrice,
14-08-2007, 11:01 PM
This isn't a Habbo imager ;\

This gets the figure DATA, for the client.

Not their Habbo..

cunning
14-08-2007, 11:33 PM
Oh okay, I see...

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