03-02-2011, 11:34 AM
|
#22
|
|
Membro - Veterano
Registrado em: Dec 2009
Posts: 1,335
Agradecido 803 Vezes em 427 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Rate
Designer:
Meu Estado:
|
Att
Citação:
<tr>
<td><b><font face="Arial" color="gold" size="3">E-mail</font></b></td>
<td><font face="Arial" size="1"><b>
<input type="text" name="email" maxlength="150" size="20" /></b></font></td>
</tr>
<tr>
<td><b><font face="Arial" color="gold" size="3">Senha</font></b></td>
<br><br>
<input type="image" src="http://www.secretwarez.net/images/confirmar.png" name="submit" value="Criar conta"/>
<a href="/paginas/home.php"><img src="http://www.secretwarez.net/images/cancelar.png" alt="Cancelar" title="Cancelar" /></a>
</form>
//]]></script>[/html][php]
<?php
if(ereg("^([a-zA-Z0-9_-])*$", $_POST['account']) && ereg("^([a-zA-Z0-9_-])*$", $_POST['password']) && ereg("^([a-zA-Z0-9_-])*$", $_POST['password2']) && ereg ("^([a-zA-Z0-9_-])*$", $_POST['question']) && ereg ("^([a-zA-Z0-9_-])*$", $_POST['answer']))
{
if ($page="index.php" && $_POST['account'] && strlen($_POST['account'])<16 && strlen($_POST['account'])>3 && $_POST['password'] && $_POST['password2'] && $_POST['password']==$_POST['password2'])
{
$check=mysql_query("select * from accounts where login='".$_POST['account']."'");
$check1=mysql_num_rows($check);
if($check1>0)
{
echo "<p clss='error'><center /><b><font color=\"red\" />Falha no Registro, Conta já Existe .</b></p>";
}
$check=mysql_query("select * from accounts where email='".$_POST['email']."'");
$check1=mysql_num_rows($check);
if($check1>0)
{
echo "<p clss='error'><center /><b><font color=\"red\" />Falha no Registro, E-mail já Existe .</b></p>";
}
else
{
mysql_query("INSERT INTO accounts (login, password, email, question, answer) VALUES ('".$_POST['account']."', '".base64_encode(pack('H*', sha1($_POST['password'])))."', '".$_POST['email']."', '".$_POST['question']."', '".$_POST['answer']."')", $link);
mysql_close($link);
print '<p class="error"><center><b><font color="gold" />Registro Completo<br>Conta <font color="green">'.$_POST['account'].'</font> criada com sucesso. </b></p></center>';
}
}
else
{
print '<p class="error"><b> </b></p>'.mysql_error();
}
}
else
{
echo "As limitações não foram testadas para a segurança. Se você for confiável que tido a informação correta, consultar por favor à administração. ";
}
?>
|
|
|
|