Guest User

Untitled

a guest
Apr 16th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  6. *
  7. * @ Version : 2.0.0.3
  8. * @ Author : DeZender
  9. * @ Release on : 06.05.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if ($settings["cloudflare_set"] == "1") {
  15. $ip = $_SERVER["HTTP_CF_CONNECTING_IP"];
  16. }
  17. else {
  18. $ip = $_SERVER["REMOTE_ADDR"];
  19. }
  20. if (!$user->LoggedIn()) {
  21. header("location: index.php?page=Login");
  22. exit();
  23. }
  24. if (!$user->notBanned($odb)) {
  25. header("location: index.php?page=logout");
  26. exit();
  27. }
  28. $CheckUserSQL = $odb->prepare("SELECT * FROM `users` WHERE `id` = :id");
  29. $CheckUserSQL->execute(array(":id" => $_SESSION["ID"]));
  30. $CheckUserIP = $CheckUserSQL->fetch(PDO::FETCH_ASSOC);
  31. if ($CheckUserIP["ip_address"] == "OFF") {
  32. header("location: index.php?page=");
  33. exit();
  34. }
  35. else {
  36. if ($CheckUserIP["ip_address"] == $ip) {
  37. header("location: index.php?page=");
  38. exit();
  39. }
  40. }
  41. include("header.php");
  42. echo("\x0a <!-- Page content -->\x0a <div id=\"page-content\">\x0a <!-- Wizard Header -->\x0a <div class=\"content-header\">\x0a <div class=\"row\">\x0a <div class=\"col-sm-6\">\x0a <div class=\"header-section\">\x0a <h1>2-STEP Verification</h1>\x0a </div>\x0a </div>\x0a <div class=\"col-sm-6 hidden-xs\">\x0a <div class=\"header-section\">\x0a <ul class=\"breadcrumb breadcrumb-top\">\x0a <li>Home</li>\x0a <li>2-STEP VERIFICATION</li>\x0a \x0a </ul>\x0a </div>\x0a </div>\x0a </div>\x0a </div>\x0a\x0a ");
  43. $SQLGetKey = $odb->prepare("SELECT `security_question` FROM `users` WHERE `ID` = :id");
  44. $SQLGetKey->execute(array(":id" => $_SESSION["ID"]));
  45. $question = $SQLGetKey->fetchColumn(0);
  46. if (isset($_POST["submitBtn"])) {
  47. $checkprior = $odb->prepare("SELECT COUNT(*) FROM 2step_logs WHERE ip = ? AND `date` > ?");
  48. $checkprior->execute(array($_SERVER["REMOTE_ADDR"], time() - 1500));
  49. if (5 <= $checkprior->fetchColumn()) {
  50. $omegas = "OMEGA IS SEXY";
  51. echo("<div class=\"alert alert-danger\">\x0a <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>\x0a </i>You have not answered the question correctly, please wait 25min then try again\x0a </div>");
  52. }
  53. $answer = $_POST["answer"];
  54. ......................................................
  55. .........................
  56. ............
Advertisement
Add Comment
Please, Sign In to add comment