Florx
21-12-2006, 12:52 PM
I would like a script that will display a habbos motto. I have the one that displays the habbos picture
<?php
header("Content-type: image/gif");
$habbo = $_GET['name'];
$domain = 'http://www.habbo.co.uk';
$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);
imagegif($im);
imagedestroy($im);
?>
and the "habbos online" counter too
<?php
$page = file_get_contents("http://www.habbo.co.uk");
$start = explode('<div class="profile-motto">', $page, 2);
$end = explode('<div class="clear"></div></div>', $start[1], 2);
$amount = trim($end[0]);
echo "Motto: <b>$amount</b>";
?>
Can anybody help please?
<?php
header("Content-type: image/gif");
$habbo = $_GET['name'];
$domain = 'http://www.habbo.co.uk';
$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);
imagegif($im);
imagedestroy($im);
?>
and the "habbos online" counter too
<?php
$page = file_get_contents("http://www.habbo.co.uk");
$start = explode('<div class="profile-motto">', $page, 2);
$end = explode('<div class="clear"></div></div>', $start[1], 2);
$amount = trim($end[0]);
echo "Motto: <b>$amount</b>";
?>
Can anybody help please?