<?php 
$dataArray = array(
	'ftp_user'=> $_REQUEST['ftp_user'],
	'ftp_pass'=>$_REQUEST['ftp_pass'],
	'ftp_port'=>$_REQUEST['ftp_port'],
	'sftp'=> (isset($_REQUEST['sftp']))?$_REQUEST['sftp']:0,
	'passv'=> (isset($_REQUEST['passv']))?$_REQUEST['passv']:0,
	'upd_rcopy'=> (isset($_REQUEST['upd_rcopy']))?$_REQUEST['upd_rcopy']:0,
	'ftp_path'=> (isset($_REQUEST['ftp_path']))?$_REQUEST['ftp_path']:'',
	'mysql_host'=> (isset($_REQUEST['mysql_host']))?$_REQUEST['mysql_host']:'127.0.0.1',
	'mysql_db'=> (isset($_REQUEST['mysql_db']))?$_REQUEST['mysql_db']:'',
	'mysql_user'=> (isset($_REQUEST['mysql_user']))?$_REQUEST['mysql_user']:'',
	'mysql_pass'=> (isset($_REQUEST['mysql_pass']))?$_REQUEST['mysql_pass']:'',
	'mysql_port'=> (isset($_REQUEST['mysql_port']))?$_REQUEST['mysql_port']:3306,
	'tesae_user'=> (isset($_REQUEST['tesae_user']))?$_REQUEST['tesae_user']:'',
	'tesae_pass'=> (isset($_REQUEST['tesae_pass']))?$_REQUEST['tesae_pass']:'',
	'islocl'=> (isset($_REQUEST['islocl']) && $_REQUEST['islocl'] == 1)?1:0,
	'apppath' =>(isset($_REQUEST['apppath']))?$_REQUEST['apppath']:'' 
); 
?>
<div id="result_title">
<?php  
	echo $dic['install_results'];
?>
</div>

<div id="results">
	<pre></pre>
</div>
	
<script >
	$(document).ready(function() { 
		startInstall( jQuery.parseJSON(<?php echo "'".json_encode($dataArray) ."'"; ?> ) );
	});
</script>