Advertisement
Guest User

Untitled

a guest
Sep 1st, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. index.php
  2. #####################
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>Checker</title>
  7. <style>
  8. body {
  9. background-color: #e9edf5;
  10. }
  11. </style>
  12. </head>
  13. <body>
  14. <center>
  15. <p align="center" style="color:#000000; font-size:60px"><font style="font-family:comic sans ms,cursive">Checker</font></p>
  16. <p align="center" style="color:#000000;"><font style="font-family:comic sans ms,cursive"><a href="https://vk.com/witcher2k20" target="_blank">by vk.com/witcher2k20</a></font></p>
  17. <table>
  18. <form action="result.php" method="post">
  19. <tbody>
  20. <tr>
  21. <td>
  22. <font style="color:#000000">Ник<font>
  23. </td>
  24. <td>
  25. <input type="text" name="nick" size="50">
  26. </td>
  27. <td>
  28. <input type="submit">
  29. </td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. </form>
  34. <center>
  35. </body>
  36. </html>
  37. ###############################
  38. result.php
  39. ###############################
  40. <?php
  41.  
  42. include_once("db.php");
  43.  
  44. $username = $con->real_escape_string(htmlentities($_POST['nick']));
  45. $result = $con->query("SELECT * FROM `authme` WHERE `realname` = '$username'");
  46. $row = $result->fetch_assoc;
  47. echo $row['password'];
  48. ?>
  49. #################################
  50. db.php
  51. #################################
  52. <?php
  53. $host = '54.36.333.138';
  54. $database = 'db';
  55. $user = 'db';
  56. $password = 'pass';
  57. $con = mysqli_connect($host, $user, $password, $database);
  58. $con->set_charset("utf8");
  59. ?>
  60. ##################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement