[spoiler]<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
require_once('./data_classes/server-data.php_data_classes-session.php.php');
if($_GET['do'] == "RemoveFeedItem" && is_numeric($_GET['key'])){
mysql_query("DELETE FROM cms_alerts WHERE userid = '".$my_id."' AND id = '".FilterText($_GET['key'])."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
}
$pagename = Principal;
$pageid = "1";
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE receiver_id = '".$my_id."'") or $messages = 1;
header("X-JSON: {\"totalMessages\":".$messages."}");
include('templates/community_subheader.php');
include('templates/community_header.php');
srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);
$tag_question = $randomq[$chosen];
$get_flashclient = mysql_query("SELECT * FROM cms_settings WHERE variable = 'cms_flashclient' AND value = '1'");
?>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<link rel="stylesheet" href="./web-gallery/static/styles/lightweightmepage.css" type="text/css" />
<script src="./web-gallery/static/js/lightweightmepage.js" type="text/javascript"></script>
<div id="promo-box">
<div id="promo-bullets"></div>
<?php
$news1_5 = mysql_query("SELECT * FROM cms_news_slider ORDER BY ID ASC") or die(mysql_error());
?>
<?php $i = 0; while($news = mysql_fetch_assoc($news1_5)){ $i++; ?>
<div class="promo-container" style="background-image: url(<?php echo tirartags($news['image']); ?>)<?php if($i != '1'){ ?>; display: none<?php } ?>">
<div class="promo-content-container">
<div class="promo-content">
<div class="title"><?php echo strip_tags(tirartags($news['title'])); ?></div>
<div class="body"><?php echo strip_tags(tirartags($news['shortstory'])); ?></div>
</div>
</div>
<div class="promo-link-container">
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a style="padding: 0 8px 0 19px;" href="<?php echo strip_tags(tirartags($news['linkbotao'])); ?>" target="_blank"><?php echo strip_tags(tirartags($news['botaotexto'])); ?></a><b></b>
<div id="wide-personal-info">
<div id="habbo-plate">
<a href="<?php echo $path; ?>/profile">
<img alt="<?php echo $name; ?>" src="<?php echo $avatar; echo $myrow['look']; ?>&size=b&action=wav&direction=2&head_direction=3&gesture=sml&size=s" width="64" height="110"/>
</a>
</div>
<div id="name-box" class="info-box">
<div class="label">Nome</div>
<div class="content"><?php echo $name; ?></div>
</div>
<div id="motto-box" class="info-box">
<div class="label">Missão:</div>
<div class="content"><?php echo $myrow['motto']; ?></div>
</div>
<div id="last-logged-in-box" class="info-box">
<div class="label">Última visita:</div>
<div class="content"><?php echo date('d-m-Y H:i:s', $myrow['last_online']); echo""; ?> </div>
</div>
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="client" target="uberClientWnd" onclick="window.open(this.href, '','height=768,width=1300');return false;">Entrar no Hotel<i></i></a>
<b></b>
</div>
</div>
</div>
</div>
</div>
</div>
</div><?php } ?>
</div>
<script type="text/javascript"> document.observe("dom:loaded", function() { PromoSlideShow.init(); });</script>
<div id="column1" class="column">
<div class="habblet-container ">
<br><br>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<div id="column3" class="column">
</div>
</div>
<?php require_once('./templates/community_footer.php'); ?>
[spoiler]