Advertisement
Guest User

Untitled

a guest
Jul 26th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 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. include "../app/config/base.php";
  15. include "mt/mt_pwd.php";
  16. include "license/request.inc.php";
  17. $mysql = array();
  18. $mysql["domain"] = "";
  19. $mysql["click_ip"] = "";
  20. $mysql["click_time"] = "";
  21. $error = "";
  22. $html["userName"] = "";
  23. $isValid = 0;
  24. $statusError = 0;
  25. $coreError = "";
  26. $verified = false;
  27. $msgHeader = "";
  28. $msg = "";
  29. $tokenId = 0;
  30. $loginFailed = false;
  31. $responseDataEncryptCipher_W8u2p3urm5 = "x(ou=kzKa-#skP~cwr";
  32. $responseApiKey_JqeXTfS3du = "iM??#X2[{E;E(m,!c%";
  33. if ($_SERVER["REQUEST_METHOD"] == "POST")
  34. {
  35. $verified = true;
  36. $tokenId = $_POST["tokenId"];
  37. $tokenName_str = !$_SESSION[$tokenId . "_tokenName"] ? ($_SESSION[$tokenId . "_tokenName"]) : "";
  38. $tokenValue_str = !empty($_POST[$tokenName_str]) ? ($_POST[$tokenName_str]) : "";
  39. $postAuthorization = new PostAuthorization($tokenId);
  40. $validPost = $postAuthorization->validated($tokenName_str, $tokenValue_str);
  41. if ($validPost)
  42. {
  43. $_POST = array_map(array("HtmlHelper", "decodeHtml"), $_POST);
  44. $userName = $_POST["userName"];
  45. $userPassword = $_POST["userPassword"];
  46. $loginSql = $db->prepare("SELECT *\r
  47. FROM mt_account\r
  48. WHERE user_name = :user_name");
  49. $loginSql->bindParam(":user_name", $userName, PDO::PARAM_STR);
  50. $result = $loginSql->execute();
  51. if ($result)
  52. {
  53. if ($data = $loginSql->fetch(PDO::FETCH_ASSOC))
  54. {
  55. $bcrypt = new Bcrypt();
  56. $isGood = $bcrypt->verify($userPassword, $data["user_password"]);
  57. if (!$isGood)
  58. {
  59. $error = "Your password is incorrect.";
  60. $log = new Login(0, $userName, "Password");
  61. $log->logger();
  62. }
  63. else
  64. {
  65. $_SESSION["iMobi_sessionTime"] = time();
  66. $_SESSION["iMobi_userName"] = $userName;
  67. $_SESSION["iMobi_userId"] = $data["user_id"];
  68. $_SESSION["iMobi_timezone"] = $data["user_timezone"];
  69. $_SESSION["iMobi_Login"] = true;
  70. if (LOGIN_LOG)
  71. {
  72. $log = new Login(1, $userName);
  73. $log->logger();
  74. }
  75. $location = $_SERVER["SERVER_NAME"] . $_SERVER["SCRIPT_NAME"];
  76. $location = "http://" . str_ireplace("account/" . LOGIN_PAGE, "", $location);
  77. $stmt = $db->prepare("UPDATE mt_account SET mt_location = :location; UPDATE mt_campaigns SET mt_location = :location;");
  78. $stmt->bindParam(":location", $location, PDO::PARAM_STR);
  79. $stmt->execute();
  80. .............................................................................
  81. .....................................
  82. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement