Erro de login da Index 22.04.13 22:59
Alguém ajuda? Como posso resolver isso?
http://www.4shared.com/rar/nK8AZ6j4/Index_100_funcional_1.html
Kash CMS: http://www.power-pixel.net/t39873-down-kashcms-v15-iis-xampp-cpanel-new-crypto
Tavares CMS: http://www.power-pixel.net/t39871-cmstavares-cms-v10-lotaria-lojas-de-emblemas-funcionando
Credit CMS: http://www.power-pixel.net/t39096-credit-cms
http://SEUSITEOUIP/quickregister/start
http://www.4shared.com/rar/nK8AZ6j4/Index_100_funcional_1.html
http://www.power-pixel.net/t36942-nova-index-e-register-do-habbocom
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Bem vindo ao nosso hotel!</title>
<meta name="viewport" content="width=device-width">
<script>
var andSoItBegins = (new Date()).getTime();
var habboPageInitQueue = [];
var habboStaticFilePath = "./web-gallery";
</script>
<link rel="shortcut icon" href="./web-gallery/images/v3/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic">
<link rel="stylesheet" href="./web-gallery/static/styles/v3_landing.css" type="text/css" />
<script src="./web-gallery/static/js/v3_landing_top.js" type="text/javascript"></script> <meta name="description" content="Entre, se divirta, faça amigos, seja feliz :P" />
<meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />
<script src="./web-gallery/static/js/13389159.js"></script>
<meta name="build" content="63-BUILD-FOR-PATCH-1591a - 04.03.2013 12:03 - com" />
</head>
<body>
<div id="overlay"></div>
<div id="change-password-form" class="overlay-dialog" style="display: none;">
<div id="change-password-form-container" class="clearfix form-container">
<h2 id="change-password-form-title" class="bottom-border">Esqueceu sua senha?</h2>
<div id="change-password-form-content" style="display: none;">
<form method="post" action="https://www.habbo.com/account/password/identityResetForm" id="forgotten-pw-form">
<input type="hidden" name="page" value="/?changePwd=true" />
<span>Seu e-mail:</span>
<div id="email" class="center bottom-border">
<input type="text" id="change-password-email-address" name="emailAddress" value="" class="email-address" maxlength="48"/>
<div id="change-password-error-container" class="error" style="display: none;">Por favor, insira um e-mail válido!</div>
</div>
</form>
<div class="change-password-buttons">
<a href="#" id="change-password-cancel-link">Cancelar</a>
<a href="#" id="change-password-submit-button" class="new-button"><b>Enviar e-mail</b><i></i></a>
</div>
</div>
<div id="change-password-email-sent-notice" style="display: none;">
<div class="bottom-border">
<span>Acabamos de lhe enviar um e-mail com uma nova senha :D</span>
<div id="email-sent-container"></div>
</div>
<div class="change-password-buttons">
<a href="#" id="change-password-change-link">Voltar</a>
<a href="#" id="change-password-success-button" class="new-button"><b>OK</b><i></i></a>
</div>
</div>
</div>
<div id="change-password-form-container-bottom" class="form-container-bottom"></div>
</div>
<script type="text/javascript">
function initChangePasswordForm() {
ChangePassword.init();
}
if (window.HabboView) {
HabboView.add(initChangePasswordForm);
} else if (window.habboPageInitQueue) {
habboPageInitQueue.push(initChangePasswordForm);
}
</script>
<header>
<div id="border-left"></div>
<div id="border-right"></div>
<div id="login-form-container">
<a href="#home" id="habbo-logo"></a>
<form action="/account/submit" method="post">
<div id="login-columns">
<div id="login-column-1">
<label for="credentials-email">E-mail</label>
<input tabindex="2" type="text" name="credentials.username" id="credentials-email">
<input tabindex="5" type="checkbox" name="_login_remember_me" id="credentials-remember-me">
<label for="credentials-remember-me" class="sub-label">Me manter online.</label>
</div>
<div id="login-column-2">
<label for="credentials-password">Senha</label>
<input tabindex="3" type="password" name="credentials.password" id="credentials-password">
<a href="#" id="forgot-password" class="sub-label">Esqueceu a sua senha?</a>
</div>
<div id="login-column-3">
<input type="submit" value="Login" style="margin: -10000px; position: absolute;">
<a href="#" tabindex="4" class="button" id="credentials-submit"><b></b><span>Logar-se</span></a>
</div>
<div id="login-column-4">
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
Cookie.erase("fbsr_183096284873");
FB.init({appId: '183096284873', status: true, cookie: true, xfbml: true});
if (window.habboPageInitQueue) {
// jquery might not be loaded yet
habboPageInitQueue.push(function() {
$(document).trigger("fbevents:scriptLoaded");
});
} else {
$(document).fire("fbevents:scriptLoaded");
}
};
window.assistedLogin = function(FBobject, optresponse) {
Cookie.erase("fbsr_183096284873");
FBobject.init({appId: 'COLOQUE O ID DO APP DE SEU FACE', status: true, cookie: true, xfbml: true});
permissions = 'user_birthday,email';
defaultAction = function(response) {
if (response.authResponse) {
fbConnectUrl = "/facebook?connect=true";
Cookie.erase("fbhb_val_183096284873");
Cookie.set("fbhb_val_183096284873", response.authResponse.accessToken);
Cookie.erase("fbhb_expr_183096284873");
Cookie.set("fbhb_expr_183096284873", response.authResponse.expiresIn);
window.location.replace(fbConnectUrl);
}
};
if (typeof optresponse == 'undefined')
FBobject.login(defaultAction, {scope:permissions});
else
FBobject.login(optresponse, {scope:permissions});
};
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol + 'https://connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
<a class="fb_button fb_button_large" onclick="assistedLogin(FB); return false;">
<span class="fb_button_text">Entrar pelo Facebook</span>
</a>
<div id="rpx-signin">
<a class="rpxnow" onclick="return false;" href="https://login.habbo.com/openid/v2/signin?token_url=http%3A%2F%2Fwww.habbo.com/rpx">Mais meios de conexão!</a>
</div> </div>
</div>
</form>
</div>
<script>
habboPageInitQueue.push(function() {
if (!LandingPage.focusForced) {
LandingPage.fieldFocus('credentials-email');
}
});
</script>
<div id="alerts">
<noscript>
<div id="alert-javascript-container">
<div id="alert-javascript-title">
Missing JavaScript support
</div>
<div id="alert-javascript-text">
Os JavaScripts estão desativados em seu navegador. Para continuar, você deve ativá-los ou baixar um navegarod mais recente.
</div>
</div>
</noscript>
<div id="alert-cookies-container" style="display:none">
<div id="alert-cookies-title">
Perdeu o suporte de coockies
</div>
<div id="alert-cookies-text">
Os coockies estão desativados em seu navegador. Para que possa jogar, ative seus coockies;
</div>
</div>
<script type="text/javascript">
</script>
</div>
<div id="top-bar-triangle"></div>
<div id="top-bar-triangle-border"></div>
</header>
<div id="content">
<ul>
<li id="home-anchor">
<div id="welcome">
<a href="#registration" class="button large" id="join-now-button"><b></b><span>Registre-se já!</span><span class="sub">É grátis</span></a>
<div id="slogan">
<h1>Bem vindo ao nosso hotel,</h1>
<p>um lugar para se divertir.</p>
<p><a id="tell-me-more-link" href="#">Continue lendo...</a></p>
</div>
</div>
<div id="carousel">
<div id="image1"></div>
<div id="image2"></div>
<div id="image3"></div>
<div id="tell-me-more">Criamos este hotel visando uma maior diversão para os nossos usuários. Assim, você pode: criar amigos, fazer e decorar quartos, participar de eventos e promoções entre outras milhares de possibilidades! Registre-se já! É de graça!</div>
</div>
<div id="floaters"></div>
</li>
<li id="registration-anchor">
<div id="registration-form">
<div id="registration-form-header">
<h2>Se registre para jogar:</h2>
<p>Basta completar todos os campos com informações verdadeiras!:</p>
</div>
<div id="registration-form-main">
<form id="register-new-user" autocomplete="off">
<input type="hidden" name="next" value="">
<div id="registration-form-main-left">
<label for="registration-birthday">Data de nascimento.</label>
<label for="registration-birthday" class="details">Usamos para recuperar a sua senha, caso você perca a mesma!</label>
<div id="registration-birthday">
<select name="registrationBean.month" id="registrationBean_month" class="dateselector"><option value="">Mês</option><option value="1">Janeiro</option><option value="2">Fevereiro</option><option value="3">Março</option><option value="4">Abril</option><option value="5">Maio</option><option value="6">Junho</option><option value="7">Julho</option><option value="8">Agosto</option><option value="9">Setembro</option><option value="10">Outubro</option><option value="11">Novembro</option><option value="12">Dezembro</option></select> <select name="registrationBean.day" id="registrationBean_day" class="dateselector"><option value="">Día</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select> <select name="registrationBean.year" id="registrationBean_year" class="dateselector"><option value="">Año</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option><option value="1929">1929</option><option value="1928">1928</option><option value="1927">1927</option><option value="1926">1926</option><option value="1925">1925</option><option value="1924">1924</option><option value="1923">1923</option><option value="1922">1922</option><option value="1921">1921</option><option value="1920">1920</option><option value="1919">1919</option><option value="1918">1918</option><option value="1917">1917</option><option value="1916">1916</option><option value="1915">1915</option><option value="1914">1914</option><option value="1913">1913</option><option value="1912">1912</option><option value="1911">1911</option><option value="1910">1910</option><option value="1909">1909</option><option value="1908">1908</option><option value="1907">1907</option><option value="1906">1906</option><option value="1905">1905</option><option value="1904">1904</option><option value="1903">1903</option><option value="1902">1902</option><option value="1901">1901</option><option value="1900">1900</option></select> </div>
<label for="registration-email">Email</label>
<label for="registration-email" class="details">Você precisa do seu email <b>para se logar</b> no site.. Por favor, insira um e-mail verdadeiro.</label>
<input type="email" name="registrationBean.email" id="registration-email" value="">
<label for="registration-password">Senha</label>
<label for="registration-password" class="details">A senha deve ter no mínimo <b>6 caracteres </b>e incluir <b>letras e números.</b></label>
<input type="password" name="registrationBean.password" id="registration-password" maxlength="32" value="">
</div>
<div id="registration-form-main-right">
<div id="captcha-container">
<label for="recaptcha_response_field">Captcha</label>
<label for="recaptcha_response_field" class="details">Insira as letras abaixo corretamente para continuar.</label>
<script src="./www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
<script>
habboPageInitQueue.push(function() {
RecaptchaUtil.showRecaptcha("captcha-container", "6Ldq9wMAAAAAAMJQFwQLP7dUJMvlTD57af88caoD")
});
</script>
<div id="captcha-image-container">
<div id="recaptcha_image"></div>
<div id="captcha-overlay"></div>
</div>
<p id="captcha-new" class="details"><a class="recaptcha-reload" href="#">Tentar novamente</a></p>
<input type="text" name="recaptcha_response_field" id="recaptcha_response_field">
</div>
<p class="checkbox-container" id="registration-tos">
<input type="checkbox" id="tos" name="registrationBean.termsOfServiceSelection" value="true">
<label for="tos" class="details checkbox">
Aceito os termos de contrato e de uso do hotel.
</label>
</p>
<p class="checkbox-container">
<input type="checkbox" id="registration-marketing" value="true" name="registrationBean.marketing">
<label for="registration-marketing" class="details checkbox">Me manter informado sobre tudo que acontece no hotel!</label>
</p>
<div class="submit-button-wrapper">
<a href="#" class="button large not-so-large register-submit"><b></b><span>Finalizar</span></a>
</div>
</div>
<div id="parent-email-container" style="display: none;">
<label for="parent-email">E-mail diferencial</label>
<label for="parent-email" class="details">Precisamos também de um e-mail reserva seu, para se algo de errado ocorrer</label>
<input type="email" id="parent-email" name="registrationBean.parentEmail" value="">
<div class="submit-button-wrapper">
<a href="#" class="button large not-so-large register-submit"><b></b><span>OK</span></a>
</div>
</div>
</form>
</div>
</div>
<div id="magnifying-glass"></div>
<div id="sail"></div>
</li>
</ul>
</div>
<footer>
<div id="age-recommendation"></div>
<div id="footer-content">
<div id="footer"><a href="https://help.habbo.com.br/home">Suporte</a> l <a href="https://www.power-pixel.net/">Power Pixel Fórum</a> l <a href="https://www.power-pixel.net/u26499" target="_new">Desenvolvedor</a> l <a href="www.victoreyer.ueuo.com">Parceiro</a> l <a href="/staff.php" target="_new">Equipe do Hotel</a> l <a href="mailto:totoeyer@hotmail.com" target="_new">Denunciar erro</a></div>
<div id="copyright"> 2013- Este hotel não pertence a Sulake. Todos os direitos reservados. Créditos a Victor Motta Eyer.</div>
</div>
<div id="sulake-logo"><a href="http://www.sulake.com/"></a></div>
</footer>
<script src="./web-gallery/static/js/v3_landing_bottom.js" type="text/javascript"></script>
<!--[if IE]><script src="./web-gallery/static/js/v3_ie_fixes.js" type="text/javascript"></script>
<![endif]-->
<script type="text/javascript">
var cookieEnabled = (navigator.cookieEnabled) ? true : false;
if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled)
{
document.cookie="testcookie";
cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false;
}
if(!cookieEnabled)
{
$('#alert-cookies-container').show();
}
var rpxJsHost = (("https:" == document.location.protocol) ? "https://" : "http://static.");
document.write(unescape("%3Cscript src='" + rpxJsHost +
"rpxnow.com/js/lib/rpx.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
RPXNOW.overlay = false;
RPXNOW.language_preference = 'en';
RPXNOW.flags = 'show_provider_list';
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-448325-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
[code][/code]
<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
session_start();
if(!session_is_registered(username)){
if(isset($_POST['username']) && isset($_POST['password'])){
$username = FilterText($_POST['username']);
$password = FilterText(HoloHash($_POST['password'], $username));
$password2 = FilterText(HoloHashMD5($_POST['password'], $username));
if(empty($username) || empty($password)){
$login_error = "Por favor, introduza seu email e senha para se conectar.";
} else {
$sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' AND password = '".$password."' OR username = '".$username."' AND password = '".$password2."' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($sql) < 1){
$login_error = "Nome ou Senha Incorreto.";
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$ban = mysql_query("SELECT * FROM bans WHERE value = '".$username."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($ban) < 1){
mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."' WHERE username = '".$username."'");
$_SESSION['username'] = $username;
$_SESSION['password'] = $password2;
if($_POST['_login_remember_me'] == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/");
}
header("location: $path/me"); exit;
} else {
$bandata = mysql_fetch_assoc($ban);
$timestamp = time();
if($bandata['expire'] > $timestamp){
$login_error = "Você está banido e a razão é: \"" . $bandata['reason'] . "\" e acaba em: " . date('d.m.Y - H:i:s', $bandata['expire']) . ".";
} else {
mysql_query("DELETE FROM bans WHERE value = '".$username."' AND bantype = 'user' OR value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1") or die(mysql_error());
mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."' WHERE username = '".$username."'");
$_SESSION['username'] = $username;
$_SESSION['password'] = $password2;
if($_POST['_login_remember_me'] == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/");
}
header("location: $path/me"); exit;
}
}
}
}
}
$body_id = "index";
$pagename = "Crie seu $shortname, construa seu Quarto, converse e faça novos amigos.";
include('./templates/login_subheader.php');
?>
<style type="text/css">
body {
background-color: #000000;
}
#footer .footer-links { color: #666666; }
#footer .footer-links a { color: #ffffff; }
#footer .copyright { color: #666666; }
#footer #compact-tags-container span, #footer #compact-tags-container a { color: #333333; }
</style>
<body id="frontpage">
<div id="overlay"></div>
<div id="site-header">
<form id="loginformitem" name="loginformitem" action="<?php echo $path; ?>?name=<?php echo FilterText($_POST['username']); ?>&password=true"
method="post">
<?php if(isset($login_error)){ ?>
<div id="loginerrorfieldwrapper">
<div id="loginerrorfield">
<div><?php echo $login_error; ?></div>
</div> </div> <?php } ?>
<div style="clear: both;"></div>
<div id="site-header-content">
<div id="habbo-logo"></div>
<div id="login-form">
<div id="login-form-email">
<label for="login-username"
class="login-text">Nome</label>
<input tabindex="3" type="text" class="login-field" name="username" id="login-username"
value="" maxlength="48"/>
<input tabindex="6" type="checkbox" name="_login_remember_me" id="login-remember-me"
value="true"/>
<label for="login-remember-me">Mantenha-me conectado</label>
<div id="landing-remember-me-notification" class="bottom-bubble" style="display:none;">
<div class="bottom-bubble-t"><div></div></div>
<div class="bottom-bubble-c">
Ativando isto você se manterá logado no <?php echo $shortname; ?> Hotel até você clicar em "Sair".
</div>
<div class="bottom-bubble-b"><div></div></div>
</div>
</div>
<div id="login-form-password">
<label for="login-password" class="login-text">Senha</label>
<input tabindex="4" type="password" class="login-field" name="password"
id="login-password" maxlength="32"/>
<div id="login-forgot-password">
<a href="mailto:suporte@haidhotel.tk"
id="forgot-password"><span>Esqueceu a senha?</span></a>
</div>
</div>
<div id="login-form-submit">
<input type="submit" value="Login" class="login-top-button"
id="login-submit-button"/>
<a href="#" tabindex="5"f
id="login-submit-new-button"><span>Login</span></a>
</div>
<script type="text/javascript">
HabboView.add(function() {
fieldFocus('login-username');
popdownSetupRun();
});
HabboView.add(function() {
LandingPage.init();
});
</script>
</div>
</form>
<div id="rpx-login">
<div>
<div id="fb-root"></div>
<script type="text/javascript">
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol + 'https://connect.facebook.net/pt_BR/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script><script type="text/javascript">
window.fbAsyncInit = function() {
Cookie.erase("fbs_157382664122");
FB.init({appId: '157382664122', status: true, cookie: true, xfbml: true});
$(document).fire("fbevents:scriptLoaded");
};
window.assistedLogin = function(FBobject, optresponse) {
Cookie.erase("fbs_157382664122");
FB.init({appId: '157382664122', status: true, cookie: true, xfbml: true});
permissions = 'user_birthday,email';
defaultAction = function(response) {
fbConnectUrl = "/facebook";
if (response.session) {
window.location.replace(fbConnectUrl);
}
};
if (typeof optresponse == 'undefined')
FBobject.login(defaultAction, {perms:permissions});
else
FBobject.login(optresponse, {perms:permissions});
};
</script>
<a class="fb_button fb_button_large" onClick="http://facebook.com">
<span class="fb_button_text">Login pelo Facebook</span>
</a>
</div>
<div>
<div id="rpx-signin">
<a class="rpxnow" onClick="return false;" href="http://facebook.com/">Outras formas de login</a>
</div>
</div>
</div>
<script type="text/javascript">
HabboView.add(function() {
fieldFocus('login-username');
popdownSetupRun();
});
HabboView.add(function() {
LandingPage.init();
});
</script>
</div>
</form>
</div>
<div id="fp-container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">
<div style="width: 890px; margin: 0 auto">
<div id="tagline">Você não imagina o que acontece neste Hotel Maluco!</div>
</div>
<div id="frontpage-image-container">
<div id="join-now-button-container">
<div id="join-now-button-wrapper-fb">
<div class="join-now-alternative"> </div>
<div class="join-now-button">
<a class="join-now-link" href="#" onclick="assistedLogin(FB); return false;">
<span class="join-now-text-big">Usa <?php echo $shortname; ?></span>
<span class="join-now-text-small">con<span class="fbword">Facebook</span></span>
</a>
<span class="close"></span>
</div>
<div class="join-now-alternative">
<a id="register-link-fb" href="<?php echo PATH; ?>/quickregister/start" onclick="startRegistration(this); return false;">
o crea una <?php echo $shortname; ?> cuenta
</a>
</div>
</div>
<div id="join-now-button-wrapper">
<div class="join-now-alternative">
<a href="<?php echo PATH; ?>/quickregister/start" class="newusers" onclick="startRegistration(this); return false;"><b>Caro visitante</b>,<span style="color: #8f8f8f;">clique aqui:</span></a>
</div>
<div class="join-now-button">
<a class="join-now-link" id="register-link" href="/quickregister/start" onclick="startRegistration(this); return false;">
<span class="join-now-text-big">Entre agora</span>
<span class="join-now-text-small">de graça</span>
</a>
<span class="close"></span>
</div>
<div class="join-now-alternative">
<a class="fbicon" href="#" onclick="assistedLogin(FB); return false;">
Entre com Facebook
</a>
</div>
</div>
</div>
<script type="text/javascript">
function startRegistration(elem) {
targetUrl = elem.href;
if (typeof targetUrl == "undefined") {
targetUrl = "<?php echo PATH; ?>/quickregister/start";
}
window.location.href = targetUrl;
}
</script>
<div id="people-inside">
<b><span><span class="stats-fig"><?php echo $online_count; ?></span>pessoas online</span></b>
<i></i>
</div>
<a href="./quickregister/start" id="frontpage-image"
style="background-image: url('./web-gallery/v2/images/frontpage/fp_new.png')"></a>
</div>
</div>
<?php require_once('./templates/login_footer.php');?>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<?php
} else {
header("location:../me");
}
?>
<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
session_start();
if(isset($_GET['registerCancel']) && $_GET['registerCancel'] == "true"){
session_unset();
}
if(!session_is_registered(username)){
if(isset($_POST['username']) && isset($_POST['password'])){
$username = FilterText($_POST['username']);
$password = HoloHash($_POST['password'], $username);
$password2 = HoloHashMD5($_POST['password'], $username);
if(empty($username) || empty($_POST['password'])){
$login_error = "Por favor, preencha todos os campos!";
} else {
$sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' AND password = '".$password."' OR username = '".$username."' AND password = '".$password2."' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($sql) < 1){
$login_error = "Nome de usuário ou senha incorreta";
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$ban = mysql_query("SELECT * FROM bans WHERE value = '".$username."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($ban) < 1){
mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."' WHERE username = '".$username."'");
$_SESSION['username'] = $username;
$_SESSION['password'] = $password2;
if($_POST['_login_remember_me'] == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/");
}
header("location: $path/me"); exit;
} else {
$bandata = mysql_fetch_assoc($ban);
$timestamp = time();
if($bandata['expire'] > $timestamp){
$login_error = "Você está banido! A razão para a sua proibição é \"" . $bandata['reason'] . "\" e dura até " . date('d.m.Y - H:i:s', $bandata['expire']) . ".";
} else {
mysql_query("DELETE FROM bans WHERE value = '".$username."' AND bantype = 'user' OR value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1") or die(mysql_error());
mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."' WHERE username = '".$username."'");
$_SESSION['username'] = $username;
$_SESSION['password'] = $password2;
if($_POST['_login_remember_me'] == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/");
}
header("location: $path/me"); exit;
}
}
}
}
}
$body_id = "index";
$pagename = "Crie seu $shortname, construa seu Quarto, converse e faça novos amigos.";
include('./templates/login_subheader.php');
?>
<style type="text/css">
body {
background-color: #000000;
}
#footer .footer-links { color: #666666; }
#footer .footer-links a { color: #ffffff; }
#footer .copyright { color: #666666; }
#footer #compact-tags-container span, #footer #compact-tags-container a { color: #333333; }
</style>
<body id="frontpage">
<div id="overlay"></div>
<div id="site-header">
<form id="loginformitem" name="loginformitem" action="<?php echo $path; ?>?name=<?php echo FilterText($_POST['username']); ?>&password=true"
method="post">
<?php if(isset($login_error)){ ?>
<div id="loginerrorfieldwrapper">
<div id="loginerrorfield">
<div><?php echo $login_error; ?></div>
</div> </div> <?php } ?>
<div style="clear: both;"></div>
<div id="site-header-content">
<div id="habbo-logo"></div>
<div id="login-form">
<div id="login-form-email">
<label for="login-username"
class="login-text">Nome</label>
<input tabindex="3" type="text" class="login-field" name="username" id="login-username"
value="" maxlength="48"/>
<input tabindex="6" type="checkbox" name="_login_remember_me" id="login-remember-me"
value="true"/>
<label for="login-remember-me">Mantenha-me conectado</label>
<div id="landing-remember-me-notification" class="bottom-bubble" style="display:none;">
<div class="bottom-bubble-t"><div></div></div>
<div class="bottom-bubble-c">
Ativando isto você se manterá logado no <?php echo $shortname; ?> Hotel até você clicar em "Sair".
</div>
<div class="bottom-bubble-b"><div></div></div>
</div>
</div>
<div id="login-form-password">
<label for="login-password" class="login-text">Senha</label>
<input tabindex="4" type="password" class="login-field" name="password"
id="login-password" maxlength="32"/>
<div id="login-forgot-password">
<a href="mailto:suporte@haidhotel.tk"
id="forgot-password"><span>Esqueceu a senha?</span></a>
</div>
</div>
<div id="login-form-submit">
<input type="submit" value="Login" class="login-top-button"
id="login-submit-button"/>
<a href="#" tabindex="5" id="login-submit-new-button"><span>Login</span></a>
</div>
<script type="text/javascript">
HabboView.add(function() {
fieldFocus('login-username');
popdownSetupRun();
});
HabboView.add(function() {
LandingPage.init();
});
</script>
</div>
</form>
<div id="rpx-login">
<div>
<div id="fb-root"></div>
<script type="text/javascript">
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol + 'https://connect.facebook.net/pt_BR/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script><script type="text/javascript">
window.fbAsyncInit = function() {
Cookie.erase("fbs_157382664122");
FB.init({appId: '157382664122', status: true, cookie: true, xfbml: true});
$(document).fire("fbevents:scriptLoaded");
};
window.assistedLogin = function(FBobject, optresponse) {
Cookie.erase("fbs_157382664122");
FB.init({appId: '157382664122', status: true, cookie: true, xfbml: true});
permissions = 'user_birthday,email';
defaultAction = function(response) {
fbConnectUrl = "/facebook";
if (response.session) {
window.location.replace(fbConnectUrl);
}
};
if (typeof optresponse == 'undefined')
FBobject.login(defaultAction, {perms:permissions});
else
FBobject.login(optresponse, {perms:permissions});
};
</script>
<a class="fb_button fb_button_large" onClick="http://facebook.com">
<span class="fb_button_text">Login pelo Facebook</span>
</a>
</div>
<div>
<div id="rpx-signin">
<a class="rpxnow" onClick="return false;" href="http://facebook.com/">Outras formas de login</a>
</div>
</div>
</div>
<script type="text/javascript">
HabboView.add(function() {
fieldFocus('login-username');
popdownSetupRun();
});
HabboView.add(function() {
LandingPage.init();
});
</script>
</div>
</form>
</div>
<div id="fp-container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">
<div style="width: 890px; margin: 0 auto">
<div id="tagline">Você não imagina o que acontece neste Hotel Maluco!</div>
</div>
<div id="frontpage-image-container">
<div id="join-now-button-container">
<div id="join-now-button-wrapper-fb">
<div class="join-now-alternative"> </div>
<div class="join-now-button">
<a class="join-now-link" href="#" onclick="assistedLogin(FB); return false;">
<span class="join-now-text-big">Usa <?php echo $shortname; ?></span>
<span class="join-now-text-small">con<span class="fbword">Facebook</span></span>
</a>
<span class="close"></span>
</div>
<div class="join-now-alternative">
<a id="register-link-fb" href="<?php echo PATH; ?>/quickregister/start" onclick="startRegistration(this); return false;">
o crea una <?php echo $shortname; ?> cuenta
</a>
</div>
</div>
<div id="join-now-button-wrapper">
<div class="join-now-alternative">
<a href="<?php echo PATH; ?>/quickregister/start" class="newusers" onclick="startRegistration(this); return false;"><b>Caro visitante</b>,<span style="color: #8f8f8f;">clique aqui:</span></a>
</div>
<div class="join-now-button">
<a class="join-now-link" id="register-link" href="/quickregister/start" onclick="startRegistration(this); return false;">
<span class="join-now-text-big">Entre agora</span>
<span class="join-now-text-small">de graça</span>
</a>
<span class="close"></span>
</div>
<div class="join-now-alternative">
<a class="fbicon" href="#" onclick="assistedLogin(FB); return false;">
Entre com Facebook
</a>
</div>
</div>
</div>
<script type="text/javascript">
function startRegistration(elem) {
targetUrl = elem.href;
if (typeof targetUrl == "undefined") {
targetUrl = "<?php echo PATH; ?>/quickregister/start";
}
window.location.href = targetUrl;
}
</script>
<div id="people-inside">
<b><span><span class="stats-fig"><?php echo $online_count; ?></span>pessoas online</span></b>
<i></i>
</div>
<a href="./quickregister/start" id="frontpage-image"
style="background-image: url('./web-gallery/v2/images/frontpage/fp_new.png')"></a>
</div>
</div>
<?php require_once('./templates/login_footer.php');?>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<?php
} else {
header("location:../me");
}
?>
http://www.power-pixel.net/t40888-index-habbo-br-botao-login-funcionando
Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.