Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <?php
  2. if(isset($_GET['action']))
  3. {
  4. switch($_GET['action'])
  5. {
  6. case 'checklogin':
  7. echo "Testing if page actually works?";
  8. //$con = mysql_connect("localhost","root","wow");
  9. //mysql_select_db("rage", $con) or die (mysql_error ());
  10. //$loginusername=$_POST['account'];
  11. //$loginpassword=$_POST['password'];
  12. //$loginusername = stripslashes($loginusername);
  13. //$loginpassword = stripslashes($loginpassword);
  14. //$loginusername = mysql_real_escape_string($loginusername);
  15. //$loginpassword = mysql_real_escape_string($loginpassword);
  16. //$sql="SELECT * FROM login WHERE account='$loginusername' and password='$loginpassword'" or die (mysql_error ());
  17. //$sql="SELECT * FROM login" or die (mysql_error ());
  18. //$result=mysql_query($sql) or die (mysql_error ());
  19. //$count=mysql_num_rows($result) or die (mysql_error ());
  20.  
  21. //if($count==1){
  22. //session_start();
  23. //$_SESSION["login"] = true;
  24. //echo "You have been logged in. -Yeah i know i need to add a redirect, later stfu";
  25. //}
  26. //if($loginusername==$result['account'])
  27. //{
  28. //echo "Success";
  29. //}
  30. //else {
  31. //echo "Failed login attempt!";
  32. //}
  33. break;
  34. }
  35. }
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement