http://www.driftpanzy.co.uk/habbo/index.php
Got bored, im tired so prob some mistakes or some critics want to be clever and prove something that ive done wrong to make them loook bigg but OH WELL!
have habbos.xml created in the DIRECTORY and get the images that you need off of my live example...PHP Code:<style>
.online {
border-bottom-style:dashed;
border-top-style:dashed;
border-left-style:dashed;
border-right-style:dashed;
border-top-width:thin;
border-bottom-width:thin;
border-left-width:thin;
border-right-width:thin;
border-bottom-color:#666666;
border-top-color:#666666;
border-left-color:#666666;
border-right-color:#666666;
font-family:Tahoma;
font-size:12px;
font-style:normal;
background: #EFEFEF;
}
.offline {
border-bottom-style:dashed;
border-top-style:dashed;
border-left-style:dashed;
border-right-style:dashed;
border-top-width:thin;
border-bottom-width:thin;
border-left-width:thin;
border-right-width:thin;
border-bottom-color:#333333;
border-top-color:#333333;
border-left-color:#333333;
border-right-color:#333333;
font-family:Tahoma;
font-size:12px;
font-style:normal;
}
</style>
<?php
// lalala. random habbos..
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.habbo.co.uk/habblet/xml/promo_habbos");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$file = curl_exec($ch);
$filename = "habbos.xml";
if (is_writable($filename)) {
if (!$handle = fopen($filename, 'w')) {
exit; }
if (fwrite($handle, $file) === FALSE) {
exit; }
fclose($handle);
curl_close($ch);
}
if(file_exists("habbos.xml")) {
$loadit = simplexml_load_file("habbos.xml");
$rows = 0;
$cols = 0;
echo('<table width="400" border="0"><tr>');
foreach ($loadit->children() as $fetch) {
$name = $fetch["name"];
$url = $fetch["url"];
$status = $fetch["status"];
$group = $fetch["groupBadge"];
$badge = $fetch["badge"];
$image = 'http://www.habbo.co.uk/habbo-imaging/avatarimage?user='.$name.'&action=&direction=3&head_direction=3&gesture=sml&size=l';
if($status == "1") {
$status = "habbo_online_anim.gif";
$class = "online";
} else {
$status = "habbo_offline.gif";
$class = "offline"; }
if($badge == "") { $ihc = "dot_clear.gif";
} else { $ihc = $badge; }
if($group == "") { $badge = "dot_clear.gif";
} else { $badge = "http://www.habbo.co.uk".$group; }
if($rows < 2) {
if($cols < 4) {
echo('<td><table width="150" class="'.$class.'" border="0"><tr><td><center><img src="'.$ihc.'"></center></td><td><center><img src="'.$image.'"></center></td><td><center><img src="'.$badge.'"></center></td></tr><tr><td colspan="3"><center>'.$name.'</center></td></tr><tr><td colspan="3"><center><img src="'.$status.'"></center></td></tr></table></td>');
$cols++;
} else {
if($rows < 1) {
echo('</tr><tr><td><table width="150" class="'.$class.'" border="0"><tr><td><center><img src="'.$ihc.'"></center></td><td><center><img src="'.$image.'"></center></td><td><center><img src="'.$badge.'"></center></td></tr><tr><td colspan="3"><center>'.$name.'</center></td></tr><tr><td colspan="3"><center><img src="'.$status.'"></center></td></tr></table></td>');
$rows++;
$cols = 1; } }
} else {
echo('</td></table>'); }
}
} else { exit("Failed to load."); }
?>
http://www.driftpanzy.co.uk/habbo/index.php
WORD UP! im boooooooooooored what should i doooooooooooooooo





Reply With Quote


