<!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=utf8" />
	<title></title>
	<style type="text/css">
		#sucess{
			width:440px;
			height:340px;
			border:4px solid #B4D6F2;
			margin-top:100px;
		}
		.sucess_top{
			width:440px;
			height:86px;
			background:#EEEEEE;
			position:relative;
		}
		.discur_xzaz{
			width:440px;
			height:30px;
			background:#EEEEEE;
		}
		.discur_xzaz span{
			width:140px;
			color:#095596;
			font-weight:bold;
			font-size:12px;
			display:block;
			float:left;
			margin-left:8px;
			margin-top:8px;
		}
		.discur_xzaz a{
			display:block;
			float:right;
			width:16px;
			height:16px;
			margin-right:8px;
			margin-top:5px;
		}
		.sucess_top_jc{
			width:440px;
			height:50px;
			background:#E0EAF3;
			font-size:12px;
			font-weight:bold;
			color:#666569;
			border-bottom:2px solid #C4D6E4;
		}
		.sucess_top_jc div{
			float:left;
			margin-left:32px;
			margin-top:18px
		}
		.sucess_top_img{
			background:url(images/liuchengxian_1.png);
			width:360px;
			height:12px;
			margin-left:32px;
			position:absolute;
			top:74px;
		}
		.jiantou{
			float:left;
			margin-right:160px;
		}
		.wancheng{
			float:right;
		}
		.sucess_bottom{
			width:440px;
		}
		.sucess_bottom_one{
			background:url(images/duigou_da.png);
			background-position:left center;
			background-repeat:no-repeat;
			padding-left:23px;
			font-weight:bold;
			width:300px;
			height:18px;
			margin-left:auto;
			margin-right:auto;
			margin-top:70px;
		}
		.sucess_bottom_two{
			width:200px;
			height:18px;
			font-size:12px;
			margin-left:85px;
			margin-top:30px;
		}
		.finish{
			display:block;
			width:60px;
			height:26px;
			border:none;
			background:#005494;
			color:#ffffff;
			font-size:12px;
			float:right;
			margin-right:10px;
			margin-top:70px;
		}
	</style>
</head>
<body style="margin:0px;padding:0px;" align="center">
<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);
@set_time_limit(1000);
@set_magic_quotes_runtime(0);

define('ROOT_PATH', dirname(__FILE__).'/../');
include('../common.php');


$pwd =$_POST['pwd'];
if(file_exists('install.log'))
{
	echo "<script>window.location = 'index.php'</script>";
}else{
$sql = "update ".tname("appmaker_password")." set `password` = '$pwd'" ;
$_TD->FM($sql);
}

?>
<form action = 'http://www.appmaker.cc/found.php'>
	<div id="sucess" style="margin-left:auto;margin-right:auto;">
		<div class="sucess_top">
			<div class="discur_xzaz">
			   <span>APPMAKER APP插件安装</span>
			   <a href=""><img src="images/close.png" alt="" /></a>
		    </div>
		   
			<div class="sucess_top_jc">
				<div>第一步：检查权限，设置密码</div>
				
				<div>第二步：安装插件</div>
			</div>
			<div class="sucess_top_img">
				<div class="jiantou"><img src="images/blue_jiantou.png" alt="" /></div>
				
				<div class="wancheng"><img src="images/grey_jiantou.png" alt="" /></div>
			</div>
			
		</div>
		<div class="sucess_bottom">
			<div class="sucess_bottom_one">APPMAKER APP插件已成功安装</div>
			<div class="sucess_bottom_two">单击[去生成]生成您网站的APP。</div>
		    <input type="submit" value="去生成" class="finish" id="finish" />
		</div>
	</div>
</form>
</body>
</html>
<?php 
$fopen = fopen('install.log', 'w+');
fwrite($fopen, 'success',3);
?>