Problema PHP INDEX NOVA 02.04.13 18:16
index.php
- Código:
<?php
error_reporting(0);
?>
<?php
/*=======================================================================
| SilverCMS 2012 - 2013 By AlexJoan10
/*=======================================================================
| LxCMS v2A - Esperemos dejes los créditos, por favor.
\======================================================================*/
require_once "global.php";
if (LOGGED_IN)
{
header("Location: " . WWW . "/me");
exit;
}
$tpl->Init();
$tpl->SetParam('page_title', 'Reserva suite gratis en el mayor Hotel virtual. Queda con tus viej@s amig@s, haz nuev@s, juega, chatea, crea tu avatar, tus habitaciones y más aún...');
$tpl->SetParam('credentials_username', '');
$tpl->SetParam('path', WWW);
$tpl->AddIncludeSet('frontpage');
$frontpage = new Template('page-fp');
$frontpage->SetParam('login_result', '');
if (isset($_POST['credentials_username']) && isset($_POST['credentials_password']))
{
$frontpage->SetParam('credentials_username', $_POST['credentials_username']);
$credUser = filter($_POST['credentials_username']);
$credPass = $core->UberHash($_POST['credentials_password']);
$errors = array();
if (strlen($_POST['credentials_username']) < 1)
{
$errors[] = "Por favor, escribe tu email o nombre de usuario ";
}
if (strlen($_POST['credentials_password']) < 1)
{
$errors[] = "Por favor, escribe tu contraseña ";
}
if (count($errors) == 0)
{
$check = $users->ValidateLogin($credUser, $credPass);
if ($check[0])
{
if (isset($_POST['page']))
{
$reqPage = filter($_POST['page']);
$pos = strrpos($reqPage, WWW);
if ($pos === false || $pos != 0)
{
die("<b>Advertencia de seguridad</b> Una petición malicioso fue detectado que intentó redirigir a un sitio externo. Por favor proceda con precaución, esto puede haber sido un intento para robar sus datos de acceso. <a href='" . WWW . "'>Regresar al sitio.</a>");
}
else
{
$_SESSION['page-redirect'] = $reqPage;
}
}
if (!$check[1])
$_SESSION['UBER_USER_N'] = $users->GetUserVar($users->Name2id($credUser), 'username');
else
{
$_SESSION['UBER_USER_N'] = $users->GetUserVar($users->Email2id($credUser), 'username');
if ($check[1] > 1)
$_SESSION['page-redirect'] = "identity/avatars";
}
$_SESSION['UBER_USER_H'] = $credPass;
if (isset($_POST['_login_remember_me']))
{
$_SESSION['set_cookies'] = true;
}
$_SESSION['jjp']['login']['user'] = $_SESSION['UBER_USER_N'];
$_SESSION['jjp']['login']['email'] = $users->GetUserVar($users->Name2id($_SESSION['jjp']['login']['user']), 'mail');
$_SESSION['jjp']['login']['name'] = $users->GetUserVar($users->Name2id($_SESSION['jjp']['login']['user']), 'real_name');
header("Location: " . WWW . "/security_check");
exit;
}
else
{
$errors[] = "Tu contraseña y email no coinciden.";
}
}
if (count($errors) > 0)
{
$loginResult = '<div id="loginerror">
<div id="loginerrorfield">
<div>';
foreach ($errors as $err)
{
$loginResult .= '' . $err . '';
}
$loginResult .= '</div></div></div>';
$frontpage->SetParam('login_result', $loginResult);
}
}
$tpl->AddTemplate($frontpage);
$tpl->Output();
?>
<body img background=data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBggGAgkIBwgKCQkKAgoCAgICAg4HCAUKExAVFBMQEhIXGyYeFxkjGRISHy8gIycpLCwsFR4xNTAqNSYrLCkBCQoKBQUFDQUFDSkYEhgpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKf/AABEIAGIAggMBIgACEQEDEQH/xAAVAAEBAAAAAAAAAAAAAAAAAAAAB//EABQQAQAAAAAAAAAAAAAAAAAAAAD/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AhoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/9k=>
- Código:
<!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>Habbot Hotel - Fazer amigos, se divertir, e ser notado!! </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="Confira em maior hotel virtual do mundo para LIVRE! Encontrar e fazer amigos, jogar jogos, conversar com outras pessoas, criar seu avatar quartos, design e muito mais ..." />
<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 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>Type in your Habbo account email address:</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;">Please enter a correct email address</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>Send Email</b><i></i></a>
</div>
</div>
<div id="change-password-email-sent-notice" style="display: none;">
<div class="bottom-border">
<span>Hey, we just sent you an email with a link that lets you reset your password.<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="https://www.habbo.com/account/submit" method="post">
<div id="login-columns">
<div id="login-column-1">
<label for="credentials-email">Email</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">Continuar conectado</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 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>Usuário</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">
Missing JavaScript support
</div>
<div id="alert-javascript-text">
Javascript is disabled on your browser. Please enable JavaScript or upgrade to a Javascript-capable browser to use Habbo :)
</div>
</div>
</noscript>
<div id="alert-cookies-container" style="display:none">
<div id="alert-cookies-title">
Missing cookie support
</div>
<div id="alert-cookies-text">
Cookies estão desativados em seu navegador, por favor ative-os para jogar iHabi :)
</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="www.hotelteste.hplivre.com.br/quickregister/start/page-register-1" class="button large" id="join-now-button"><b></b><span>Registre-se</span><span class="sub">(É Grátis)</span></a>
<div id="slogan">
<h1>Bem Vindo ao Habbot,</h1>
<p>um lugar estranho com pessoas incríveis.</p>
<p><a id="tell-me-more-link" href="#">Conte-me mais ...</a></p>
</div>
</div>
<div id="carousel">
<div id="image1"></div>
<div id="image2"></div>
<div id="image3"></div>
<div id="tell-me-more">No Habbot você vai conhecer novos amigos, fazer bate-papo, organizar festas, cuidar de animais de estimação, criar e jogar jogos. Clique em 'Registre-se' para começar!</div>
</div>
<div id="floaters"></div>
</li>
<li id="registration-anchor">
<div id="registration-form">
<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">We will use this to restore your account if you ever lose access. Your birth date will never be shared publicly.</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="">
<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="">
</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">Type in the two words (separated with a space):</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="#">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="footer"><a href="http://www.tos.lucasabade.com" TARGET="_blank">Termos de Serviço</a> / <a href="http://pt-br.facebook.com/people/Habbot-Brgames/100005570823856" TARGET="_blank">Facebook</a> / <a href="mailto:sluk_upn@hotmail.com" target="_new">Contato</a></div>
<div id="copyright"> 2012 - 2013 Habbot Hotel || HABBOT não é marca registrada da Sulake , e sim registrada pela BrGames.net</div>
</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>