Created
December 30, 2014 20:38
-
-
Save boogy/c523d3e025f45eb366a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if(@$_SESSION['user']){header("location: ".$LINK);die();} | |
| if(isset($_POST['user'])){ | |
| if(mysqli_num_rows(mysqli_query($con,"SELECT * FROM users WHERE Us3rN4m3='".mysqli_real_escape_string($con,@$_POST['user'])."' AND P4sWW0rD_0F_M3_WTF='".mysqli_real_escape_string($con,@$_POST['pass'])."' "))>0){ | |
| $_SESSION=$_POST; | |
| header("location: ".$LINK);die(); | |
| }else{ | |
| $Error=1; | |
| } | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment