Anyone got a code for the Habbo Imager that doesnt have a big gap on the image? in other words, to crop?
Thanls
Anyone got a code for the Habbo Imager that doesnt have a big gap on the image? in other words, to crop?
Thanls
Habbo-Paper.co.uk has one
And I think Habboring.com has one also.
Sam
Use the search tool, there are heaps on cropped imagers (if you know what to search)
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
PHP Code:<?
// 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);
?>
Last edited by Florx; 12-06-2007 at 07:41 AM.
Want to hide these adverts? Register an account for free!