alguem ajuda ae não consigo fazer minha index igual a do habbo 2013 funfar o login alguem ajuda :s 11.05.13 0:10
alguem ajuda ae fazendo o favor :s[b]
http://www.power-pixel.net/t40888-index-habbo-br-botao-login-funcionando
<?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 = "Você deve digitar sua senha para logar!";
} 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ê foi banido por: \"" . $bandata['reason'] . "\" e termina 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 = "iHabbo Hotel | Um hotel sem igual!";
?>
<!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>iHabbo Hotel | Sua diversão se encontra aqui, se hospede em nosso hotel! </title>
<meta name="viewport" content="width=device-width">
<script>
var andSoItBegins = (new Date()).getTime();
var habboPageInitQueue = [];
var habboStaticFilePath = "https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1635/web-gallery";
</script>
<link rel="shortcut icon" href="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1635/web-gallery/v2/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="/css/v3_landing.css" type="text/css" />
<script src="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1635/web-gallery/static/js/v3_landing_top.js" type="text/javascript"></script> <meta name="description" content="Check into the world's largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more..." />
<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="//cdn.optimizely.com/js/13389159.js"></script>
<meta name="build" content="63-BUILD2032 - 25.03.2013 11:12 - com" />
<meta name="csrf-token" content="8e414cca00"/>
</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 a 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>Digite o seu endereço de email:</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 endereço de e-mail correto</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>Ei, acabamos de enviar um email com um link para que você altere sua senha.<br>
<br>
NOTE! Remember to check your "junk" folder too!</span>
<div id="email-sent-container"></div>
</div>
<div class="change-password-buttons">
<a href="#" id="change-password-change-link">Back</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="?name=&password=true" method="post">
<div id="login_username"> <div id="login-column-1">
<label for="login-username">Usuário</label>
<input type="text" name="username" style="width:197px"; onclick="toggle('ledenlijstpb_box');" autocomplete="on" /> </div>
<div id="login-column-2">
<label for="login-password">Senha</label>
<input type="password" name="password" style="width: 126px"; /> <a href="#" id="forgot-password" class="sub-label"></a>
</div>
<div id="login-column-3">
<input type="submit" value="Login" position: absolute;">
</div>
<div id="login-column-4">
<div id="fb-root"></div>
<a class="fb_button fb_button_large" onclick="assistedLogin(FB); return false;">
<span class="fb_button_text"><?php echo $online_count; ?> usuários onlines.</span>
</a>
</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">
Falta suporte a JavaScript
</div>
<div id="alert-javascript-text">
Javascript está desativado em seu navegador. Por favor habilite JavaScript ou atualize para um navegador compatível com JavaScript para usar Pomba :)
</div>
</div>
</noscript>
<div id="alert-cookies-container" style="display:none">
<div id="alert-cookies-title">
Falta suporte para cookies
</div>
<div id="alert-cookies-text">
Os cookies estão desativados em seu navegador. Por favor habilite os cookies de usar Pomba.
</div>
</div>
<script type="text/javascript">
document.cookie = "habbotestcookie=supported";
var cookiesEnabled = document.cookie.indexOf("habbotestcookie") != -1;
if (cookiesEnabled) {
var date = new Date();
date.setTime(date.getTime()-24*60*60*1000);
document.cookie="habbotestcookie=supported; expires="+date.toGMTString();
} else {
if (window.habboPageInitQueue) {
// jquery might not be loaded yet
habboPageInitQueue.push(function() {
$('#alert-cookies-container').show();
});
} else {
$('alert-cookies-container').show();
}
}
</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="/quickregister/start" class="button large" id="join-now-button"><b></b><span>Registre-se</span><span class="sub">(é gratis)</span></a>
<div id="slogan">
<h1>Boas vindas ao iHabbo Hotel!</h1>
<p>Seja mais um cliente do nosso hotel, sua hospedagem é importante!</p>
</div>
</div>
<div id="carousel">
<div id="image1"></div>
<div id="image2"></div>
<div id="image3"></div>
<div id="tell-me-more">O iHabbo <Script Language='Javascript'>
// Copyright 2013 - Anti Plagio | MopedEdition
<!--
document.write(unescape('%48%6F%74%65%6C%20%E9%20%75%6D%20%70%72%6F%6A%65%74%6F%20%64%6F%20%4D%6F%70%65%64%45%64%69%74%69%6F%6E%20%70%61%72%61%20%72%65%61%6C%69%7A%61%72%20%75%6D%20%6A%6F%67%6F%20%74%6F%74%61%6C%6D%65%6E%74%65%20%67%72%E1%74%69%73%20%70%61%72%61%20%61%20%64%69%76%65%72%73%E3%6F%20%64%65%20%74%6F%64%6F%73%2E%20%54%65%6D%6F%73%20%6F%20%66%6F%63%6F%20%64%61%20%6F%72%67%61%6E%69%7A%61%E7%E3%6F%20%65%6D%20%6E%6F%73%73%6F%20%68%6F%74%65%6C%2C%20%70%75%6E%69%E7%F5%65%73%20%73%E3%6F%20%72%65%61%6C%69%7A%61%64%61%73%2E%20%45%6E%74%E3%6F%20%72%65%73%70%65%69%74%65%20%6E%6F%73%73%61%73%20%72%65%67%72%61%73%2C%20%63%6C%69%71%75%65%20%65%6D%20%22%52%45%47%49%53%54%52%45%2D%53%45%22%20%70%61%72%61%20%73%65%20%72%65%67%69%73%74%72%61%72%20%6E%6F%20%6E%6F%73%73%6F%20%62%61%6E%63%6F%20%64%65%20%64%61%64%6F%73%20%64%6F%20%68%6F%74%65%6C%2E%20%45%73%74%65%20%68%6F%74%65%6C%20%6E%E3%6F%20%66%61%7A%20%70%61%72%74%65%20%64%61%20%65%6D%70%72%65%73%61%20%53%75%6C%61%6B%65%20%4F%79%2E'));
//-->
</Script></div>
</div>
<div id="floaters"></div>
</li>
<li id="registration-anchor">
<div id="registration-form" class="hide-captcha">
<div id="registration-form-header">
<h2>User ID</h2>
<p>Fill in these details to begin:</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">Birthdate</label>
<label for="registration-birthday" class="details">Vamos usar isso para restaurar sua conta se algum dia perder acesso. Sua data de nascimento nunca serão compartilhados publicamente.</label>
<div id="registration-birthday">
<select name="registrationBean.month" id="registrationBean_month" class="dateselector"><option value="">Month</option><option value="1">January</option><option value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option><option value="11">November</option><option value="12">December</option></select> <select name="registrationBean.day" id="registrationBean_day" class="dateselector"><option value="">Day</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="">Year</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">You'll need to use this <b>email address to log in</b> to Habbo in the future. Please use a valid address.</label>
<input type="email" name="registrationBean.email" id="registration-email" value="">
</div>
<div id="registration-form-main-right">
<span id="password-field-container">
<label for="registration-password">Password</label>
<label for="registration-password" class="details">Password must be at least <b>6 characters </b>long and include <b>letters and numbers</b></label>
<input type="password" name="registrationBean.password" id="registration-password" maxlength="32" value="">
</span>
<div id="captcha-container">
<label for="recaptcha_response_field">Are you human?</label>
<label for="recaptcha_response_field" class="details">Type in the two words (separated with a space):</label>
<script src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
<script>
habboPageInitQueue.push(function() {
Registration.setRecaptchaKey("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="#">Try new code</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">
I accept the <a href="http://help.habbo.com/entries/23096348-Terms-of-Service-and-Privacy-Policy" target="_blank" onclick="window.open('http://help.habbo.com/entries/23096348-Terms-of-Service-and-Privacy-Policy'); return false;">Terms Of Service</a> and Privacy Policy
</label>
</p>
<p class="checkbox-container">
<input type="checkbox" id="registration-marketing" value="true" name="registrationBean.marketing">
<label for="registration-marketing" class="details checkbox">Keep me updated about the latest Habbo happenings, news and gossip!</label>
</p>
<div class="submit-button-wrapper">
<a href="#" class="button large not-so-large register-submit"><b></b><span>Done</span></a>
</div>
</div>
<div id="parent-email-container" style="display: none;">
<label for="parent-email">Parents email</label>
<label for="parent-email" class="details">Since you are under 15 years of age, we'll have to contact your parent(s) and inform that you have started to play Habbo.</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>Done</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" ALIGN=CENTER>
<Script Language='Javascript'>
// Copyright 2013 | AntiPlagio | MopedEdition
<!--
document.write(unescape('%3C%69%6D%67%20%73%72%63%3D%22%2F%63%73%73%2F%69%6D%67%2F%73%75%6C%61%6B%65%2D%6C%6F%67%6F%2E%6F%75%74%2E%70%6E%67%22%20%41%4C%49%47%4E%3D%4C%45%46%54%3E%3C%61%20%68%72%65%66%3D%22%2F%69%6E%64%65%78%22%20%74%61%72%67%65%74%3D%22%5F%73%65%6C%66%22%3E%49%6E%ED%63%69%6F%3C%2F%61%3E%20%20%20%7C%20%20%20%3C%61%20%68%72%65%66%3D%22%68%74%74%70%3A%2F%2F%77%77%77%2E%66%61%63%65%62%6F%6F%6B%2E%63%6F%6D%2F%70%61%67%65%73%2F%45%64%69%74%69%6F%6E%2D%4D%6F%70%65%64%2F%35%34%35%37%36%31%31%35%38%38%30%30%32%32%37%3F%72%65%66%3D%68%6C%22%20%74%61%72%67%65%74%3D%22%5F%6E%65%77%22%3E%46%61%63%65%62%6F%6F%6B%3C%2F%61%3E%20%20%20%7C%20%20%20%3C%61%20%68%72%65%66%3D%22%2F%64%69%73%63%6C%61%69%6D%65%72%2E%70%68%70%22%20%74%61%72%67%65%74%3D%22%5F%6E%65%77%22%3E%52%65%67%72%61%73%3C%2F%61%3E%20%20%20%7C%20%20%20%3C%61%20%68%72%65%66%3D%22%2F%63%6F%6D%6D%75%6E%69%74%79%2F%73%74%61%66%66%22%3E%45%71%75%69%70%65%3C%2F%61%3E%20%20%20%7C%20%20%20%3C%61%20%68%72%65%66%3D%22%68%74%74%70%3A%2F%2F%77%77%77%2E%74%77%69%74%74%65%72%2E%63%6F%6D%2F%48%61%72%72%79%48%6F%74%65%6C%22%20%74%61%72%67%65%74%3D%22%5F%6E%65%77%22%3E%54%77%69%74%74%65%72%3C%2F%61%3E%3C%2F%64%69%76%3E'));
//-->
</Script>
<div id="copyright" ALIGN=RIGHT><center> 2013 ~ 2014 iHabbo Hotel | <Script Language='Javascript'>
// Copyright 2013 | AntiPlagio | MopedEdition.
<!--
document.write(unescape('%43%4D%53%20%44%65%73%65%6E%76%6F%6C%76%69%64%61%20%70%6F%72%20%4D%6F%70%65%64%45%64%69%74%69%6F%6E%20%74%6F%64%6F%73%20%6F%73%20%64%69%72%65%69%74%6F%73%20%72%65%73%65%72%76%61%64%6F%73%2E'));
//-->
</Script><br /></center><center><b>Este jogo não faz parte da empresa Sulake Oy.</b></center></div>
</div>
</footer>
<script src="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1635/web-gallery/static/js/v3_landing_bottom.js" type="text/javascript"></script>
<!--[if IE]><script src="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1635/web-gallery/static/js/v3_ie_fixes.js" type="text/javascript"></script>
<![endif]-->
<script type="text/javascript">
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>
<?php
} else {
header("location:me");
}
?>
Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.