<?
$canContinue = true;
?>
<table align="center" cellpadding="0" cellspacing="0" width="471" border="0">
<tr>
<td style="border:1px solid black">


<table align="center" cellpadding="7" cellspacing="0" width="470" style="background-color:#ebebeb;border-none;border-left:1px solid white;border-right:1px solid gray;border-bottom:1px solid gray">
<tr>
	<td colspan="3" style="font-weight:bold;padding-bottom:5px;padding-top:5px;background-color:gold;color:black;text-align:right;border-bottom:1px solid gray;border-top:1px solid yellow"><?$lang->display("System Requirements Testing");?></td>
</tr>
<tr>
	<td height="150" valign="top" style="padding:15px;">


<table border="0" cellpadding="3" cellspacing="1" class="bordered" width="100%">
<tr class="header">
	<td><?$lang->display("Requirement");?></td>
	<td><?$lang->display("Detected");?></td>
	<td><?$lang->display("Status");?></td>
</tr>
<tr>
	<td><?$lang->display("PHP version");?></td>
	<td><?echo phpversion();?></td>
	<?
	if (version_compare(phpversion(), "4.3.3", "<")) {
	$canContinue = false;
	?>
<td style="border:1px solid red"><?$lang->display("%1 needs at least version 4.3.3 to work correctly.", array(($sys['license']['unbranded']?$sys['license']['unbranded']:"Afian")));?></td>
	<?
	} else {
	?>
	<td style="background-color:green;color:white;font-weight:bold"><?$lang->display("ok");?></td>
	<?}?>
</tr>
<tr>
	<td><?$lang->display($lang->get("PHP configuration: safe_mode"));?></td>
	<td><?echo isCfgOn("safe_mode")?"on":"off";?></td>
	<?
	if (isCfgOn("safe_mode")) {
	$canContinue = false;
	?>
<td style="border:1px solid red"><?$lang->display("A file manager application cannot work correctly when PHP is in safe mode.");?></td>
	<?
	} else {
	?>
	<td style="background-color:green;color:white;font-weight:bold"><?$lang->display("ok");?></td>
	<?}?>
</tr>
<tr>
	<td><?$lang->display("PHP configuration: open_basedir");?></td>
	<td><?echo ini_get("open_basedir");?></td>
	<?
	if (strlen(ini_get("open_basedir")) > 0) {
	?>
<td style="border:1px solid red"><?$lang->display("It is highly probable that %1 will not work correctly if PHP is restricted with this option.", array(($sys['license']['unbranded']?$sys['license']['unbranded']:"Afian")));?></td>
	<?
	} else {
	?>
	<td style="background-color:green;color:white;font-weight:bold"><?$lang->display("ok");?></td>
	<?}?>
</tr>
</table>



<br>
<?
if (!$canContinue) {
?>
<span style="color:red"><?echo $msg;?><br><br><?$lang->display("Please fix the problems and then restart the 	installation.");?></span>
<?
} else {
?>
<?$lang->display("Click Next to continue.");?>
<?}?>
	</td>
</tr>
</table>

</td>
</tr>
</table>

<br>

<table align="center" cellpadding="0" cellspacing="0" width="470">
<tr>
	<td style="height:40px;text-align:left">
		<input type="button" value="&laquo; <?$lang->display("Back");?>" onclick="document.location.href='?'" style="cursor:hand;cursor:pointer;">
	</td>
	<td style="height:40px;text-align:right">
	<input type="submit" value="<?$lang->display("Next");?> &raquo;" name="submit" style="cursor:hand;cursor:pointer;" <?if ($canContinue) {?>onclick="document.location.href='?step=1'"<?}else{echo "disabled";}?>>
	</td>
</tr>
</table>