Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "conecta_mysql.inc";
- $username = $_POST["username"];
- $password = $_POST["password"];
- $mail = $_POST["mail"];
- $confirm = $_POST["confirm"];
- $userid=trim($_POST['username']);
- $password=trim($_POST['password']);
- $initial=substr($userid,0,1);
- $userlenght=strlen($userid);
- $passlenght=strlen($password);
- $loc = "C:\\Users\\Adm\\Desktop\\Server\\DBSRV\\run\\account"; //Localização da Pasta Das Contas.
- $error = 0;
- if(!ereg("^[0-9a-zA-Z]{4,12}$",$userid))
- {echo "<p class='style1'>Seu login so pode ter caracteres¸a-z,A-Z <a href='cadastro.php'><span class='style2'>Voltar</span></a>";exit(); $error=1;}
- else if (strlen($mail)<8 || strstr ($mail, '@')==FALSE)
- {echo "<center>Favor Digitar seu email corretamente.</center><br><br>"; $error=1;}
- if(!ereg("^[0-9a-zA-Z]{4,12}$",$password))
- {echo "<p class='style1'>Sua senha so pode ter caracteres¸a-z,A-Z <a href='cadastro.php'><span class='style2'>Voltar</span></a>";exit(); $error=1;}
- if($password != $confirm){
- echo "<script>alert('As Senhas Não São Iguais');top.location.href='cadastro.php'; </script>"; $error=1;
- }
- if(!UserNameExists($username))
- { echo "Este Usuario ja Existe<br><BR>"; $error=1;}
- if(!MailExists($mail))
- {echo "Este email ja Existe"; $error=1;}
- if($error==0)
- {echo "Aproveite o Servidor";
- include "insere.inc";}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement