Problema PHP INDEX NOVA

5 participantes

Sluk Sluk  • 02.04.13 18:16

Problema PHP INDEX NOVA Empty Problema PHP INDEX NOVA 02.04.13 18:16

Olá a todos do power pixel, estou com um problema na minha index nova.. o problema é com a parte do php , por exemplo quando clico em "Login" Não loga carrega para pagina inicial está com erro de conectividade com php não entendo muitom bem , também por exemplo quando coloco a senha errada não aparece que a senha errada volta pro inicio da index.. È uma coisa dificil de arrumar e acho que vai ser dificil pra vocês mais não custa tentar ^^.Eu já tentei e não obtive sucessos..

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=>
Índex HTML
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>

Anonymous Convidado  • 02.04.13 18:41

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 02.04.13 18:41

Olá soul nao e problema na sua cms em vez de clicar no login de enter
24horas para responder..

Sluk Sluk  • 02.04.13 19:58

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 02.04.13 19:58

ACho que poderia ser , muito dificil de arrumar esse erro né¿

Decoder Decoder  • 02.04.13 20:22

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 02.04.13 20:22

Passa o HTML antigo de sua CMS que eu já configuro à você, mas caso ela seja lavvos cms ou derivada, tentar por isso aqui, é quase a mesma que programei no www.ejogoo.com :
Código:
<?php
$Decoder = $_GET["password"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
   <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
   <title><?php $shortname; ?>  Hotel - Faça amigos, divirta-se e fique conhecido!</title>
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>

    <link rel="shortcut icon" href="./web-gallery/v2/images/favicon.ico" type="image/vnd.microsoft.icon" />
    <link rel="alternate" type="application/rss+xml" title=": RSS" href="./articles/rss.xml" />

<script src="./web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="./web-gallery/static/js/landing.js" type="text/javascript"></script>
<link rel="stylesheet" href="./web-gallery/v2/styles/frontpage.css" type="text/css" />
<link rel="stylesheet" href="./web-gallery/v2/styles/changepassword.css" type="text/css" />
<link rel="stylesheet" href="./web-gallery/v2/styles/forcedemaillogin.css" type="text/css" />

<script type="text/javascript">
document.habboLoggedIn = false;
var habboName = null;
var habboReqPath = "";
var habboStaticFilePath = "./web-gallery";
var habboImagerUrl = "/habbo-imaging/";
var habboPartner = "";
window.name = "habboMain";

</script>



<meta name="description" content="<?php $shortname; ?> Converse, faça amigos e divirta-se! />

<!--[if IE 8]>
<link rel="stylesheet" href="./web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="./web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="./web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="./web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>

<style type="text/css">
body { behavior: url(./web-gallery/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="0.2.1 - BR" />
</head>
<!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> Hotel - Faça amigos, divirta-se e fique conhecido!</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/1644/web-gallery";
    </script>
    <link rel="shortcut icon" href="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1644/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="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1644/web-gallery/static/styles/v3_landing.css" type="text/css" />
<script src="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1644/web-gallery/static/js/v3_landing_top.js" type="text/javascript"></script>

        <meta name="description" content="Entre no maior hotel virtual do mundo! Encontre e faça amigos, jogue jogos, converse com outras pessoas, crie seu avatar e quartos, esolha sua decoração e muito mais!" />
        <meta name="keywords" content="<?php $shortname; ?> hotel, virtual, mundo, a rede social, livre, comunidade, avatar, bate-papo, online, teen, RPG, junção, social, grupos, fóruns, jogos, cofre, jogos, online, amigos, jovens, raros, Mobi raro, coletar, criar, coletar, connect, Mobi, móveis, animais de estimação, design de interiores, de partilha, de expressão, emblemas, ponto de encontro, música, celebridades, visitas de celebridades, celebridades, mmo, mmorpg, multiplayer" />

<script src="//cdn.optimizely.com/js/13389159.js"></script>
    <meta name="build" content="63-BUILD2036 - 26.03.2013 12:13 - 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>Digite o e-mail de sua conta abaixo:</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, digite 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>Olá! Em até 24 horas lhe enviaremos um e-mail com o link que será usado para alterar sua senha.<br>
<br>

IMPORTANTE: Não se esqueça de olhar sua lixeira também!</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>

<style>
#decoder-logo{width:152px;height:40px;background:url(./web-gallery/v2/images/habbo.png) no-repeat;float:left;margin-top:30px;margin-left:10px;display:inline}
#<?php $shortname; ?>_erro{background: #e67300;-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;padding: 2px;}
</style>
<header>
    <div id="border-left"></div>
    <div id="border-right"></div>

<div id="login-form-container">
    <a href="#home" id="decoder-logo"></a>

    <form action="./?name=&password=true" method="post">

   
    <div id="login-columns">
        <div id="login-column-1">
            <label for="credentials-email">Nome</label>
            <input tabindex="2" type="text" name="username" id="credentials-email" value="">
            <input tabindex="5" type="checkbox" name="_login_remember_me" id="credentials-remember-me">
            <label for="credentials-remember-me" class="sub-label">Mantenha-me conectado</label>
        </div>

        <div id="login-column-2">
            <label for="credentials-password">Senha</label>
            <input tabindex="3" type="password" name="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>Entrar</span></a>
        </div>

        <div id="login-column-4" style="border: none;">
<div id="fb-root" style="border: none;"></div>

<a style="border: none;" class="fb_button fb_button_large" onclick="assistedLogin(FB); return false;">
    <span class="fb_button_text" style="font-weight:bold;font-style:italic;font-size:20px;color:#ffffff;line-height:33px;text-shadow:2px 2px 2px rgba(0,0,0,0.4);margin-bottom:5px"><?php $shortname; ?> no Facebook</span>
</a>


<div id="rpx-signin">
    <a class="rpxnow" onclick="return false;" href="https://www.facebook.com/<?php $shortname; ?>hotel">Confira nossa página</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">
        JavaScript desabilitado
    </div>
    <div id="alert-javascript-text">
        Javascript está desabilitado em seu navegador. Por favor, ative o JavaScript para poder jogar <?php $shortname; ?> :)
    </div>
</div>
</noscript>
<?php if($Decoder == true){ ?>
<div id="alert-cookies-container">
    <div id="alert-cookies-title">
        Nome de usuário ou senha inválido(s)
    </div>
       <div id="alert-cookies-text">
        Por favor, digite um nome de usuário ou senha válido, para entrar no <?php $shortname; ?>.
    </div>
</div>
<?php }else{} ?>
<div id="alert-cookies-container" style="display:none">
    <div id="alert-cookies-title">
        Cookies desabilitados
    </div>
    <div id="alert-cookies-text">
        Cookies estão desabilitados em seu navegador. Por favor, ative-o para poder jogar <?php $shortname; ?>.
    </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>Entre agora</span><span class="sub">(de graça)</span></a>
                <div id="slogan">
                    <h1>Bem vindo ao <?php $shortname; ?>,</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"><?php $shortname; ?> Hotel é um mundo virtual para jogadores maiores de 13 anos, onde você pode criar seu personagem e decorar seu quarto como quiser. Você vai encontrar novos amigos, conversar, organizar festas, ter bichos de estimação virtuais, criar e jogar jogos, e completar missões. Clique em  "Entre agora" e começe já!</div>
            </div>
                <div id="geotargeting">385 <?php $shortname; ?>s Online</div>
            <div id="floaters"></div>
        </li>

        <li id="registration-anchor">

<div id="registration-form" class="hide-captcha">
 <!-- <?php $shortname; ?> e2 -->

 <div id="<?php $shortname; ?>_mostrar">
   <div id="registration-form-header">
        <h2>Registre-se</h2>
        <p>Preencha os campos abaixo para se registrar:</p>
    </div>
    <div id="registration-form-main">
        <form id="register-new-user" autocomplete="off" method="post" action="./<?php $shortname; ?>Registropronto.php">
        <input type="hidden" name="next" value="">
      <div class="<?php $shortname; ?>escondersegundopasso">
        <div id="registration-form-main-left">
            <label for="registration-birthday">Nascimento</label>
            <label for="registration-birthday" class="details">
         Nós ultilizaremos esta informação para restaurar sua conta, se você perdê-la algum dia. JAMAIS publicaremos sua data de nascimento.</label>
           
                  
         <div id="registration-birthday">
<select name="<?php $shortname; ?>_Reg_Nasc_Dia" id="registrationBean_month" class="dateselector">
<option value="">Dia</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="<?php $shortname; ?>_Reg_Nasc_Mes" id="registrationBean_year" 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="<?php $shortname; ?>_Reg_Nasc_Ano" id="registrationBean_day" class="dateselector">
<option value="">Ano</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ê <b>ultilizará este e-mail</b> no futuro, caso necessite reculperar sua senha.</label>
                     <input type="email" name="<?php $shortname; ?>_Reg_Email" id="registration-email" value="">

         <label for="registration-email">Gênero</label>
                  <select name="<?php $shortname; ?>_Reg_genero">
         <option value="male" selected="">Masculino</option>
         <option value="female">Feminino</option>
            </select>
         

           

        </div>
        <div id="registration-form-main-right">
      
 <label for="registration-email">Nome</label>
            <label for="registration-email" class="details">Você <b>ultilizará este nome</b> para entrar no <?php $shortname; ?>.</label>
                     <input type="text" name="<?php $shortname; ?>_nome" id="registration-email" value="" maxlenght="15">

         
         
            <span id="password-field-container">
                <label for="registration-password">Senha</label>
                <label for="registration-password" class="details">Sua senha deve ter no mínimo <b>6 digitos </b>e incluir <b>letras e números</b></label>
                         <input type="password" name="<?php $shortname; ?>_senha" id="registration-password" maxlength="32" value="">
            </span>

            <div id="captcha-container">

                <label for="recaptcha_response_field">Você é humano?</label>
                <label for="recaptcha_response_field" class="details">Digite as duas palavras (separadas por espaço):</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="#">Tente outro</a></p>
                    <input type="text" name="captchaResponse" id="recaptcha_response_field">

            </div>
            <p class="checkbox-container" id="registration-tos">
                <input type="checkbox" id="tos" name="bean_termsOfServiceSelection" value="true">
                <label for="tos" class="details checkbox">
                    Eu aceito os <a href="#" target="_blank" onclick="window.open('#'); return false;">Termos de uso</a>
                </label>
            </p>
          <!-- <p class="checkbox-container">

                <input type="checkbox" id="registration-marketing" value="true" name="registrationBean.marketing">
                <label for="registration-marketing" class="details checkbox">Mantenha-me informado sobre os acontecimentod do <?php $shortname; ?>!</label>
            </p>-->
            <div class="submit-button-wrapper">
         <input type="hidden" name="<?php $shortname; ?>_enviar" value="" />
         <a href="#" onclick="document.getElementById('register-new-user').submit();" class="button large not-so-large register-submit"><b></b><span>Pronto</span></a>
            </div>
        </div>
</div>
        <div id="parent-email-container" style="display: none;">
            <label for="parent-email">E-mail dos responsáveis</label>
            <label for="parent-email" class="details">
Como você tem menos de 15 anos de idade, nós temos que comunicar seu responsável e informá-lo que você começou a jogar <?php $shortname; ?>.</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>Pronto</span></a>
            </div>
        </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="mailto:admin@<?php $shortname; ?>.com">Contato</a> / <a target="_blank" href="http://www.power-pixel.net/forum">PowerPixel Fórum</a> / <a href="https://www.reidohost.com.br/" target="_blank">Rei do Host</a> / <a href="#registration">Registre-se grátis</a> / <a href="https://www.facebook.com/<?php $shortname; ?>hotel"><?php $shortname; ?> no Facebook</a></div>
        <div id="copyright">©️2010-2013 <?php $shortname; ?>.Todos os direitos reservados.</div>
    </div>
    <div id="sulake-logo"><a href="http://www.power-pixel.net/forum"></a></div>
</footer>


<script src="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1644/web-gallery/static/js/v3_landing_bottom.js" type="text/javascript"></script>
<!--[if IE]><script src="https://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1644/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>

</body>
</html>

Sluk Sluk  • 02.04.13 20:38

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 02.04.13 20:38

A cms é a remix 4.1 o site de teste do hotel é :http://www.hotelteste.hplivre.com.br/

Código:

<?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="./forgot"
                          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");
}

?>

Decoder Decoder  • 02.04.13 21:00

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 02.04.13 21:00

Tente colocar isso:

Código:
<?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 = "É necessário digitar um nome e senha para entrar no iHabi.";
       $decoder_titulo = "Nome de usuário e senha inválidos.";
      } 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 = "Por favor, digite um nome de usuário e senha válidos para entrar no iHabi.";
         $decoder_titulo = "Nome de usuário e senha inválidos";
        } 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']) . ".";
                  $decoder_titulo = "Você não pode mais entrar no iHabi =0";
           } 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";
?>

<!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="<?php echo $path; ?>?name=<?php echo FilterText($_POST['username']); ?>&password=true" method="post">

   
    <div id="login-columns">
        <div id="login-column-1">
            <label for="credentials-email">Email</label>
            <input tabindex="2" type="text" name="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="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>
<?php if(isset($login_error)){ ?>
    <div id="alert-cookies-container" style="display:block">
    <div id="alert-cookies-title">
         <?php echo $decoder_titulo; ?>
    </div>
    <div id="alert-cookies-text">
        <?php echo $login_error; ?>
    </div>
</div>
         <?php } ?>
<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>

Sluk Sluk  • 02.04.13 21:19

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 02.04.13 21:19

Não deu certo decoder como pode ver http://www.hotelteste.hplivre.com.br/, Login: Sluk senha: huawei , logue para tu ver o que acontece, obrigado por estar me ajudando.

Decoder Decoder  • 03.04.13 1:07

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 03.04.13 1:07

Sluk escreveu:Não deu certo decoder como pode ver http://www.hotelteste.hplivre.com.br/, Login: Sluk senha: huawei , logue para tu ver o que acontece, obrigado por estar me ajudando.
Sluk, o arquivo deve ser salvo em PHP, parece que você está salvando em HTML...
Crie um arquivo chamado index.php (não .html ou .htm) e coloque o código que passei. Após fazer isso, tente entrar:
http://www.hotelteste.hplivre.com.br/index.php
Caso dê certo, apague o index.html

Anonymous Convidado  • 03.04.13 7:53

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 03.04.13 7:53

Olá é exatamente o Que o Igor Disse. Você salvou em HTML Por Isso não reconheçeu.
24Horas para Responder

Kushina Kushina  • 03.04.13 13:57

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 03.04.13 13:57

Olá,
Informe Se sua Questão foi resolvida.

Até,

Gabrieldlm Gabrieldlm  • 03.04.13 14:03

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 03.04.13 14:03

Código:
<form action="https://www.habbo.com/account/submit" method="post">

O form está submetendo os dados para o link do habbo.com, procure o código acima no arquivo html da index e mude o link do habbo pelo link do seu hotel.
Ex: http://linkdoseuhotel/account/submit

Decoder Decoder  • 03.04.13 15:07

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 03.04.13 15:07

Gabrieldlm escreveu:
Código:
<form action="https://www.habbo.com/account/submit" method="post">

O form está submetendo os dados para o link do habbo.com, procure o código acima no arquivo html da index e mude o link do habbo pelo link do seu hotel.
Ex: http://linkdoseuhotel/account/submit
Exato, o link do action do form dele é gerado através de uma variável:

Código:
<form action="<?php echo $path; ?>?name=<?php echo FilterText($_POST['username']); ?>&password=true" method="post">

Por isso necessita que o arquivo seja .PHP para isso e também para mostrar o erro quando o login falhar.

Gabrieldlm Gabrieldlm  • 03.04.13 15:32

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 03.04.13 15:32

Decoder escreveu:
Gabrieldlm escreveu:
Código:
<form action="https://www.habbo.com/account/submit" method="post">

O form está submetendo os dados para o link do habbo.com, procure o código acima no arquivo html da index e mude o link do habbo pelo link do seu hotel.
Ex: http://linkdoseuhotel/account/submit
Exato, o link do action do form dele é gerado através de uma variável:

Código:
<form action="<?php echo $path; ?>?name=<?php echo FilterText($_POST['username']); ?>&password=true" method="post">

Por isso necessita que o arquivo seja .PHP para isso e também para mostrar o erro quando o login falhar.


Não há necessidade de criar um arquivo PHP, uma vez que ele já existe e é representado pelo link que eu passei.

Caso o erro persista, o problema estará sendo causado pela falta de um HTACCESS, o qual irá validar o link.

Obs:

Retire o código:

Código:
<?php
error_reporting(0);
?>

É mais conveniente deixar os erros parentes para facilitar a resolução.

Anonymous Convidado  • 04.04.13 11:32

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 04.04.13 11:32

Olá a Dúvida Foi Resolvida ou Não ?
Mais de 24Horas se Passaram. Aguardando Moderação Fechar o Tópico.

Sluk Sluk  • 04.04.13 13:27

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 04.04.13 13:27

Decoder eu coloquei no php como disse e continuou a mesma coisa , dai deletei a index.css e a index.html e deu erro na linha 371 ,

---
Gabriel Dlm tentei fazer o que disse mais mesmo quando clica em login vai para a index, obrigado.

Gabrieldlm Gabrieldlm  • 04.04.13 13:52

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 04.04.13 13:52

Sluk escreveu:Decoder eu coloquei no php como disse e continuou a mesma coisa , dai deletei a index.css e a index.html e deu erro na linha 371 ,

---
Gabriel Dlm tentei fazer o que disse mais mesmo quando clica em login vai para a index, obrigado.

Restaure o arquivo da index (Pegar o arquivo original), e faça o processo que eu descrevi.

Anonymous Convidado  • 04.04.13 16:11

Sluk Sluk  • 05.04.13 23:24

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 05.04.13 23:24

Problema resolvido , obrigado a todos.Podem closar.

Anonymous Convidado  • 06.04.13 17:33

Example Example  • 06.04.13 18:53

Problema PHP INDEX NOVA Empty Re: Problema PHP INDEX NOVA 06.04.13 18:53

ALERTA - MODERAÇÃO

bi0s esqueceu de mover o tópico.

@Movido
Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.