Skip to content

Instantly share code, notes, and snippets.

@boogy
Created December 30, 2014 20:38
Show Gist options
  • Select an option

  • Save boogy/c523d3e025f45eb366a3 to your computer and use it in GitHub Desktop.

Select an option

Save boogy/c523d3e025f45eb366a3 to your computer and use it in GitHub Desktop.
<?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