ERRO DE REGISTRO

4 participantes

maahwillis maahwillis  • 11.06.14 14:25

ERRO DE REGISTRO Empty ERRO DE REGISTRO 11.06.14 14:25

Olá a todos, eu estou utilizando MaggoIndex e ocorreu um pequeno erro, que ninguém consegue se registrar. Como arrumo isto?

theus-b theus-b  • 11.06.14 14:36

ERRO DE REGISTRO Empty Re: ERRO DE REGISTRO 11.06.14 14:36

Manda a index.

maahwillis maahwillis  • 11.06.14 14:41

ERRO DE REGISTRO Empty Re: ERRO DE REGISTRO 11.06.14 14:41

Aqui está ela:

Código:

<?php

/*======================================================================*\
| Maggo Index - Editada por: Weetsh.                                     |
| #######################################################################|                                          
| Skype://weetsh                                                         |
| #######################################################################|
| Registro por Weetsh  | Baseada em: Lavvos Cms | Rool Cms               |
| Todos os direitos reservados à Seus respéctivos criadores.             |
\*======================================================================*/


require_once('./data_classes/server-data.php_data_classes-core.php.php');

session_start();

if(isset($_GET['registerCancel']) && FilterText($_GET['registerCancel'] == "true")){
session_unset();
}

if(!session_is_registered(username)){

if(isset($_POST['username']) && isset($_POST['password'])){
$username = FilterText($_POST['username']);
$password = HoloHash($_POST['password'], $username);
$password2 = HoloHashMD5($_POST['password'], $username);

if(empty($username) || empty($_POST['password'])){
$login_error = "Usuário ou senha incorretos!";
} 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 = "Usuário ou senha incorretos!";
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$ban = mysql_query("SELECT * FROM bans WHERE value = '".$username."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($ban) < 1){

mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."' WHERE username = '".$username."'");

$_SESSION['username'] = $username;
$_SESSION['password'] = $password2;
if ($_POST['_login_remember_me'] == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/");
}
header("location: $path/me"); exit;
} else {
$bandata = mysql_fetch_assoc($ban);
$timestamp = time();
if($bandata['expire'] > $timestamp){
$login_error = "Você foi banido por: \"" . $bandata['reason'] . "\" e 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";


?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br" lang="pt-br" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">



<title><?php echo $shortname; ?> - Seja bem vindo!</title>


<link rel="shortcut icon" href="index_img/images/icons/icone.gif" type="image/vnd.microsoft.icon">
<script src="texto.js" tppabs="js/texto.js" type="text/javascript"></script>



<link rel="stylesheet" href="index_img/texto.css" tppabs="css/texto.css">
<link rel="stylesheet" href="index_img/sttyle.css" tppabs="css/sttyle.css">

</head>

<body bgcolor="#ededed">
<div id="top">
<div class="online" sttyle="
   margin-right: 25px;
   float: right;  height: 25px;  width: 130px;  display: block;  position: relative;  
   top: 120px;  margin: 0 10px 0 0;  background: #FBF7F8;  border: 1px solid #EFEDED;  border-radius: 10px 2px 2px 2px;  -moz-border-radius: 2px 2px 2px 2px;  font-size: 12px;  line-height: 25px;  text-align: right;  

padding: 0 5px;  };
   right: 275px;
   box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 3px rgba(0, 0, 0, 0.05);  border: 1px solid rgba(0, 0, 0, 0.43);
"><a href="#" sttyle="
   margin-right: 25px;
"><?php echo $online_count; ?> Online</a>

<a href="t" target="blank" onclick="<?php echo $shortname; ?>Client.openOrFocus(this); return false;" class="enter popup" data-toggle="tooltip" data-placement="left" data-original-title=""><span class="onlinelogo"></span></a></div>
<span class="onlinelogo" sttyle="
   background: url('index_img/online.png') no-repeat;  
   width: 28px;  
   height: 22px;  position: absolute;  
   right: 397px;  
   top: 122px;  };
"></span></span><div id="centertop" sttyle="
   width: 707px;
   height: 127px;
">
<p>
<img src="index_img/logo.gif" tppabs="css/images/logo.png" alt="<?php echo $shortname; ?> !" sttyle="
   margin-top: 9px;
">
</p>
<div id="lugardoefeito">
<div id="texto" sttyle="margin-top:50px;">
<div id="effect" sttyle="color: white; height: 20px; visibility: visible; display: block;width: 304px;right: 59px;">Seja Bem vindo</div></div>
</div>
</div>
<div id="cont">

<div id="left">

<div id="logar" sttyle="
   width: 795px;
   height: 269px;
   right: 60px;
   margin-top: 21px;
">
<div class="hero-unit" sttyle="
   padding: 60px;  margin-bottom: 30px;  font-size: 18px;  font-weight: 200;  line-height: 30px;  color: #ffffff;  
   background-color: rgba(0, 0, 0, 0.56);  -webkit-border-radius: 6px;  -moz-border-radius: 6px;  
   border-radius: 1px;
   width: 676px;
   margin-right: 0px;
   height: 150px;
">
<h1 sttyle="
   font: normal 41px Tahoma, Geneva, sans-serif;  
   color: #FFFFFF;  };
   font-weight: bold;
   margin-top: 43px;
">Participe da comunidade!</h1>
<p sttyle="
   width: 712px;
   height: 37px;
   margin-right: 0px;
   margin-left: -33;
">Crie seu <?php echo $shortname; ?>, construa seu Quarto, converse e faça novos amigos.</p>
<p>

</p>
</div>
<div id="local" align="center">
</div>
</div>
<div class="BoxContainer" sttyle="
   border-right-width: 0px;
   margin-right: 0px;
   background: #fff;  
   box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 3px rgba(0, 0, 0, 0.05);  border: 1px solid rgba(0, 0, 0, 0.43);  
   /* margin: 25px auto; */  
   /* padding: 20px; */  
   height: 203px;  
   width: 799px;  };
   margin-top: 9px;
   margin-left: -58;
   margin-bottom: 6px;
"> <div class="box_login" sttyle="
   background: linear-gradient(to bottom,rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%);  };  border: 1px solid #ccc;  
   width: 401px;  
   height: 154px;  
   float: right;  margin-left: 30px;  border-radius: 5px;  margin-top: 14px;  };
   margin-right: 9px;
">
<form method="post" class="login">
<input type="text" placeholder="Usuário" name="username" sttyle="
   background: #FFFFFF;  width: 380px;  height: 36px;  border-radius: 5px;  border: solid 1px #ccc;  float: left;  margin-left: 10px;  border-radius-left: 100px;  border-left-radius: 100px;  text-indent: 14px;  color: #ccc;  font-family: Verdana,Geneva,sans-serif;  font-size: 12px;  outline: none;  margin-top: 10px;  };
">
<input type="password" placeholder="Senha" name="password" sttyle="
   background: #FFFFFF;  width: 380px;  height: 36px;  border-radius: 5px;  border: solid 1px #ccc;  float: left;  margin-left: 10px;  border-radius-left: 100px;  border-left-radius: 100px;  text-indent: 14px;  color: #ccc;  font-family: Verdana,Geneva,sans-serif;  font-size: 12px;  outline: none;  margin-top: 10px;  };
">



<a href="/quickregister/start"></a>
<input type="submit" class="boxs_bottom2" sttyle="background: rgba(0, 153, 0, 0.61);width: 154px;  height: 35px;  float: left;  margin-left: 12px;  padding: 4px 10px 4px 10px;  line-height: 25px;  font-family: Verdana,Geneva,sans-

serif;  color: #FFF;  font-size: 11px;  border: 0px;  border-radius: 4px;  margin-top: 6px;  };box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 3px rgba(0, 0, 0, 0.05);  border: 1px solid rgba(0, 0, 0, 0.43);" value="Entrar" name="entra">
</form>
<?php if(isset($login_error)){ ?>
<div class="erro" sttyle="
   margin-top: 110px;
   margin-left: 187px;
"><?php echo $login_error; ?></div>
                          <?php } ?>


<?php


} else {
header("location:me");
}

?>
</form>
</div><div class="box_login" sttyle="
   background: #fff;  border: 1px solid #ccc;  
   width: 347px;  
   height: 153px;  float: left;  
   margin-left: 10px;  border-radius: 5px;  
   margin-top: -155;  };
   background: linear-gradient(to bottom,rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%);
"><div class="head" sttyle="
   border-bottom: 1px solid #CCC;
   background-color: #f5f5f5;
   border-top-left-radius: 3px;
   border-top-right-radius: 3px;
   width: 347px;
   height: 23px;
   font-size: 14px;
   color: rgb(172, 115, 115);
   font-family: Verdana,Geneva,sans-serif;
   padding-left: 0px;
   width: 339px;
   margin-left: 4px;
   padding-left: 7px;
   border-left-width: 1px;
   margin-left: 1px;
   border-color: rgba(0, 0, 0, 0.22);
   margin-bottom: 16px;
   padding-top: 3px;
                        ">Por que Jogar iTech Hotel?<span class="glyphicon glyphicon-question-sign right"></span></div>
 
<div class="newscolumn" sttyle="border-top:none;"><div id="newsimagebg"></div>
<img src="index_img/frank.png" sttyle="vertical-align:top;float:left;margin-top: -10;padding-left: 0px;background: rgba(0, 0, 0, 0.06);border-radius: 58px;margin-left: 3px;margin-right: 13px;border-radius: 27px 125px 18px 2px;  -moz-border-radius: 2px 2px 2px 2px;">iTech Hotel, é um mundo virtual onde você pode criar seu próprio personagem e projetar o seu quarto do jeito que você gosta. </font>
</div>

</div></div>
<div class="BoxContainer" sttyle="
   border-right-width: 0px;
   margin-right: 0px;
   background: #fff;  
   box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 3px rgba(0, 0, 0, 0.05);  
   border: 1px solid rgba(0, 0, 0, 0.43);  
   /* margin: 25px auto; */  
   /* padding: 20px; */  
   height: 330px;  
   width: 799px;  };
   margin-top: 9px;
   margin-left: -58;
   margin-bottom: 6px;
"> <?php require_once('./habblet/registro/ajax.php'); ?>
</div>
<div class="BoxContainer" sttyle="
   border-right-width: 0px;
   margin-right: 0px;
   background: #fff;  
   box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0), inset 0 0 0 3px rgba(0, 0, 0, 0.05);  
   border: 1px solid rgba(0, 0, 0, 0.43);  
   /* margin: 25px auto; */  
   /* padding: 20px; */  
   height: 35px;  
   width: 799px;  };
   margin-top: 0px;
   margin-left: -58;
   margin-bottom: 0px;
   padding-top: 0px;
"><center sttyle="
   font-size: 9px;  };
   /* color: #777; */  };
   /* font-family: Verdana, Arial, Helvetica, sans-serif; */
"> <br><hr sttyle="
   border: none;  border-top: 1px ;
"> <b> Copyrights © 2012 - 2014 iTech Hotel - Todos os direitos reservados. </b> <Script Language='Javascript'>

</Script></div></div>
</div>
<center></center></div></body></html>

theus-b theus-b  • 11.06.14 14:46

ERRO DE REGISTRO Empty Re: ERRO DE REGISTRO 11.06.14 14:46

Qual cms você esta utlizando?

Dino Dino  • 11.06.14 14:55

ERRO DE REGISTRO Empty Re: ERRO DE REGISTRO 11.06.14 14:55

Olá,
Poderia explicar melhor oque acontece ou oque não acontece, postar um print ?
Até.

maahwillis maahwillis  • 11.06.14 21:34

ERRO DE REGISTRO Empty Re: ERRO DE REGISTRO 11.06.14 21:34

Bom, o erro ocorre o seguinte, estou usando a HURBO CMS.

 ERRO DE REGISTRO 3ryk0z
Bugo? http://prntscr.com/3ryk0z

O registro não é efetuado.

Bet4 Bet4  • 26.06.14 20:12

ERRO DE REGISTRO Empty Re: ERRO DE REGISTRO 26.06.14 20:12

@Moderação
Tópico Movido e Fechado!
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.