<?php
header('Content-Type: text/html; charset=iso-8859-1');
require_once ('data_classes/server-data.php_data_classes-core.php.php');
$loginto="site-ref.php";
require_once ('templates/login.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="NOODP">
<title>Faça amigos, entre na diversão, fique famoso! - <?php echo $hotelname; ?></title>
<!--[if (lte IE 9)|(IEMobile)]><script>window.location = 'http://<?php echo $site; ?>/upgrade/';</script> <!--<![endif]-->
<meta name="apple-itunes-app" content="app-id=794866182">
<meta name="fragment" content="!">
<meta name="description" content="undefined">
<meta name="revision" content="3caf2ae">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="prerender-status-code" content="200">
<link rel="stylesheet" href="http://<?php echo $akamaihd; ?>/habbo-web/am/app.css">
<link rel="shortcut icon" href="http://<?php echo $akamaihd; ?>/habbo-web/am/assets/images/favicon.ico">
<link rel="shortcut icon" href="http://<?php echo $akamaihd; ?>/habbo-web/am/assets/images/app_icon-196x196.png">
<link rel="apple-touch-icon" href="http://<?php echo $akamaihd; ?>/habbo-web/am/assets/images/app_icon-60x60-precomposed.png">
<link rel="apple-touch-icon" href="http://<?php echo $akamaihd; ?>/habbo-web/am/assets/images/app_icon-76x76-precomposed.png">
<link rel="apple-touch-icon" href="http://<?php echo $akamaihd; ?>/habbo-web/am/assets/images/app_icon-120x120-precomposed.png">
<link rel="apple-touch-icon" href="http://<?php echo $akamaihd; ?>/habbo-web/am/assets/images/app_icon-152x152-precomposed.png">
<link href="//fonts.googleapis.com/css?family=Ubuntu:regular,bold|Ubuntu+Condensed:lighter,regular,bold" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://www.google-analytics.com/plugins/ua/linkid.js"></script>
<script src="//www.google-analytics.com/analytics.js"></script>
<script src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.min.js"></script>
</head>
<?php if(!$logged_in){ ?>
<body>
<div id="fb-root" class=" fb_reset">
<div style="position: absolute; top: -10000px; height: 0px; width: 0px;">
<div>
</div>
</div>
<div style="position: absolute; top: -10000px; height: 0px; width: 0px;">
<div>
<iframe name="fb_xdm_frame_https" frameborder="0" id="fb_xdm_frame_https" title="Facebook Cross Domain Communication Frame" tabindex="-1" src="https://s-static.ak.facebook.com/connect/xd_arbiter/KvoNGODIqPG.js?version=41#channel=f5f529f54&origin=https%3A%2F%2Fwww.habbo.com" style="border: none;"></iframe>
</div>
</div>
</div>
<section class="content">
<div>
<div class="header header--large">
<div class="header__background">
<div class="header__top sticky-header sticky-header--top">
<div class="header__wrapper wrapper">
<div class="header__top__content">
<div>
<button class="header__toggle">Login</button>
<ul class="header__login-social login-social">
<li class="login-social__item">
<a class="login-social__link login-social__link--facebook"></a>
</li>
</ul>
<div class="header__login-form ng-hide">
<form method="post" class="login-form ng-pristine ng-valid ng-valid-email">
<fieldset class="login-form__fieldset">
<input name="credentials_username" id="credentials-email" type="email" value="<?php if(isset($_COOKIE['username'])) echo $_COOKIE['username']; ?>" placeholder="Email" class="login-form__input ng-pristine ng-valid ng-valid-email ng-touched">
</fieldset>
<fieldset class="login-form__fieldset">
<input name="credentials_password" type="password" id="credentials-password" value="<?php if(isset($_COOKIE['password'])) echo $_COOKIE['password']; ?>" placeholder="Senha" class="login-form__input ng-pristine ng-untouched ng-valid">
<div class="login-form__helper"><a href="#" data-toggle="modal" data-target="
#forgotten">Esqueci a minha senha</a></div>
</fieldset>
<ul class="login-social">
<li class="login-social__item">
<a class="login-social__link login-social__link--facebook"></a>
</li>
<li class="login-social__item">
<a href="https://ex.habbo.com/" class="login-social__link login-social__link--google"></a>
</li>
<li class="login-social__item">
<a href="https://ex.habbo.com/" class="login-social__link login-social__link--yahoo"></a>
</li>
<li class="login-social__item">
<a href="https://ex.habbo.com/" class="login-social__link login-social__link--twitter"></a>
</li>
<li class="login-social__item">
<a href="https://ex.habbo.com/" class="login-social__link login-social__link--microsoft"></a>
</li>
</ul>
<button type="submit" class="login-form__button">Vamos lá!</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="header__content">
<section class="register-banner">
<div class="register-banner__hotel"></div>
<div class="register-banner__wrapper">
<div class="register-banner__register">
<h1 class="register-banner__logo"><?php echo $hotelname; ?></h1>
<h3 class="register-banner__title">Um lugar novo com pessoas incríveis</h3>
<a href="/registration" class="register-banner__button">Entre agora!</a></div>
</div>
</section>
</div>
<div>
<header>
<div class="wrapper">
<a href="/" class="header__habbo__logo">
<h1 class="header__habbo__name"><?php echo $hotelname; ?></h1>
</a>
</div>
</header>
<nav class="navigation">
<div class="navigation__wrapper">
<ul class="navigation__menu">
<li class="navigation__menu__item">
<a href="/" class="navigation__link navigation__link--home navigation__link--active">Home</a></li>
<li class="navigation__menu__item">
<a href="/community" class="navigation__link navigation__link--community">Comunidade</a></li>
<li class="navigation__menu__item">
<a href="/playing-habbo" class="navigation__link navigation__link--playing-habbo">Jogando <?php echo $hotelname; ?></a></li>
<li class="navigation__menu__item navigation__menu__item--aside">
<a class="navigation__login navigation__login--hidden">Login</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
<section>
<div class="tabs ng-hide">
<div class="tabs__wrapper">
<div class="tabs__toggle">
<div class="tabs__toggle__aligner">
<div class="tabs__toggle__title">Notícias</div>
</div>
</div>
<ul class="tabs__menu ng-hide">
<li class="tabs__menu__item">
<a class="tabs__link tabs__link--active" href="/">Notícias</a>
</li>
</ul>
</div>
</div>
<div class="wrapper">
<section>
<div>
</div>
</section>
<?php }else{ ?>
<body>
<div id="fb-root" class=" fb_reset">
<div style="position: absolute; top: -10000px; height: 0px; width: 0px;">
<div>
<iframe name="fb_xdm_frame_https" frameborder="0" id="fb_xdm_frame_https" title="Facebook Cross Domain Communication Frame" tabindex="-1" src="https://s-static.ak.facebook.com/connect/xd_arbiter/KvoNGODIqPG.js?version=41#channel=f3ff58c238&origin=https%3A%2F%2Fwww.habbo.com" style="border: none;"></iframe>
</div>
</div>
<div style="position: absolute; top: -10000px; height: 0px; width: 0px;">
<div>
</div>
</div>
</div>
<section class="content">
<div>
<div class="header header--small">
<div class="header__background">
<div class="header-ad wrapper">
<div class="header-ad__banner habbo-web-ads" translation="Anúncios de terceiros">
<iframe scrolling="no" src="https://images.habbo.com/habbo-web-ads//header/en.html"></iframe>
</div>
</div>
<div class="header__hotel"></div>
<header>
<div class="header__wrapper wrapper">
<a href="/" class="header__habbo__logo">
<h1 class="header__habbo__name"><?php echo $hotelname; ?></h1>
</a>
<div class="header__user-menu">
<div class="user-menu">
<div class="user-menu__header__wrapper">
<div class="user-menu__avatar__wrapper">
<a href="http://<?php echo $site; ?>/profile/<?php echo $name; ?>">
<img width="54" height="62" size="bighead" class="user-menu__avatar" alt="<?php echo $name; ?>" src="https://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&headonly=1&size=b&gesture=sml&direction=2&head_direction=2&action=std"></div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<nav class="navigation">
<div class="navigation__wrapper">
<ul class="navigation__menu">
<li class="navigation__menu__item">
<a href="/" class="navigation__link navigation__link--home navigation__link--active">Home</a></li>
<li class="navigation__menu__item">
<a href="/community" class="navigation__link navigation__link--community">Comunidade</a></li>
<li class="navigation__menu__item">
<a href="/playing-habbo" class="navigation__link navigation__link--playing-habbo">Jogando <?php echo $hotelname; ?></a></li>
<li class="navigation__menu__item navigation__menu__item--aside">
</li>
<li class="navigation__menu__item navigation__menu__item--aside">
<a href="/hotel" class="hotel-button--navigation navigation__link--hotel hotel-button">
<span class="hotel-button__text">Hotel</span>
</a>
</li>
<li class="navigation__menu__item navigation__menu__item--aside">
</li>
</ul>
</div>
</nav>
<div class="wrapper"></div>
</div>
</div>
</div>
<section>
<div class="tabs">
<div class="tabs__wrapper">
<div class="tabs__toggle">
<div class="tabs__toggle__aligner">
<div class="tabs__toggle__title">Notícias</div>
</div>
</div>
<ul class="tabs__menu ng-hide">
<li class="tabs__menu__item">
<a class="tabs__link tabs__link--active" href="/">Notícias</a></li>
<li class="tabs__menu__item">
<a class="tabs__link" href="/hall">Hall da Fama</a></li>
<li class="tabs__menu__item">
<a class="tabs__link" href="/settings">Configurações</a></li>
<li class="tabs__menu__item">
<a class="tabs__link" href="/logout?=<?php echo $myrow['password']; ?><?php echo $myrow ['last_online']; ?>">Sair</a></li><?php if($user_rank > 4 && $logged_in == true){ ?><li class="tabs__menu__item">
<a target="_blank" class="shop-footer__link" href="/admin">Painel de Controle</a></li><?php } ?>
</ul>
</div>
</div>
<div class="wrapper">
<section>
<div>
</div>
</section>
<?php } ?>
<section>
<h2>Últimas notícias</h2>
<?php require_once ('templates/community_news.php'); ?>
</section>
</div>
</section>
<div class="footer__push"></div>
</section>
<?php require_once ('templates/community_footer.php'); ?>
<script src="http://<?php echo $akamaihd; ?>/habbo-web/am/scripts.js"></script>
</body>
</html>
<?php require_once ('templates/modal_forgotten.php'); ?>