<?
########## Confixx(R) 3.0 Professional ############
####### Copyright SWsoft, Inc. 2004-2005 ##########
#### http://www.sw-soft.com - info@sw-soft.com ####

include_once("auth.php");
include("ftp_header.php");

if($ftp->ftp_chdir($path)) {
?>
<FORM METHOD="POST" ACTION="ftp_index.php?path=<?= urlencode($path) ?>" ENCTYPE="multipart/form-data">
<INPUT TYPE="hidden" NAME="upld" VALUE="<?= htmlspecialchars($path) ?>">
<INPUT TYPE="hidden" NAME="path" VALUE="<?= htmlspecialchars($path) ?>">

<table width="497" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF" class="tblbgcolor">
<tr><td width="150" align=right><nobr><? echo $lang_text['wftp_upload_file'] ?></nobr></td>
<td colspan="2">
<INPUT NAME="filename" TYPE="file"></td></tr>
<tr><td align=right><nobr><? echo $lang_text['wftp_upload_filename'] ?></nobr></td>
<td colspan="2">
<INPUT type="text" NAME="new_name"></td></tr>
<tr><td align=right><nobr><? echo $lang_text['wftp_intopath'] ?></nobr></td>
<td colspan="2">
<INPUT type="text" NAME="in_dir" value="<?= htmlspecialchars($path) ?>"></td></tr>
<tr><td align=right><nobr><? echo $lang_text['wftp_upload_force']  ?></nobr></td>
<td colspan="2">
<INPUT TYPE="checkbox" NAME="force" value="1"></td></tr>
<tr>
<td height="40" align="center"><? echo std_button(ltext("wftp_back"), 'javascript:history.back()'); ?></td>
<td width="82" align="center"><? echo std_button(ltext("wftp_reset"), 'javascript:document.forms[0].reset()'); ?></td>
<td width="239" align="center"><? echo std_button(ltext("wftp_upload"), 'javascript:document.forms[0].submit()'); ?></td>
</tr>
</table>
<p>&nbsp;</p>
</FORM>

<?
} else {
  addInfoBoxMsg($lang_text["wftp_chdir_failed"],"|%fullpath%","|$path");
}
showInfoBox();

include("ftp_footer.php");
?>
