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

	include("./global.php");
	$pagename = "Accueil";
	$pageid = "accueil";
	
if(!session_is_registered(username))
	{
		Redirect("".$url."/index.php");
	}
?>
<!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" />
<link rel="stylesheet" href="<?PHP echo $imagepath; ?>v2/styles/newcredits.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="" class=" "> 
<div id="overlay"></div> 

<!-- MENU -->
<?PHP include("./template/header.php"); ?>
<!-- FIN MENU -->



<div id="container">

<div id="content" style="position: relative" class="clearfix">

<div id="column1" class="column">
				<div class="habblet-container ">		
	
						<div id="new-personal-info" style="background-image:url(<?PHP echo $imagepath;?>v2/images/personal_info/hotel_views/htlview_gb.png)"> 
 
 
 
   <div id="enter-hotel"> 



<div class="enter-btn"> 

                <a href="<?PHP echo $url; ?>/client.php" target="JabboClient" onclick="HabboClient.openOrFocus(this); return false;">Entrer Dans <?PHP echo $sitename; ?><i></i></a> 

        <b></b> 

    </div> 

</div> 

    
 
	<div id="habbo-plate"> 
		<a href="<?PHP echo $url; ?>/profile.php"> 
				<?PHP if($user['motto'] == "crikey") { ?>
				<img alt="<?PHP echo $user['username']; ?>" src="http://img4.cdn1.habbo.com/c_images/stickers/sticker_croco.gif" style="margin-top: 57px"/>
				<?PHP } else { ?>
				<img alt="<?PHP echo $user['username']; ?>" src="http://www.habbo.com/habbo-imaging/avatarimage?figure=<?PHP echo $user['look']; ?>" /> <?PHP } ?>
		</a> 
	</div> 
 
	<div id="habbo-info"> 
		<div id="motto-container" class="clearfix">			
			<strong><?PHP echo $user['username']; ?>:</strong> 
			<div>

			<span title="Quel est ton humeur du jour?"><?PHP if(!empty($user['motto'])) { echo Securise(utf8_decode($user['motto'])); } else { echo "Quel est ton humeur du jour?"; } ?></span><p style="display: none"><input type="text" maxlength="40" name="motto" value=""/></p>			
				
			</div> 
		</div> 
		<div id="motto-links" style="display: none"><a href="#" id="motto-cancel">Annuler</a></div> 
	</div> 
	
	<ul id="link-bar" class="clearfix"> 	
		<li class="credits"> 
			<a href="<?PHP echo $url; ?>/credits.php"><?PHP echo $user['credits']; ?></a> Cr&eacute;dits
		</li>		
				<!--<li class="club"> 
            <span id="clubdaysleft" style="display:none"> 
                <a href="<?PHP echo $url; ?>/credits/uberclub">0</a> 
                Club days left
            </span> 
            <!--<span id="joinclub"> 
                <a href="<?PHP echo $url; ?>/credits/uberclub">Adh&eacute;rer au <?PHP echo $sitename; ?> Club &raquo;</a>

            </span> 
		</li> -->
		<li class="vipclub">
            <span id="clubdaysleft" style="display:none"> 
                <a href="<?PHP echo $url; ?>/credits/uberclub">0</a> 
                Club days left
            </span> 
            <span id="joinclub">
                <a href="<?PHP echo $url; ?>/clubvip.php">Adh&eacute;rer au VIP Club &raquo;</a>
            </span> 
		</li> 
		    <li class="activitypoints"> 
			    <a href="<?PHP echo $url; ?>/pixels.php"><?PHP echo $user['activity_points']; ?></a> Pixels
		    </li>

				 <li class="jetons"> 
			    <a href="<?PHP echo $url; ?>/jetons.php"><?PHP echo $user['jetons']; ?></a> Jetons
		    </li>
	</ul> 
	
	<div id="habbo-feed">

			<ul id="feed-items">
			
			<?PHP
			$query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".$user['id']."'");
			$i = 0;
			while($friends = mysql_fetch_array($query))
			{
				$getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '1' LIMIT 1");
				if(mysql_num_rows($getfriend) > 0)
				{
					$i++;
					if($i == 1)
					{
						
						echo '<li id="feed-friends">Tes ami(s) connecté(s) sont:<span> ';
					}
					$friend = mysql_fetch_array($getfriend);
					echo $friend['username'].', ';
				}
			}
			if($i > 0)
			echo '</span></li>';
			?>
			
			
			
	        <li class="small" id="feed-lastlogin"> 
                Derni&egrave;re connexion: <?PHP echo $user['last_offline'] ; ?></li> 
			
		</ul> 
	</div> 
	
	<p class="last"></p> 
</div> 
 
<script type="text/javascript"> 
	HabboView.add(function() {
		L10N.put("personal_info.motto_editor.spamming", "Don\'t spam me, bro!");
		PersonalInfo.init("");
	});
</script> 
				
					
				</div>
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

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

<h2 class="title">A la Une</h2> 

<div id="hotcampaigns-habblet-list-container"> 

<ul id="hotcampaigns-habblet-list"> 
<?PHP
			$i = 1;
$sql = mysql_query("SELECT * FROM cms_une ORDER BY id DESC LIMIT 0,10");
while($u = mysql_fetch_array($sql)) { 
	$i++;
	if(IsEven($i)) {
	$oddeven = "even";
	} else {
	$oddeven = "odd";
	}?>
<li class="<?PHP echo $oddeven; ?>"> 
            <div class="hotcampaign-container"> 
                <a href="<?PHP echo $u['url']; ?>">
				<img src="<?PHP echo $u['image']; ?>" align="left" alt="" /></a> 
                <h3><?PHP echo utf8_decode($u['titre']); ?></h3> 
                <p><?PHP echo utf8_decode($u['desc']); ?></p> 
                <p class="link"><a href="<?PHP echo $u['url']; ?>">Voir &raquo;</a></p> 
            </div> 
        </li> 
<?PHP } ?>
</ul>

</div>
</div>

</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<!--<div class="habblet-container minimail" id="mail">		
						<div class="cbb clearfix blue "> 
	
							<h2 class="title">Mes messages
							</h2> 
						<div id="minimail"> 
    <div class="minimail-contents"> 
	
<a href="#" class="new-button compose"><b>Ecrire</b><i></i></a> 

<div class="clearfix labels nostandard"> 
    <ul class="box-tabs"> 
        <li class="selected"><a href="#" label="inbox">Boite de r&eacute;ception</a><span class="tab-spacer"></span></li> 
        <li ><a href="#" label="sent">Envoy&eacute;(s)</a><span class="tab-spacer"></span></li> 
        <li ><a href="#" label="trash">Corbeille</a><span class="tab-spacer"></span></li> 
    </ul> 

</div> 
 
 
<div id="message-list" class="label-inbox"> 
<div class="new-buttons clearfix"> 
	<div class="labels inbox-refresh"><a href="#" class="new-button green-button" label="inbox" style="float: left; margin: 0"><b>Des nouveaux messages?</b><i></i></a></div> 
</div> 
<div style="clear: both; height: 1px"></div> 

 
<div class="navigation"> 
<div class="unread-selector"><input type="checkbox" class="unread-only" /> Non lus</div></div> 
 
		<p class="no-messages">Pas de messages	</p>  
</div>	</div> 
	<div id="message-compose-wait"></div> 
    <form style="display: none" id="message-compose"> 
        <div>A</div> 
        <div id="message-recipients-container" class="input-text" style="width: 426px; margin-bottom: 1em"> 
        	<input type="text" value="" id="message-recipients" /> 
        	<div class="autocomplete" id="message-recipients-auto"> 
        		<div class="default" style="display: none;">Tape le nom de ton ami</div> 
        		<ul class="feed" style="display: none;"></ul> 
        	</div> 
        </div> 
        <div>Objet<br/> 
        <input type="text" style="margin: 5px 0" id="message-subject" class="message-text" maxlength="100" tabindex="2" /> 
        </div> 
        <div>Message<br/> 
        <textarea style="margin: 5px 0" rows="5" cols="10" id="message-body" class="message-text" tabindex="3"></textarea> 
        </div> 
        <div class="new-buttons clearfix"> 
            <a href="#" class="new-button preview"><b>Pr&eacute;visualisation</b><i></i></a> 
            <a href="#" class="new-button send"><b>Envoyer</b><i></i></a> 
        </div> 
    </form>	

</div> 
<script type="text/javascript"> 
	L10N.put("minimail.compose", "Ecrire").put("minimail.cancel", "Annuler")
		.put("bbcode.colors.red", "Rouge").put("bbcode.colors.orange", "Orange")
    	.put("bbcode.colors.yellow", "Jaune").put("bbcode.colors.green", "Vert")
    	.put("bbcode.colors.cyan", "Turquoise").put("bbcode.colors.blue", "Bleu")
    	.put("bbcode.colors.gray", "Gris").put("bbcode.colors.black", "Noir")
    	.put("minimail.empty_body.confirm", "Es-tu s&ucirc;r de vouloir envoyer le message avec un corp vide?")
    	.put("bbcode.colors.label", "Couleur").put("linktool.find.label", " ")
    	.put("linktool.scope.habbos", "Hoax").put("linktool.scope.rooms", "Apparts")
    	.put("linktool.scope.groups", "Clans").put("minimail.report.title", "Signaler aux mod&eacute;rateurs");
 
    L10N.put("date.pretty.just_now", "Maintenant");            
    L10N.put("date.pretty.one_minute_ago", "il y a 1 minute");            
    L10N.put("date.pretty.minutes_ago", "il y a (0) minute");            
    L10N.put("date.pretty.one_hour_ago", "il y a 1 heure");            
    L10N.put("date.pretty.hours_ago", "il y a (0) heure");            
    L10N.put("date.pretty.yesterday", "hier");            
    L10N.put("date.pretty.days_ago", "il y a (0) jours");            
    L10N.put("date.pretty.one_week_ago", "il y a 1 semaine");            
    L10N.put("date.pretty.weeks_ago", "il y a (0) semaine");            
	new MiniMail({ pageSize: 10, 
	   total: 0, 
	   friendCount: 3, 
	   maxRecipients: 50, 
	   messageMaxLength: 20, 
	   bodyMaxLength: 4096,
	   secondLevel: false});
</script> 
	
						
							
					</div> 
				</div> 
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>--> </div>
				
				
				<div id="column2" class="column"><div class="habblet-container news-promo">		
				
				
	<div class="cbb clearfix notitle "> 				
		<div id="newspromo"> 
		
        <div id="topstories"> 
		<?PHP
	$sql = mysql_query("SELECT * FROM site_news ORDER BY id DESC LIMIT 0,3");
	while($news = mysql_fetch_array($sql)) { ?>
		<div class="topstory" style="background-image: url(<?PHP echo $news['topstory_image']; ?>); display: block;"> 
	            <h4>DERNI&Egrave;RES INFOS</h4> 
	            <h3><a href="articles.php?id=<?PHP echo $news['id']; ?>"><?PHP echo utf8_decode($news['title']); ?></a></h3> 
	            <p class="summary"> 
	            <?PHP echo utf8_decode($news['snippet']); ?>
	            </p>
	            
	            <p> 
	                <a href="articles.php?id=<?PHP echo $news['id']; ?>">En savoir plus &raquo;</a> 
	            </p> 
	        </div><?PHP } ?><div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Pr&eacute;c&eacute;dent</a><span>1</span> / 3<a href="#" class="next">Suivant &raquo;</a></div>		
		</div>

		
        <ul class="widelist">
			<?PHP
			$i = 1;
$sql = mysql_query("SELECT * FROM site_news ORDER BY id DESC LIMIT 3,2");
while($news = mysql_fetch_array($sql)) { 
	$i++;
	if(IsEven($i)) {
	$oddeven = "even";
	} else {
	$oddeven = "odd";
	}?>
<li class="<?PHP echo $oddeven; ?>">
                <a href="articles.php?id=<?PHP echo $news['id']; ?>"><?PHP echo $news['title']; ?></a><br><div class="newsitem-date"><?PHP echo $news['snippet']; ?></div>
				</li>
<?PHP } ?>
            <li class="last"><a href="/articles">Plus d'infos &raquo;</a></li>            
        </ul>

</div> 

<script type="text/javascript"> 
	document.observe("dom:loaded", function() { NewsPromo.init(); });
</script> 
	
						
					</div> 
				</div> 
				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
				
				<script type="text/javascript"><!--
google_ad_client = "ca-pub-2182830447266096";
/* 300x250, date de création 27/05/10 */
google_ad_slot = "4663435879";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br><br>
<?PHP
## TAG ##
$sql = mysql_query("SELECT id,tag FROM user_tags WHERE user_id = '".$user['id']."' LIMIT 0,20");
$row = mysql_num_rows($sql);
?>				
				<div class="habblet-container ">		
						<div class="cbb clearfix green "> 
<div class="box-tabs-container clearfix"> 
    <h2>Tags</h2> 
    <ul class="box-tabs"> 
        <li id="tab-1-6-1"><a href="#">Les <?PHP echo $sitename; ?>s aiment...</a><span class="tab-spacer"></span></li> 
        <li id="tab-1-6-2" class="selected"><a href="#">Mes Tags</a><span class="tab-spacer"></span></li> 
    </ul> 

</div> 
    <div id="tab-1-6-1-content"  style="display: none"> 
    		<div class="progressbar"><img src="<?PHP echo $imagepath; ?>images/progress_bubbles.gif" alt="" width="29" height="6" /></div> 
    		<a href="ajax.php?id=viewtag" class="tab-ajax"></a> 
    </div> 
    <div id="tab-1-6-2-content" > 
    
	
</div> </div>
 
<script type="text/javascript"> 
document.observe("dom:loaded", function() {    TagHelper.setTexts({
        tagLimitText: "Limite de Tag atteinte. Tu dois supprim? l\'un de tes tags avant d\'en ajouter un autre",
        invalidTagText: "Tag invalide",
        buttonText: "OK"
    });
	
TagHelper.init('64');});</script> </div> 
 

</div>

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

<!--<div class="cbb clearfix blue ">

<h2 class="title">Hoax sur Facebook

</h2> 



<div class="box-content"> 



<p align="center"><p></p>


</div> 



</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>




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

</script>


</body> 
</html> 


