CMS Pedido 24.08.13 18:11
Quero uma cms, sem slider na Me
com aquele tipo antigo
quem puder deixe abaixo, obg.
com aquele tipo antigo
quem puder deixe abaixo, obg.
<?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";
include('templates/community_subheader.php');
include('templates/community_header.php');
$fetch_tags = mysql_query("SELECT tag,id FROM user_tags WHERE user_id = '".$my_id."' LIMIT 20") or die(mysql_error());
$tags_num = mysql_num_rows($fetch_tags);
$randomq[] = "Quem é o seu ator favorito?";
$randomq[] = "Qual é o esporte que você gosta?";
$randomq[] = "Qual é o seu sobrenome?";
$randomq[] = "Como se chama sua canção favorita?";
$randomq[] = "Qual foi seu ano favorito?";
$randomq[] = "Qual é a sua banda favorita?";
$randomq[] = "Qual é o programa de televisão que você mais gosta?";
$randomq[] = "Qual é o instrumento que gostaria de tocar?";
$randomq[] = "Escolha: Pizza ou Hamburguer";
$randomq[] = "Qual é o nome do esporte que você gosta?";
$randomq[] = "Quando você vai a alguma festa, com qual roupa vai?";
$randomq[] = "Qual o nome do seu namorado (a)?";
$randomq[] = "Qual o animal que você gosta?";
$randomq[] = "Qual é a sua cor preferida?";
$randomq[] = "Qual você prefere: Jonas Brothers ou Justin Bieber";
$randomq[] = "Qual é o estilo de música que você gosta?";
$randomq[] = "Qual é a palavra que te define?";
$randomq[] = "Qual é o melhor: Habbo ou ".$shortname."?";
$randomq[] = "Qual é o seu staff favorito?";
$randomq[] = "Qual jornal você assiste?";
$randomq[] = "Quais idiomas você fala?";
$randomq[] = "O Melhor do mundo é...?";
$randomq[] = "Qual é o mobi que você mais gosta?";
$randomq[] = "Oque você faz quando está na frente do PC?";
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">
<div id="column1" class="column">
<div class="habblet-container ">
<div id="new-personal-info" style="background-image:url(./web-gallery/v2/images/personal_info/hotel_views/htlview_br.png)">
<div id="enter-hotel">
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="client" target="client" onclick="openOrFocusHabbo(this); return false;">Entrar no <?php echo $shortname; ?> Hotel<i></i></a>
<b></b>
</div></div>
</div>
<div id="habbo-plate">
<a href="profile">
<?php if($myrow['motto'] == "Crikey"){ ?>
<img alt="<?php echo $name; ?>" src="web-gallery/v2/images/personal_info/sticker_croco.gif" style="margin-top: 57px"/>
<?php } else { ?>
<img alt="<?php echo $name; ?>" src="<?php echo $avatar; echo $row['look']; ?><?php echo $myrow['look']; ?>&size=b&direction=3&head_direction=3&gesture=sml" width="64" height="110">
<?php } ?>
</a>
</div>
<div id="habbo-info">
<div id="motto-container" class="clearfix">
<strong><?php echo $name; ?>:</span></strong>
<div>
<span title="Qual seu pensamento de hoje?"><?php if(!empty($myrow['motto'])){ echo HoloText($myrow['motto']); } else { echo "Qual seu pensamento de hoje?"; } ?></span>
<p style="display: none"><input type="text" length="30" name="motto" value="<?php echo HoloText($myrow['motto']); ?>"/></p>
</div>
</div>
<div id="motto-links" style="display: none"><a href="#" id="motto-cancel">Cancelar</a></div>
</div>
<ul id="link-bar" class="clearfix">
<li class="credits">
<a href="credits"><?php echo $myrow['credits']; ?></a> Moedas
<li class="activitypoints">
<a href="credits/pixels"><?php echo $myrow['activity_points']; ?></a> Pixels</li>
<li class="club">
<?php if($hc > 0){ ?>
<a href="client"><?php echo getHCDays($my_id); ?></a> Dias restantes como HC
<?php } else { ?>
<a href="client">Junte-se ao <?php echo $shortname; ?> Club</a><?php } ?></li>
</ul>
<div id="habbo-feed">
<ul id="feed-items">
<?php
$tmp = mysql_query("SELECT * FROM cms_alerts WHERE userid = '".$my_id."'") or die(mysql_error());
$alerts = mysql_num_rows($tmp);
if($alerts > 0){
$row = mysql_fetch_assoc($tmp);
$id = $row['id'];
$alert = $row['alert'];
if($alerts > 0){ ?>
<li id="feed-item-campaign" class="contributed">
<a href="#" class="remove-feed-item" id="remove-feed-item-<?php echo $row['id']; ?>" title="Remover notificação">Remover notificação</a>
<div>
<?php echo str_replace("%username%", $name, nl2br($row['alert'])); ?>
</span>
</div>
</li>
<?php while($row = mysql_fetch_assoc($tmp)){ ?>
<?php } } }
$sql = mysql_query("SELECT * FROM messenger_requests WHERE to_id = '".$my_id."'");
$count = mysql_num_rows($sql);
if($count > 0){ ?>
<li id="feed-notification">
Você têm <a href="client" onclick="HabboClient.openOrFocus(this); return false;"><?php echo $count; ?> pedidos de amizade</a> em espera
</li>
<?php }
$sql = mysql_query("SELECT * FROM users,messenger_friendships WHERE users.online = '1' AND (messenger_friendships.user_two_id = '".$my_id."') AND messenger_friendships.user_one_id = users.id AND users.id != '".$my_id."' ORDER BY username");
$count = mysql_num_rows($sql);
$i = 0;
if($count > 0){
?>
<?php }
$get_em = mysql_query("SELECT id FROM homes_stickers WHERE userid = '".$my_id."' AND subtype = '4'") or die(mysql_error());
$row_em = mysql_num_rows($get_em);
if($row_em > 0){
$row_em = mysql_fetch_assoc($get_em);
$sql = mysql_query("SELECT * FROM homes_guestbook WHERE widget_id = '".$row_em['id']."' AND pickup = '1'");
$count = mysql_num_rows($sql);
if($count > 0){ ?>
<?php if(showfriendsOnline($my_id) > 0){ ?>
<li id="feed-friends">
<strong><?php echo $count; ?></strong> de seus amigo<?php if($count > 1){ ?>s<?php } ?> estão online
<span>
<?php while($row = mysql_fetch_assoc($sql)){
$i++;
echo"<a href=\"../home/".$row['username']."\">"; echo $row['username']; echo"</a>";
if($i < $count){ echo ", "; }
echo "\n"; } ?>
</span>
</li>
<?php } ?>
<?php } } ?>
<li class="small" id="feed-trading-enabled">Suas trocas estão ativadas. <a href="profile">Clique aqui para desativá-las!</a></li>
<li class="small" id="feed-lastlogin">
Última Visita: <?php echo date('d/m/Y H:i:s', $myrow['account_created']); echo""; ?>
</li>
</ul>
</div>
<p class="last"></p>
</div>
<script type="text/javascript">
HabboView.add(function() {
L10N.put("personal_info.motto_editor.spamming", "Hey, não há spam!");
PersonalInfo.init("");
});
</script>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div>
<div>
<div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<?php
// #########################################################################
// Novidades do Hotel
// #########################################################################
$hotcampaigns = mysql_query("SELECT * FROM cms_hotcampaigns ORDER BY id DESC LIMIT 10") or die(mysql_error());
if(mysql_num_rows($hotcampaigns) > 0){ ?>
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Novidades do Hotel</h2>
<div id="hotcampaigns-habblet-list-container">
<?php while($row = mysql_fetch_assoc($hotcampaigns)){ ?>
<ul id="hotcampaigns-habblet-list">
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $row['url']; ?>"><img src="<?php echo $row['image_url']; ?>" align="left" alt="" /></a>
<h3><?php echo $row['caption']; ?></h3>
<p><?php echo $row['descr']; ?></p>
<p class="link"><a href="<?php echo $row['url']; ?>">Saiba mais »</a></p>
</div>
</li>
</ul>
<?php } ?>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<?php }
// #########################################################################
// Minimail
// #########################################################################
?>
<div class="habblet-container minimail" id="mail">
<div class="cbb clearfix blue ">
<h2 class="title">Minhas Mensagens</h2>
<div id="minimail">
<div class="minimail-contents">
<?php
$bypass = true;
$page = "inbox";
include('./minimail/loadMessage.php');
?>
</div>
<div id="message-compose-wait"></div>
<form style="display: none" id="message-compose">
<div>Para</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;">Escreva o nome do seu amigo</div>
<ul class="feed" style="display: none;"></ul>
</div>
</div>
<div>Assunto<br/>
<input type="text" style="margin: 5px 0" id="message-subject" class="message-text" maxlength="100" tabindex="2" />
</div>
<div>Mensagem<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évia</b><i></i></a>
<a href="#" class="new-button send"><b>Enviar</b><i></i></a>
</div>
</form>
</div>
<?php
$sql = mysql_query("SELECT * FROM messenger_friendships WHERE sender = '".$my_id."' OR receiver = '".$my_id."'") or die(mysql_error());
$count = mysql_num_rows($sql);
$sql = mysql_query("SELECT * FROM cms_minimail WHERE id = '".$my_id."' OR sender_id = '".$my_id."'") or die(mysql_error());
$mescount = mysql_num_rows($sql);
?>
<script type="text/javascript">
L10N.put("minimail.compose", "Escrever").put("minimail.cancel", "Cancelar")
.put("bbcode.colors.red", "Vermelho").put("bbcode.colors.orange", "Laranja")
.put("bbcode.colors.yellow", "Amarelo").put("bbcode.colors.green", "Verde")
.put("bbcode.colors.cyan", "Ciano").put("bbcode.colors.blue", "Azul")
.put("bbcode.colors.gray", "Cinza").put("bbcode.colors.black", "Preto")
.put("minimail.empty_body.confirm", "Tem certeza de que deseja enviar uma mensagem sem texto?")
.put("bbcode.colors.label", "Color").put("linktool.find.label", " ")
.put("linktool.scope.habbos", "Habbos").put("linktool.scope.rooms", "Salas")
.put("linktool.scope.groups", "Grupos").put("minimail.report.title", "Reportar Post para Moderadores");
L10N.put("date.pretty.just_now", "Alguns segundos");
L10N.put("date.pretty.one_minute_ago", "Atrás 1 minuto");
L10N.put("date.pretty.minutes_ago", "Atrás {0} minutos");
L10N.put("date.pretty.one_hour_ago", "Atrás 1 hora");
L10N.put("date.pretty.hours_ago", "Atrás {0} horas");
L10N.put("date.pretty.yesterday", "Ayer");
L10N.put("date.pretty.days_ago", "Atrás {0} días");
L10N.put("date.pretty.one_week_ago", "Atrás 1 semana");
L10N.put("date.pretty.weeks_ago", "Atrás {0} semanas");
new MiniMail({ pageSize: 10,
total: <?php echo $mescount; ?>,
friendCount: <?php echo $count; ?>,
maxRecipients: 50,
messageMaxLength: 20,
bodyMaxLength: 4096,
secondLevel: <?php if($count = 0){ echo "true"; }else{ echo "false"; } ?>});
</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php
// #########################################################################
// Procurar Habbos
// #########################################################################
?>
<div class="habblet-container ">
<div class="cbb clearfix default ">
<div class="box-tabs-container clearfix">
<h2>Procurar <?php echo $shortname; ?>s</h2>
<ul class="box-tabs">
<li id="tab-0-4-1" class="selected"><a href="#">Procurar <?php echo $shortname; ?>s</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-0-4-1-content">
<div class="habblet-content-info">
<a name="habbo-search">Digite aqui o nome do <?php echo $shortname; ?> que estás procurando</a>
</div>
<div id="habbo-search-error-container" style="display: none;"><div id="habbo-search-error" class="rounded rounded-red"></div></div>
<br clear="all"/>
<div id="avatar-habblet-list-search">
<input type="text" id="avatar-habblet-search-string"/>
<a href="#" id="avatar-habblet-search-button" class="new-button"><b>Procurar</b><i></i></a>
</div>
<br clear="all"/>
<div id="avatar-habblet-content">
<div id="avatar-habblet-list-container" class="habblet-list-container">
<ul class="habblet-list"></ul>
</div>
<script type="text/javascript">
L10N.put("habblet.search.error.search_string_too_long", "A palavra buscada é muito longa. Máximo 50 caracteres.");
L10N.put("habblet.search.error.search_string_too_short", "A palavra buscada é muito curta. Mínimo de 2 caracteres.");
L10N.put("habblet.search.add_friend.title", "Adicionar como amigo");
new HabboSearchHabblet(2, 30);
</script>
</div>
<script type="text/javascript">
Rounder.addCorners($("habbo-search-error"), 8, 8);
</script>
</div>
</div>
</div>
</div>
<?php
// #########################################################################
// Notícias
// #########################################################################
require_once('./data_classes/server-data.php_data_classes-news.php.php');
// #########################################################################
// Da Gerência
// #########################################################################
?>
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<div class="box-tabs-container clearfix">
<h2>Da Gerência</h2>
<ul class="box-tabs">
<li id="tab-1-3-1"><a href="#">Quartos</a><span class="tab-spacer"></span></li>
<li id="tab-1-3-2" class="selected"><a href="#">Grupos</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-1-3-1-content" style="display: none">
<div id="staffpicks-rooms-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list">
<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'room' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;
$roomsql = mysql_query("SELECT * FROM rooms WHERE id = '".$row['id_rec']."' LIMIT 1");
$roomrow = mysql_fetch_assoc($roomsql);
if(IsEven($i)){
$even = "even left";
} else {
$even = "even2";
}
$roomcount = $roomrow['users_now'] / $roomrow['users_max'] * 100;
if($roomcount == 99 || $roomcount > 99){
$rl = 5;
} elseif($roomcount > 65){
$rl = 4;
} elseif($roomcount > 32){
$rl = 3;
} elseif($roomcount > 0){
$rl = 2;
} elseif($roomcount < 1){
$rl = 1;
}
$getOwner = mysql_query("SELECT * FROM users WHERE id = '".$roomrow['owner']."'");
$owner = mysql_fetch_assoc($getOwner);
?>
<li class="<?php echo $even; ?> room-occupancy-<?php echo $rl; ?>" roomid="<?php echo $roomrow['id']; ?>">
<div>
<span class="room-name"><a href="../client?forwardId=2&roomId=<?php echo $roomrow['id']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $roomrow['id']; ?>', '<?php echo $roomrow['roomtype']; ?>'); return false;" target="85d327955e5fc804ac33675ef8d05e3c9d3ef7ed"><?php echo $roomrow['caption']; ?></a></span>
<span class="room-owner"><a href="/home/<?php echo $owner['username']; ?>"><?php echo $owner['username']; ?></a></span>
<p><?php echo $roomrow['description']; ?></p>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
<div id="tab-1-3-2-content" >
<div id="staffpicks-groups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols">
<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'group' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;
$groupsql = mysql_query("SELECT * FROM group_details WHERE id = '".$row['id_rec']."' LIMIT 1");
$grouprow = mysql_fetch_assoc($groupsql);
if(IsEven($i)){
$even = "even left";
} else {
$even = "even right";
}
?>
<li class="<?php echo $even; ?>" style="background-image: url(<?php echo $path; ?>/habbo-imaging/badge.php?badge=<?php echo $grouprow['badge']; ?>)">
<?php if($grouprow['roomid'] !== 0) { ?><a href="<?php echo $path; ?>/client?forwardId=2&roomId=<?php echo $grouprow['roomid']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $grouprow['roomid']; ?>', 'private'); return false;" target="9cf76b1ff4b99b02656456ee94e0271ab56272ee" class="group-room"></a><?php } ?>
<a class="item" href="./groups/<?php echo $grouprow['id']; ?>"><?php echo HoloText($grouprow['name']); ?></a>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<div class="habblet-container ">
<div class="cbb clearfix red ">
<h2 class="title"><span style="text-shadow: 0px 2px 0px #323232">Personalização</span></h2>
<div class="box-content">
<div style="text-align:center;">Não gostas do fundo atual? Troque-o por outro.</div><br />
<center><a href="javascript:void(0)" onclick="javascript:document.body.style .backgroundImage='url(http://3.bp.blogspot.com/_dsEG33PDaHw/S4A1JuFysnI/AAAAAAAAAKM/AJ1kNfl4Q44/s400/orange.png)'; document.body.style .backgroundRepeat='repeat'; document.body.style .backgroundColor='none';"><img style="width:40px;height:40px;" src="http://4.bp.blogspot.com/_dsEG33PDaHw/S4A2tyL2oXI/AAAAAAAAAK0/9NsvM2bvs-Y/s200/body-orange.jpg" /></a>
<a href="javascript:void(0)" onclick="javascript:document.body.style .backgroundImage='url(http://habboemotion.com/resource/images/website_backgrounds/38.gif)'; document.body.style .backgroundRepeat='repeat'; document.body.style .backgroundColor='none';"><img style="width:40px;height:40px;" src="http://habboemotion.com/resource/images/website_backgrounds/38.gif" /></a>
<br><a href="javascript:void(0)" onclick="javascript:document.body.style .backgroundImage='url(http://habboemotion.com/resource/images/website_backgrounds/bg_empty.gif)'; document.body.style .backgroundRepeat='repeat'; document.body.style .backgroundColor='none';"><img style="width:40px;height:40px;" src="http://habboemotion.com/resource/images/website_backgrounds/bg_empty.gif" /></a>
<a href="javascript:void(0)" onclick="javascript:document.body.style .backgroundImage='url(http://habboemotion.com/resource/images/website_backgrounds/backlarge.png)'; document.body.style .backgroundRepeat='repeat'; document.body.style .backgroundColor='none';"><img style="width:40px;height:40px;" src="http://habboemotion.com/resource/images/website_backgrounds/backlarge.png" /></a>
<br><a href="javascript:void(0)" onclick="javascript:document.body.style .backgroundImage='url(http://habboemotion.com/resource/images/website_backgrounds/bg_blue.gif)'; document.body.style .backgroundRepeat='repeat'; document.body.style .backgroundColor='none';"><img style="width:40px;height:40px;" src="http://habboemotion.com/resource/images/website_backgrounds/bg_blue.gif" /></a>
</div>
</div>
</div>
</div>
<?php require_once('./templates/community_ads.php'); ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php require_once('./templates/community_footer.php'); ?>
</div></div>
Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.