<!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" />
<title>Setup - <?php echo $set_product_name. " ". $set_product_version; ?></title>
<link href="kode_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/kode_functions.js"></script>
</head>
<body>
<div id="container">
<div id="head">
<div id="banner"><img src="images/top_head.gif" width="200" height="120" alt="Top" /></div>
<div id="logo"><img src="images/logo.png" width="216" height="80" alt="Logo" /></div>
</div>
<div id="area">Version: <?php echo $set_product_version; ?> </div>
<div id="main">
<div id="content_left">
<div class="title">Server Information</div>
<div class="table">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="120">Parameters</th>
<th align="center">Vaules</th>
</tr>
<tr>
<td>Server Name:</td>
<td><?php echo $pg_server_name; ?></td>
</tr>
<tr>
<td>Server OS:</td>
<td><?php echo (empty($pg_os)? "UNKNOW" : $pg_os); ?></td>
</tr>
<tr>
<td>Engine:</td>
<td><?php echo $pg_server_software; ?></td>
</tr>
<tr>
<td>PHP Version:</td>
<td><?php echo $php_version; ?></td>
</tr>
<tr>
<td>Server Root:</td>
<td><?php echo $ABSOLUTE_PATH; ?></td>
</tr>
</table>
</div>
<div class="title">PHP Version</div>
<div class="table">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120">Required:</td>
<td colspan="2"><?php echo $set_php_version_required; ?> (or higher)</td>
</tr>
<tr>
<td>You have:</td>
<td width="120"><?php echo $php_version; ?></td>
<td>
<?php echo (floatval($php_version) >= $set_php_version_required? "<span class='kode_success'></span>" : "<span class='kode_failed'></span>"); ?></td>
</tr>
</table>
</div>
<div class="title">PHP Extensions</div>
<div class="kode_clear"></div>
<div class="table">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120">Directive Title</td>
<td align="center">Required</td>
<td align="center">Current</td>
</tr>
<tr>
<td>MySQL Support</td>
<td align="center"><?php echo ($set_mysql_required? "<span class='kode_success'></span>" : "<span class='kode_failed'></span>"); ?></td>
<td align="center"><?php echo (function_exists('mysql_connect') ? "<span class='kode_success'></span>" : "<span class='kode_failed'></span>"); ?></td>
</tr>
<tr>
<td>GD Library</td>
<td align="center"><?php echo ($set_gd_required? "<span class='kode_success'></span>" : "<span class='kode_failed'></span>"); ?></td>
<td align="center"><?php echo (!empty ($pg_gd["GD Version"])? "<span class='kode_success'></span>" : "<span class='kode_failed'></span>"); ?></td>
</tr>
</table>
</div>
<div class="title">File Permissions</div>
<div class="kode_clear"></div>
<div class="table">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120">Folder</td>
<td align="center">Read</td>
<td align="center" >Write</td>
</tr>
<?php
foreach ($set_check_folder_permissions as $d) {
?>
<tr>
<td><?php echo $d; ?></td>
<?php
$fulld = str_replace('/*', '', $d);
$rsta = (is_readable($fulld) ? "<span class='kode_success'></span>" : "<span class='kode_failed'></span>");
$wsta = (is_writable($fulld) ? "<span class='kode_success'></span>" : "<span class='kode_failed'></span>");
?>
<td align="center"><?php echo $rsta; ?></td><td align="center"><?php echo $wsta; ?></td>
</tr>
<?php
}
?>
</table>
</div>
<div class="btn-box">
<input type="button" class="kode_button kode_button-green" value="Back" onclick="window.location.href='kode_core.php';" />
<input type="button" class="kode_button kode_button-blue" value="Next" onclick="window.location.href='kode_core.php?step=3';" />
</div>
</div>
<div id="content_right">
<div id="kode_step">
<div id="title">Installation Steps</div>
<ul>
<li>License</li>
<li class="now">Requirements</li>
<li>Parameters</li>
<li>Installing</li>
<li>Completed</li>
</ul>
</div>
</div>
<div class="spacer"></div>
</div>
<div id="footer">
<div id="copyright"><?php echo $set_product_copyright ?></div>
</div>
</div>
</body>
</html>