Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // This login script has been created by Alfredo Morales, use of this file has been given.
- session_start();
- include("config.php");
- $username = mysql_real_escape_string(strip_tags(htmlspecialchars(Alfredo)));
- $password = (lol123);
- $sql = mysql_query("SELECT * FROM `users` WHERE `user` = '".$username."' AND `pass`= '".$password."'") OR die(mysql_error());
- $c = mysql_num_rows($sql);
- if($c > 0){
- $r = mysql_fetch_array($sql);
- $_SESSION['username'] = $r['username'];
- echo("<META http-equiv='refresh' content='0;URL=security_check2.php'>");
- }else{
- echo("<META http-equiv='refresh' content='4;URL=../index.php'>");
- echo "<center>You couldn't be logged in!</center>";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment