Guest User

Untitled

a guest
Jul 19th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <?
  2.  
  3. $username = guvenlik(trim($_POST['acc']));
  4. $pwd = guvenlik(trim($_POST['pass']));
  5. $uye = odbc_exec($conn,"select StrAuthority From TB_USER where strAccountID='".$username."'");
  6. $u = odbc_result($uye,1);
  7. $c = $_POST['cookie'];
  8.  
  9.  
  10.  
  11. if ($username=='' or $pwd=='') {
  12. echo "<center>Please fill all fields and try again .</center>";
  13. } else {
  14. $msquery="SELECT COUNT(strAccountID) FROM TB_USER WHERE strAccountID = '".$username."' AND RealPass = '".$pwd."'";
  15. $msresults=odbc_exec($conn,$msquery) or die("error");
  16. odbc_fetch_row($msresults);
  17.  
  18. if (odbc_result($msresults,1) > 0) {
  19.  
  20. echo '<center><img src="images/panel/bekleyin.gif" alt="" /><br><br>Sign in Successful Please wait ...<center>';
  21. $_SESSION['enqinuser'] = $username;
  22. $_SESSION['enqinpass'] = $pwd;
  23. $_SESSION['enqinauth'] = $u;
  24.  
  25. if($c = 'e'){
  26. setcookie('login',$_SESSION['enqinuser']);
  27. }
  28.  
  29.  
  30.  
  31. } else {
  32. echo '<center><img src="images/panel/bekleyin.gif" alt="" /><br><br>Your User Name or Password is Incorrect.</center>';
  33.  
  34. }
  35. }
  36.  
  37. $sayfa = getenv(HTTP_REFERER);
  38. echo'<meta http-equiv="refresh" content="2; url='.$sayfa.'">';
  39.  
  40. ?>
Add Comment
Please, Sign In to add comment