<?PHP
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
#|                                                                        #|
#|         JabboCMS - Website and Content Management System               #|
#|         Copyright © 2011 Jor.dan. All rights reserved.                 #|
#|																		  #|
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|

	include("./global.php");
	$pagename = "VIP Club";
	$pageid = "vipclub";
	
if(!session_is_registered(username))
	{
		Redirect("".$url."/index.php");
	}
	
	$do = Securise($_GET['do']);
		if($do == "check") {
			if($user['jetons'] >= 2) {
			
			$sql = mysql_query("UPDATE users SET jetons = jetons - 10, rank = '2', credits = credits + 10000, activity_points = activity_points + 10000 WHERE id = '".$user['id']."'");
			mysql_query("INSERT INTO user_badges (user_id,badge_id) VALUES ('".$user['id']."','VIP')");
			mysql_query("INSERT INTO user_badges (user_id,badge_id) VALUES ('".$user['id']."','GM1')");
			mysql_query("INSERT INTO user_badges (user_id,badge_id) VALUES ('".$user['id']."','GM4')");
			mysql_query("INSERT INTO user_badges (user_id,badge_id) VALUES ('".$user['id']."','BOT')");
			mysql_query("INSERT INTO user_badges (user_id,badge_id) VALUES ('".$user['id']."','LE1')");
			mysql_query("INSERT INTO messenger_friendships (user_one_id,user_two_id) VALUES ('1','".$user['id']."')");
			mysql_query("INSERT INTO messenger_friendships (user_one_id,user_two_id) VALUES ('".$user['id']."','1')");
		    $message = "<div id=\"purse-redeem-result\"> 
        <div class=\"redeem-error\"> 
            <div class=\"rounded rounded-green\"> 
              Bien jou&eacute;! Ta demande d'abonnement &agrave; &eacute;t&eacute; accept&eacute;! Tu fais maintenant partie du <b>VIP CLUB</b>!
            </div> 
        </div> 
</div>";
			} else {
			$message = "<div id=\"purse-redeem-result\"> 
        <div class=\"redeem-error\"> 
            <div class=\"rounded rounded-red\"> 
               Tu n'as pas assez de jetons pour adh&eacute;rer au VIP CLUB!
            </div> 
        </div> 
</div>";
			}
		}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> 
<meta http-equiv="content-type" content="text/html; charset=ISO 5589-1" /> 
<title><?PHP echo $sitename; ?>: <?PHP echo $pagename; ?></title> 
 
<script type="text/javascript"> 
var andSoItBegins = (new Date()).getTime();
var ad_keywords = "";
document.habboLoggedIn = true;
var habboName = "<?PHP echo $user['username']; ?>";
var habboReqPath = "<?PHP echo $url; ?>";
var habboStaticFilePath = "<?PHP echo $imagepath; ?>";
var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "<?PHP echo $url; ?>/client";
window.name = "habboMain";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "uberClientWnd"; }
</script> 



<link rel="shortcut icon" href="<?PHP echo $imagepath; ?>favicon.ico" type="image/vnd.microsoft.icon" /> 
<script src="<?PHP echo $imagepath; ?>static/js/libs2.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/visual.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/libs.js" type="text/javascript"></script>
<script src="<?PHP echo $imagepath; ?>static/js/common.js" type="text/javascript"></script>

<script src="<?PHP echo $imagepath; ?>static/js/fullcontent.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/tooltips.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/personal.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/habboclub.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/minimail.css" type="text/css" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/myhabbo/control.textarea.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/minimail.js" type="text/javascript"></script>

 

<meta name="description" content="<?PHP echo $description; ?>" /> 
<meta name="keywords" content="<?PHP echo $keyword; ?>" />  
<!--[if IE 8]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie8.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/ie6.css" type="text/css" />
<script src="<?PHP echo $imagepath; ?>static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
 
<style type="text/css">
body { behavior: url(http://www.habbo.com/js/csshover.htc); }
</style>
<![endif]--> 
<meta name="build" content="<?PHP echo $build; ?> >> <?PHP echo $version; ?>" /> 
</head>


	 
<body id="home" class=" "> 
<div id="overlay"></div> 
<!-- MENU -->
<?PHP include("./template/header.php"); ?>
<!-- FIN MENU -->

<div id='container'>
<div id='content'>
<div id='column1' class='column'>
           
<div class="habblet-container ">		
						<div class="cbb clearfix brown">
	
							<h2 class="title">Avantage du VIP Club
							</h2>
							
						<script src="<?PHP echo $imagepath; ?>static/js/credits.js" type="text/javascript"></script><br>
					<center>	<img src="<?PHP echo $imagepath; ?>v2/images/clubvip.gif"></center>
<p class='credits-countries-select'><br>
<b><font color="#A67A3E">Vos avantages sont:</b><br><br></font>
&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp; <b><font color="#A67A3E">&bull;</font></b> <b><font color="#03AFD2">5</font></b> badges dont un <b>VIP</b><br><br>
&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp; <b><font color="#A67A3E">&bull;</font></b> <b><font color="#03AFD2">10 000</font></b> crédits ainsi que <b><font color="#03AFD2">10 000</b></font> pixels supplémentaire.<br><br>

&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp; <b><font color="#A67A3E">&bull;</font></b> Des nouvelles catégories de mobilier sont ajouté dans votre <b>&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp;&nbsp;Catalogue</b> dont les <b><font color="#03AFD2">Rares</b></font>.<br>
<br>
&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp; <b><font color="#A67A3E">&bull;</font></b> L'ajout <b>automatique</b> de <b><font color="#03AFD2">Cosmik</b></font> dans votre console.<br>
<br>
&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp; <b><font color="#A67A3E">&bull;</font></b> Possibilitée d'utiliser <b><font color="#03AFD2">:unload</b></font> et <b><font color="#03AFD2">:override</b></font> dans vos propres apparts.<br><br>

&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp; <b><font color="#A67A3E">&bull;</font></b> Possibilitée d'utiliser la commande <b><font color="#03AFD2">:moonwalk</b></font><br>
<br>
&nbsp;&nbsp&nbsp;&nbsp;&nbsp&nbsp; <b><font color="#A67A3E">&bull;</font></b> Possibilitée d'entrer dans les apparts <b><font color="#03AFD2">complet</b></font><br><br>
<b><font color="#A67A3E">Prix: 10 Jetons</b><br><br></font>
</div></div></div>  

			     	

		


<div id="column2" class="column">

                <div class="habblet-container ">        

                        <div class="cbb clearfix brown ">

    

                            <h2 class="title">Votre porte monnaie

                            </h2>

                        <div id="purse-habblet">

                                                        <form method="post" action="?do=code" id="vxoucher-form">

<ul>

    <li class="even icon-purse-jetons">

        <div>Vous avez actuellement:</div>

        <span class="purse-balance-amount"><?PHP echo $user['jetons']; ?> Jetons</span>

        <!--<div class="purse-tx"><a href="transactions.php">Account transactions</a></div>-->

    </li>



    <li class="odd">

        <div class="box-content">
<?PHP if(isset($message)) { echo "".$message."<br>"; } ?>
            <div><b><font color="red">Voulez-vous adhérer au VIP Club?</font></b></div>
<br>
            <a href="?do=check"><img src="<?PHP echo $imagepath; ?>v2/images/bouton_jadhere.png" align="right"></a>
        </div>

    </li>

</ul>

<div id="purse-redeem-result">

</div>    </form>

        </div>



<script type="text/javascript">

    new PurseHabblet();

</script>

    

                        

                    </div>

                </div>

                <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
             
                <div class="habblet-container ">        
    
                        
                        
                    
                </div>

                <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>             

               


                <script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
             
                             
</div>

<script type="text/javascript">
HabboView.run();
</script>    
                </div>
               


    

	<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]--> 
<!-- FOOTER -->
<?PHP include("./template/footer.php"); ?>
<!-- FIN FOOTER -->


<div style="clear: both;"></div>


</div></div></div></div>

 
<script type="text/javascript"> 
HabboView.run();

</script>


</body> 
</html> 



