I've recently made some changes to my site's design, and uploaded them to a seperate directory to work on. These changes include modifying a status signature, which is just a little image that displays your Habbo Hotel Figure, mission, etc.
I uploaded the design to www.habble-aus.com/themetest, and this works fine.
However, when I try to access www.habble-aus.com/themetest/profiles, where the status signature is, it just keeps loading, but never loads, or stops, or comes up with an error!
It doesn't appear to be a problem with my script, as I had accidentally used an old password to connect to the database, which would have caused an error.
If you want to see it for yourself, go to http://www.habble-aus.com/themetest/profiles?name=7249
Here's my script (at http://www.habble-aus.com/themetest/profiles/index.php), but like I say, I don't think the problem's got anything to do with it.
CODE
<?php
header("(anti-spam-(anti-spam-(anti-spam-content-type:))) Image/PNG");
include("dbconnect.php");
include("habboclass.php");
$gethabboname = "select * from users where username = '".$_GET["name"]."';";
$ghnresult = mysql_query($gethabboname);
$ghnarray = mysql_fetch_array($ghnresult);
$habboclass = new habboClass($ghnarray["habboname"], $ghnarray["hotel"]);
$image = imagecreatefromgif("profile_template.gif");
if ($ghnarray["hotel"]=="com.au")
{
$country = "Australia";
$flag = imagecreatefromgif("flag_au.gif");
}
else if ($ghnarray["hotel"]=="co.uk")
{
$country = "United Kingdom";
$flag = imagecreatefromgif("flag_uk.gif");
}
else if ($ghnarray["hotel"]=="com")
{
$country = "USA";
$flag = imagecreatefromgif("flag_us.gif");
}
else if ($ghnarray["hotel"]=="ca")
{
$country = "Canada";
$flag = imagecreatefromgif("flag_ca.gif");
}
else if ($ghnarray["hotel"]=="com.sg")
{
$country = "Singapore";
$flag = imagecreatefromgif("flag_sg.gif");
}
else if ($ghnarray["hotel"]=="de")
{
$country = "Germany";
$flag = imagecreatefromgif("flag_de.gif");
}
else if ($ghnarray["hotel"]=="fi")
{
$country = "Finland";
$flag = imagecreatefromgif("flag_fi.gif");
}
$motto = $habboclass->motto;
$rhotel = $ghnarray["hotel"];
while (eregi('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.19/images/fonts/volter/', $motto))
{
$motarray = explode('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.19/images/fonts/volter/', $motto);
$motarray = explode('.gif" class="vchar" />', $motarray[1]);
$char = $motarray[0];
$motto = str_replace('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.19/images/fonts/volter/'.$char.'.gif" class="vchar" />', Chr($char), $habboclass->motto);
}
while (eregi('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.18/images/fonts/volter/', $motto))
{
$motarray = explode('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.18/images/fonts/volter/', $motto);
$motarray = explode('.gif" class="vchar" />', $motarray[1]);
$char = $motarray[0];
$motto = str_replace('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.18/images/fonts/volter/'.$char.'.gif" class="vchar" />', Chr($char), $habboclass->motto);
}
while (eregi('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.22/images/fonts/volter/', $motto))
{
$motarray = explode('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.22/images/fonts/volter/', $motto);
$motarray = explode('.gif" class="vchar" />', $motarray[1]);
$char = $motarray[0];
$motto = str_replace('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.22/images/fonts/volter/'.$char.'.gif" class="vchar" />', Chr($char), $habboclass->motto);
}
$habbopicpre = imagecreatefromgif($habboclass->figure);
if ($habboclass->badge)
{
$badgepre = imagecreatefromgif($habboclass->badge);
}
ImagePNG($habbopicpre, $ghnarray["username"].".png");
if ($habboclass->badge)
{
ImagePNG($badgepre, "badges/".$ghnarray["username"].".png");
}
$habbopic = imagecreatefrompng($ghnarray["username"].".png");
if ($habboclass->badge)
{
$badge = imagecreatefrompng("badges/".$ghnarray["username"].".png");
}
$black = ImageColorAllocate($image, 0, 0, 0);
$font = "Volter (Goldfish).ttf";
ImageTTFText($image, 7, 0, 21, 24, $black, $font, $ghnarray["habboname"]);
ImageTTFText($image, 7, 0, 145, 116, $black, $font, "Created on: ".$habboclass->birthdate);
ImageTTFText($image, 7, 0, 94, 142, $black, $font, $motto);
ImageTTFText($image, 7, 0, 184, 80, $black, $font, $country);
ImageCopy($image, $habbopic, 13, 31, 0, 0, 64, 110);
if ($habboclass->badge)
{
ImageCopy($image, $badge, 92, 43, 0, 0, 37, 36);
}
if ($habboclass->online==true)
{
$online = imagecreatefromgif("online.gif");
ImageCopy($image, $online, 94, 92, 0, 0, 35, 29);
}
else if ($habboclass->online==false)
{
$offline = imagecreatefromgif("offline.gif");
ImageCopy($image, $offline, 94, 92, 0, 0, 35, 29);
}
ImageCopy($image, $flag, 220, 14, 0, 0, 51, 69);
ImagePNG($image);
?>
header("(anti-spam-(anti-spam-(anti-spam-content-type:))) Image/PNG");
include("dbconnect.php");
include("habboclass.php");
$gethabboname = "select * from users where username = '".$_GET["name"]."';";
$ghnresult = mysql_query($gethabboname);
$ghnarray = mysql_fetch_array($ghnresult);
$habboclass = new habboClass($ghnarray["habboname"], $ghnarray["hotel"]);
$image = imagecreatefromgif("profile_template.gif");
if ($ghnarray["hotel"]=="com.au")
{
$country = "Australia";
$flag = imagecreatefromgif("flag_au.gif");
}
else if ($ghnarray["hotel"]=="co.uk")
{
$country = "United Kingdom";
$flag = imagecreatefromgif("flag_uk.gif");
}
else if ($ghnarray["hotel"]=="com")
{
$country = "USA";
$flag = imagecreatefromgif("flag_us.gif");
}
else if ($ghnarray["hotel"]=="ca")
{
$country = "Canada";
$flag = imagecreatefromgif("flag_ca.gif");
}
else if ($ghnarray["hotel"]=="com.sg")
{
$country = "Singapore";
$flag = imagecreatefromgif("flag_sg.gif");
}
else if ($ghnarray["hotel"]=="de")
{
$country = "Germany";
$flag = imagecreatefromgif("flag_de.gif");
}
else if ($ghnarray["hotel"]=="fi")
{
$country = "Finland";
$flag = imagecreatefromgif("flag_fi.gif");
}
$motto = $habboclass->motto;
$rhotel = $ghnarray["hotel"];
while (eregi('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.19/images/fonts/volter/', $motto))
{
$motarray = explode('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.19/images/fonts/volter/', $motto);
$motarray = explode('.gif" class="vchar" />', $motarray[1]);
$char = $motarray[0];
$motto = str_replace('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.19/images/fonts/volter/'.$char.'.gif" class="vchar" />', Chr($char), $habboclass->motto);
}
while (eregi('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.18/images/fonts/volter/', $motto))
{
$motarray = explode('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.18/images/fonts/volter/', $motto);
$motarray = explode('.gif" class="vchar" />', $motarray[1]);
$char = $motarray[0];
$motto = str_replace('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.18/images/fonts/volter/'.$char.'.gif" class="vchar" />', Chr($char), $habboclass->motto);
}
while (eregi('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.22/images/fonts/volter/', $motto))
{
$motarray = explode('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.22/images/fonts/volter/', $motto);
$motarray = explode('.gif" class="vchar" />', $motarray[1]);
$char = $motarray[0];
$motto = str_replace('<img src="http://images.habbohotel.'.$rhotel.'/web/web-5.0.22/images/fonts/volter/'.$char.'.gif" class="vchar" />', Chr($char), $habboclass->motto);
}
$habbopicpre = imagecreatefromgif($habboclass->figure);
if ($habboclass->badge)
{
$badgepre = imagecreatefromgif($habboclass->badge);
}
ImagePNG($habbopicpre, $ghnarray["username"].".png");
if ($habboclass->badge)
{
ImagePNG($badgepre, "badges/".$ghnarray["username"].".png");
}
$habbopic = imagecreatefrompng($ghnarray["username"].".png");
if ($habboclass->badge)
{
$badge = imagecreatefrompng("badges/".$ghnarray["username"].".png");
}
$black = ImageColorAllocate($image, 0, 0, 0);
$font = "Volter (Goldfish).ttf";
ImageTTFText($image, 7, 0, 21, 24, $black, $font, $ghnarray["habboname"]);
ImageTTFText($image, 7, 0, 145, 116, $black, $font, "Created on: ".$habboclass->birthdate);
ImageTTFText($image, 7, 0, 94, 142, $black, $font, $motto);
ImageTTFText($image, 7, 0, 184, 80, $black, $font, $country);
ImageCopy($image, $habbopic, 13, 31, 0, 0, 64, 110);
if ($habboclass->badge)
{
ImageCopy($image, $badge, 92, 43, 0, 0, 37, 36);
}
if ($habboclass->online==true)
{
$online = imagecreatefromgif("online.gif");
ImageCopy($image, $online, 94, 92, 0, 0, 35, 29);
}
else if ($habboclass->online==false)
{
$offline = imagecreatefromgif("offline.gif");
ImageCopy($image, $offline, 94, 92, 0, 0, 35, 29);
}
ImageCopy($image, $flag, 220, 14, 0, 0, 51, 69);
ImagePNG($image);
?>
(the files are all there, by the way)

