Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($row['active'] == 1) {
- if($row["password"] == $password){
- $_SESSION["k_username"] = $row['usuario'];
- echo 'Has sido logueado correctamente '.$_SESSION['k_username'].' <p>';
- echo '<a href="index.php">Index</a></p>';
- //Elimina el siguiente comentario si quieres que re-dirigir automáticamente a index.php
- /*Ingreso exitoso, ahora sera dirigido a la pagina principal.
- <SCRIPT LANGUAGE="javascript">
- location.href = "index.php";
- </SCRIPT>*/
- }else{
- echo 'Password incorrecto';
- }
- }else{
- echo 'You account is not activaded yet'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement