PDA

View Full Version : Imager



Robbie
11-06-2007, 04:39 PM
Anyone got a code for the Habbo Imager that doesnt have a big gap on the image? in other words, to crop?

Thanls

Highjacker-x
11-06-2007, 10:37 PM
Habbo-Paper.co.uk has one :)

And I think Habboring.com has one also.

Verrou
12-06-2007, 05:14 AM
Use the search tool, there are heaps on cropped imagers (if you know what to search ;) )

Florx
12-06-2007, 07:36 AM
Im pretty sure invent posted one in the coding section a while back and that has no big border. SEARCH THE DAMN FORUM!
I found this on the forum in 2 seconds by searching for it! Thanks to Dentafrice for it :p

<?
// 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);
?>

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