<form action="?step=2" name="step2form" method="post">
<table align="center" cellpadding="0" cellspacing="0" width="471">
<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("STEP 2/2: SYSTEM SETTINGS");?></td>
</tr>
<tr>
	<td height="80" valign="top" style="padding:10px;">
<?if ($msg){?><div style="color:red;background-color:white;border:1px solid gray;border-right:1px solid white;border-bottom:1px solid white;padding:4px;margin-bottom:4px;"><?echo $msg;?></div><?}?>
<table border="0">
<tr>
	<td nowrap><?$lang->display("Home folder for \"<b>default</b>\" user group");?></td>
	<td><input type="text" value="<?echo ($_POST['defaultHomeFolder'])?$str->fromHTML($_POST['defaultHomeFolder']):dirname($sys['root']);?>" name="defaultHomeFolder" size="18"><input type="button" value="<?$lang->display("Browse..");?>" onclick="centeredMenu('treeContainerOverflowDiv')" style="cursor:hand;cursor:pointer;"></td>
</tr>
<tr>
	<td colspan="2">
	<li><?$lang->display("This is the folder managed by \"<b>admin</b>\" user and can be changed later.");?></li>
	<li><?$lang->display("The path must point to an existing folder, that has <em>read</em> and <em>write</em> permissions.");?></li> 
	</td>
</tr>
</table>



<script src="js/compiled/for_tree_browser.js" type="text/javascript" language="JavaScript1.2"></script>
<link rel="stylesheet" type="text/css" rev="stylesheet" href="css/includer.php?files=tree.css">
<?include($sys['root']."/system/includes/folder_browser.inc");?>
<script>
function folderBrowserSelected(path) {
	document.step2form.defaultHomeFolder.value=path;
}
</script>

	</td>
</tr>


<?/*?>
<!-- 
<tr>
	<td height="90" valign="top" style="padding:10px;">

<table border="0">
<tr>
	<td nowrap><input name="customTrashFolder" type="checkbox" onchange="if(this.checked){this.form.trashFolder.disabled=false;}else{this.form.trashFolder.disabled=true;}"><?$lang->display("Custom Trash folder location (Optional)");?></td>
	<td><input type="text" value="<?echo $str->fromHTML($_POST['trashFolder']);?>" name="trashFolder" size="30" disabled></td>
</tr>
<?if ($_POST['customTrashFolder']){?>
<script>
document.step3form.customTrashFolder.checked = true;
document.step3form.trashFolder.disabled = false;
</script>
<?}?>
<tr>
	<td colspan="2">
	<li><?$lang->display("This is where the deleted files of users will be stored.");?></li>
	<li><?$lang->display("If unspecified the files will be stored in Afian's installation folder.");?></li>
	<li><?$lang->display("The path must point to an existing folder with CHMOD 777.");?></li>
	</td>
</tr>
</table>
	</td>
</tr> -->
<?*/?>

<tr>
	<td height="100" valign="top" style="padding:10px;">
	<b><?$lang->display("NOTES");?></b>:
	<br>
	<li><?$lang->display("For security reasons the above path should point to a folder outside the public area of your webserver (ie. not in your ../public_html/.. folder).");?></li>
	<li><?$lang->display("Folder path example (including Windows): /home/user/files/");?></li>
	</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='?step=1'" style="cursor:hand;cursor:pointer;">
	</td>
	<td style="height:40px;text-align:right">
	<input type="submit" name="submit" value="<?$lang->display("Finish");?> &raquo;" style="cursor:hand;cursor:pointer;">
	</td>
</tr>
</table>
</form>
<script language="JavaScript1.2" type="text/javascript">
preloadStupidMSIEElementsPosition();
</script>