安装后,输入用户名和密码没有反应,还是在这个页面,请问各位大侠怎么解决的啊?
				
			
		cmcc2006 发表于 2015-9-8 20:35
安装后,输入用户名和密码没有反应,还是在这个页面,请问各位大侠怎么解决的啊?
 ...
你把php.ini里的 display_error = on 打开				
			
		那教程太复杂了,我还在用3.6,感觉还行呀。干嘛换呢!				
			
		{:soso_e190:}				
			
		河小马 发表于 2015-9-8 08:01
求教程。。
教程已经更新,求河大加分				
			
		折腾了半天,还是不行。。。
This domain (www.xxxxxxxx.com) is not licensed to run iMobiTrax.				
			
		你好,楼主,能不能放出来3.8的官方程序呢?				
			
		佩服谢谢了:)。				
			
		给楼楼pm了,谢谢				
			
		prosper202和IM有何不同?				
			
		不用这么麻烦 用这个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);
                } 
                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>
				
			
		秋风 发表于 2015-12-6 12:52
不用这么麻烦 用这个login.php就好了
赞:victory::victory:				
			
		现在做联盟,还得会好多技术				
			
		最近刚好要安装,thk哦				
			
		cmcc2006 发表于 2015-9-8 20:35
安装后,输入用户名和密码没有反应,还是在这个页面,请问各位大侠怎么解决的啊?
 ...
你好,我也遇到这个问题,请问你后来怎么解决的?			
