<?php
if ($_POST['step'] == "step2") { ?>
<?php
$url = '';
if( $configArray['siteUrl'] ){
$url = $configArray['siteUrl'];
}else{
$root = $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'];
$root = str_replace( 'install/', '', $root);
$root = str_replace( '/index.php', '', $root);
$url = 'http://' . $root;
}
?>
<html>
<head>
<meta http-equiv="Content-Language" content="fa">
<meta http-equiv="Designer" content="Sasan Nobakht">
<meta http-equiv="Web" content="http://www.parsiphp.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script>
function Submit() {
document.Install.ok.click();
document.getElementById('loading').innerHTML = "در حال دريافت اطلاعات از سرور . لطفا چند لحظه صبر نماييد ...";
}
</script>
<link rel="stylesheet" type="text/css" href="images/two.css">
<title>Parsi Php Installation</title>
</head>
<body>
<table width="550" height="500" align="center" class="outline1" dir="rtl">
<tr>
<td width="60%" height="50" align="center"><img src="images/Logo.gif" align="middle"></td>
</tr>
<tr>
<td align="justify">با سلام و عرض ادب و احترام <br> از اينكه پارسي Php را براي مديريت سايت خود برگزيديد بسيار سپاسگزاريم . لطفا جهت ادامه نصب برنامه بر روي Validate كليك نماييد .<br></td>
</tr>
<tr>
<td width="39%" height="300" align="center" valign="top">
<form action="index.php" method="post" name="Install">
<table width="100%" align="center" class="outline2">
<tr>
<td align="center"><img src="images/b1.gif" border="0" onclick="Submit()" style="cursor:hand"><input type="input" name="d2" id="d2" value="<?php echo $url; ?>" style="width:0;height:0"><input type="hidden" name="Step" value="2"><input type="submit" name="ok" style="display:none"></td>
</tr>
<tr>
<td align="right" id="loading" style="color:#FFFFFF;padding-top:20;padding-right:50"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>