PDA

View Full Version : Need Habbo Imager Code



World
08-05-2007, 05:05 PM
I need the PHP code for a Habbo imager that looks like this:

www.habbosite.com/page.php?name=HABBONAME&hotel=HOTEL

Anyone help?

Luckyrare
09-05-2007, 04:16 PM
Search the forum, theres a few been posted.

Simon
09-05-2007, 04:24 PM
Like: http://www.habbo-paper.co.uk/live/ :rolleyes:?

Invent
09-05-2007, 04:33 PM
http://www.habbo-paper.co.uk/live/*+*+*+*i coded dat m88!!1***+*+*+*

Topps
09-05-2007, 08:10 PM
*+*+*+*i coded dat m88!!1***+*+*+*

Great coding then BTW! :)

World
10-05-2007, 11:16 PM
Not particularly like that, no. I want the hotels all in one file so I can just do &hotel=.co.uk or something, etc.

Dentafrice1
11-05-2007, 03:01 AM
No he didn't, he coded the first version.

Reviewdude ask me to code this one ;) As you can see it has more then 1 badge.

Here is one I briefly coded up.

edit $default to set the default hotel.

imager.php?name=habboname will show habboname from your default hotel
imager.php?name=habboname&hotel=com will show habboname from USA hotel.

in the hotel do not put .com, .ca, .com.sg, just com, ca, com.sg



<?
// Multi Hotel Imager.
// Created by Dentafrice

$default = "co.uk"; // Default hotel, no . EX: ca, com, co.uk, com.sg
$hotel = $_GET[hotel];
if($hotel == "") {
$hhotel = $default;
}else{
$hhotel = $hotel;
}
$habbo = $_GET['name'];
$domain = "http://www.habbo.$hhotel";
$content = @file_get_contents($domain . '/home/'.$habbo);
$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 = $domain.$img;
$im = @imagecreatefromgif($imag);
header("Content-type: image/gif");
@imagegif($im);
@imagedestroy($im);
?>

paradox
11-05-2007, 05:49 AM
No he didn't, he coded the first version.

Reviewdude ask me to code this one ;) As you can see it has more then 1 badge.

Here is one I briefly coded up.

edit $default to set the default hotel.

imager.php?name=habboname will show habboname from your default hotel
imager.php?name=habboname&hotel=com will show habboname from USA hotel.

in the hotel do not put .com, .ca, .com.sg, just com, ca, com.sg



<?
// Multi Hotel Imager.
// Created by Dentafrice

$default = "co.uk"; // Default hotel, no . EX: ca, com, co.uk, com.sg
$hotel = $_GET[hotel];
if($hotel == "") {
$hhotel = $default;
}else{
$hhotel = $hotel;
}
$habbo = $_GET['name'];
$domain = "http://www.habbo.$hhotel";
$content = @file_get_contents($domain . '/home/'.$habbo);
$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 = $domain.$img;
$im = @imagecreatefromgif($imag);
header("Content-type: image/gif");
@imagegif($im);
@imagedestroy($im);
?>

can i use that

Dentafrice1
11-05-2007, 07:35 PM
Yeah, or I would not have posted it.

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