                       <?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/

$page['allow_guests'] = true;
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("credits.credits");

$page['id'] = "vip_members";
$page['name'] = "VIP Members";
$page['bodyid'] = "home";
$page['cat'] = "community";

require_once('./templates/community_header.php');
?>
<div id="container">
	<div id="content" style="position: relative" class="clearfix">
    <div id="column1" class="column">

				<div class="habblet-container ">
						<div class="cbb clearfix blue ">

							<h2 class="title">VIP Members
							</h2>
<p class="credits-countries-select">
<?php
    $sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 2 ORDER BY rank DESC";
    $result = mysql_query($sql) OR die(mysql_error());
    if(mysql_num_rows($result)) {
        while($row = mysql_fetch_assoc($result)) {

		$userid = $row['id'];
                if($row['rank'] == "2")
		{
		$rank="<b/>VIP Member</b>";
		}

if($row['private'] == 1)
{
  $s_username = 'Anonymous';
  $s_mission = 'This member of staff would prefer to remain anonymous.';
  $s_figure = 'http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=ha-1015-.hd-180-1.ch-210-66.lg-270-81.sh-290-80.hr-100-&size=b&direction=2&head_direction=3&gesture=sml&size=m';
}
else
{
  $s_username = $row['name'];
  $s_mission = $row['mission'];
  $s_figure = 'http://www.habbo.co.uk/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml&size=m';
}
echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' />
<b><a href='home/".$s_username."'>".$s_username."</a></b>&nbsp;<br />
".$s_mission."<br/>
<br />
Rank: ".$rank."<br />
Last Visit: ".$row['lastvisit']."<br />
<img src=\"http://images.habbo.com/c_images/album1584/VIP.gif\" /><br /><br /><br /></p>";
        }
}
?>
					</div>
						
				</div>
</div>
<div id="column2" class="column">
				<div class="habblet-container ">
						<div class="cbb clearfix blue ">

							<h2 class="title">Thank You
							</h2>
						<div id="purse-habblet">

<div class="box-content">
<img src="http://images.habbo.com/c_images/album1584/VIP.gif"" align="right">
These are members of the community who have bought VIP services, and helped keep HabboCity alive. We truely thank these members.</div>
</div>


					</div>
				</div

<?php require_once('./templates/community_footer.php'); ?>
