IMobitrax 3.8 安装、破解

2,094次阅读
没有评论

安装教程一大堆,这里不复述。

需要服务器支持ioncube第三方组件。绝大多数空间支持,如是自己的vps,还需要手动安装。

安装完成后将以下代码替换account/login.php文件即可正常使用。

<?php
$error = '';
$_SESSION['imobi_data'] = array('imVersion' => '3.7', 'xmlVersion' => '3.5');
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
include( 'mt/mt_pconnect.php' );
include( 'mt/mt_pwd.php' );
$userName = $_POST['userName'];
$user_password = $_POST['userPassword'];
$loginSql = $db -> prepare('SELECT * FROM mt_account WHERE user_name=:user_name');
$loginSql -> bindParam(':user_name', $userName);
if ($loginSql -> execute())
{
$data = $loginSql -> fetch(PDO :: FETCH_ASSOC);
if ($data)
{
$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.';
}
}
else
{
$error = $loginSql -> errorCode();
$error = ($error == '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 - ' . $error);
}
}
?>
<!DOCTYPE html>
<html>
<body>
<div id="content">
<div id="main">
<h1>Login</h1>
<?php
if (!empty($error))
{
echo '<div class="error">' . $error . '</div>';
}
?>
<div id="login">
<form method="post" action="">
<input type="hidden" name="tokenId" value="605871997">
<input type="hidden" name="846c3d198c2af4004cdc58e6e5f00468d81bdda4" value="921541f1e1363396dda7d30197ea67593e9f6bcc">
<table class="login">
<tr>
<td class="name">Username:</td>
<td><input id="userName" type="text" name="userName" value=""></td>
</tr>
<tr>
<td class="name">Password:</td>
<td>
<input id="userPassword" type="password" name="userPassword">
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center"><input id="submit" style="margin:5px 0 0 0" class="submit_btn" type="submit" value="Sign In"></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</body>
</html>
风吹屁屁冷
版权声明:本站原创文章,由 风吹屁屁冷2019-12-06发表,共计2208字。
转载说明:
评论(没有评论)
载入中...