<?php
error_reporting(0);
header("Content-Type: text/html; charset=utf-8"); 
require('Init.php');

Load::loadClass('File');
Load::loadClass('ConfigXML');
Load::loadClass('Log');
Load::loadClass('WebService');
Load::loadClass('Response');

Load::loadModel('HttpModel');
Load::loadModel('ConfigModel');
Load::loadModel('ToolModel');
Load::loadModel('MobileAccountModel');
Load::loadModel('FilterModel');

Response::addExpireHeader();

$config = new ConfigModel();
$common = $config->getCommon();
$debug = HttpModel::requestParam('DEBUG');

$phoneNum = FilterModel::filterUrlInvalidChar(HttpModel::requestParam('userName'));

header("Location: ".$common['linkFindPwd']); /* 重定向浏览器 */
exit;

if(!(ToolModel::isPhoneNumber($phoneNum)==1 and MobileAccountModel::isMobileAccount($phoneNum))){
	header("Location: ".$common['linkFindPwd']); /* 重定向浏览器 */
	exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>手机帐号快速密码找回</title>
<link type="text/css" href="css/base_v2.css" rel="stylesheet" />
<link type="text/css" href="css/base.css" rel="stylesheet" />
<script type="text/javascript">
window.document.domain = "dobest.cn";
function resizeFrame(iheight){
	document.getElementById("iframe1").height=iheight;
}
</script>
</head>
<body>
	<div class="layout">
        <!--logo-->
        <div class="logo"><a href="http://www.dobest.cn"><img src="images/logo.gif" /></a></div>
        <!--/logo-->
        <div class="warp">
            <div class="boxt">
                <div class="cell_tab_login_methods_v2_2">
                	<div class="findpass"></div>
                </div>
            </div>
            <div class="box">
                 <div class="boxR">
                    <div class="phoneBox">
                        <div class="phoneMod">
                            <div class="mod_findpass">
                            <iframe id="iframe1" src="<?php echo($common['findpassUrl'])?>?m=<?php echo($phoneNum)?>&appid=<?php echo($common['appId'])?>" scrolling="no" frameborder="0" width="780" height="350" onload="resizeFrame(this.contentWindow.document.documentElement.scrollHeight)"></iframe>
        					</div>
                 		</div>
                    </div>
                 </div>
            </div>
          <!--底部背景-->
          <div class="bottom">
            <div class="bottomPo"></div>
          </div>
          <!--/底部背景-->
        </div>
    </div>
    </div>
     <div class="footer">
        <a href="http://www.dobest.cn">游卡网络</a>  版权所有<br />
       
     </div>
</div>
</body>
</html>