Advertisement
Guest User

Untitled

a guest
Jan 29th, 2014
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. include "mt/mt_pconnect.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. $responseDataEncryptCipher_W8u2p3urm5 = "x(ou=kzKa-#skP~cwr";
  30. $responseApiKey_JqeXTfS3du = "iM??#X2[{E;E(m,!c%";
  31. if ($_SERVER["REQUEST_METHOD"] == "POST")
  32. {
  33. $verified = true;
  34. $userName = htmlInput(filter_input(INPUT_POST, "userName", FILTER_SANITIZE_URL));
  35. $user_password = $_POST["user_password"];
  36. try
  37. {
  38. $loginSql = $db->prepare("SELECT * \r
  39. FROM mt_account\r
  40. WHERE user_name=:user_name");
  41. $loginSql->bindParam(":user_name", $userName, PDO::PARAM_STR);
  42. if ($loginSql->execute())
  43. {
  44. if ($data = $loginSql->fetch(PDO::FETCH_ASSOC))
  45. {
  46. $bcrypt = new Bcrypt();
  47. $isGood = $bcrypt->verify($user_password, $data["user_password"]);
  48. if (!$isGood)
  49. {
  50. $error = "Your password is incorrect.";
  51. }
  52. else
  53. {
  54. $_SESSION["iMobi_sessionTime"] = time();
  55. $_SESSION["iMobi_userName"] = $userName;
  56. $_SESSION["iMobi_userId"] = $data["user_id"];
  57. $_SESSION["iMobi_timeout"] = $data["user_timeout"];
  58. $_SESSION["iMobi_timezone"] = $data["user_timezone"];
  59. $_SESSION["iMobi_Login"] = true;
  60. if (!empty($_SESSION["lastPage"]))
  61. {
  62. $redirect = $_SESSION["lastPage"];
  63. unset($_SESSION["lastPage"]);
  64. }
  65. else
  66. {
  67. $redirect = "campaigns.php";
  68. }
  69. header("location: " . $redirect);
  70. exit();
  71. }
  72. }
  73. else
  74. {
  75. $error = "The username entered is not found.";
  76. }
  77. $html["userName"] = htmlOutput($_POST["userName"]);
  78. }
  79. else
  80. {
  81. $dbConnectError = $loginSql->errorCode();
  82. $dbConnectError = $dbConnectError == "3D000" ? "Database Connection Error: (DATABASE NOT DEFINED) - The database in mt/mt_config.php is blank. Enter a database name in mt/mt_config.php to connect to the database.<br><br>(Also, be sure the correct databse user name and password are entered in mt/mt_config.php)" : ("Error Code - " . $dbConnectError);
  83. }
  84. }
  85. catch (Exception $e)
  86. {
  87. $mysqlError .= $e->getMessage();
  88. }
  89. }
  90. else
  91. {
  92. $request = new RestRequest(null, "POST");
  93. $request->execute();
  94. $c_data = json_decode($request["responseBody"]);
  95. $isValid = trim(mcrypt_decrypt(MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode($c_data["info1"]), MCRYPT_MODE_ECB));
  96. $statusCode = trim(mcrypt_decrypt(MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode($c_data["info2"]), MCRYPT_MODE_ECB));
  97. $responseApiKey_mnwTcIrW3c = trim(mcrypt_decrypt(MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode($c_data["info"]), MCRYPT_MODE_ECB));
  98. if ($responseApiKey_mnwTcIrW3c == $responseApiKey_JqeXTfS3du)
  99. {
  100. $_SESSION["imobi_data"] = array("imVersion" => $c_data->iVersion, "xmlVersion" => $c_data->dVersion);
  101. }
  102. else
  103. {
  104. $isValid = 0;
  105. $statusCode = 5;
  106. }
  107. .......................................................
  108. ........................
  109. ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement