Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- include "mt/mt_pconnect.php";
- include "mt/mt_pwd.php";
- include "license/request.inc.php";
- $mysql = array();
- $mysql["domain"] = "";
- $mysql["click_ip"] = "";
- $mysql["click_time"] = "";
- $error = "";
- $html["userName"] = "";
- $isValid = 0;
- $statusError = 0;
- $coreError = "";
- $verified = false;
- $msgHeader = "";
- $msg = "";
- $responseDataEncryptCipher_W8u2p3urm5 = "x(ou=kzKa-#skP~cwr";
- $responseApiKey_JqeXTfS3du = "iM??#X2[{E;E(m,!c%";
- if ($_SERVER["REQUEST_METHOD"] == "POST")
- {
- $verified = true;
- $userName = htmlInput(filter_input(INPUT_POST, "userName", FILTER_SANITIZE_URL));
- $user_password = $_POST["user_password"];
- try
- {
- $loginSql = $db->prepare("SELECT * \r
- FROM mt_account\r
- WHERE user_name=:user_name");
- $loginSql->bindParam(":user_name", $userName, PDO::PARAM_STR);
- if ($loginSql->execute())
- {
- if ($data = $loginSql->fetch(PDO::FETCH_ASSOC))
- {
- $bcrypt = new Bcrypt();
- $isGood = $bcrypt->verify($user_password, $data["user_password"]);
- if (!$isGood)
- {
- $error = "Your password is incorrect.";
- }
- else
- {
- $_SESSION["iMobi_sessionTime"] = time();
- $_SESSION["iMobi_userName"] = $userName;
- $_SESSION["iMobi_userId"] = $data["user_id"];
- $_SESSION["iMobi_timeout"] = $data["user_timeout"];
- $_SESSION["iMobi_timezone"] = $data["user_timezone"];
- $_SESSION["iMobi_Login"] = true;
- if (!empty($_SESSION["lastPage"]))
- {
- $redirect = $_SESSION["lastPage"];
- unset($_SESSION["lastPage"]);
- }
- else
- {
- $redirect = "campaigns.php";
- }
- header("location: " . $redirect);
- exit();
- }
- }
- else
- {
- $error = "The username entered is not found.";
- }
- $html["userName"] = htmlOutput($_POST["userName"]);
- }
- else
- {
- $dbConnectError = $loginSql->errorCode();
- $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);
- }
- }
- catch (Exception $e)
- {
- $mysqlError .= $e->getMessage();
- }
- }
- else
- {
- $request = new RestRequest(null, "POST");
- $request->execute();
- $c_data = json_decode($request["responseBody"]);
- $isValid = trim(mcrypt_decrypt(MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode($c_data["info1"]), MCRYPT_MODE_ECB));
- $statusCode = trim(mcrypt_decrypt(MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode($c_data["info2"]), MCRYPT_MODE_ECB));
- $responseApiKey_mnwTcIrW3c = trim(mcrypt_decrypt(MCRYPT_BLOWFISH, $responseDataEncryptCipher_W8u2p3urm5, rawurldecode($c_data["info"]), MCRYPT_MODE_ECB));
- if ($responseApiKey_mnwTcIrW3c == $responseApiKey_JqeXTfS3du)
- {
- $_SESSION["imobi_data"] = array("imVersion" => $c_data->iVersion, "xmlVersion" => $c_data->dVersion);
- }
- else
- {
- $isValid = 0;
- $statusCode = 5;
- }
- .......................................................
- ........................
- ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement