<? include_once("inc/header.php"); ?>
<?
if(!$allow_upload){ Header("Location: index.php"); }
$handle = dir($upload_dir);
?>
<table width="25%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#c0c0c0" nowrap class="header">Uploaded Files</td>
</tr>
</table>
<table width="25%" align="center" border="0" cellpadding="0" cellspacing="0">
<?
while ($file = $handle->read())
{
if(($file != ".") && ($file != ".."))
{
print " <tr>\n";
print " <td nowrap class=\"main\">" . $file . "</td>\n";
print " </tr>\n";
}
}
?>
</table>
<? include_once("inc/footer.php"); ?>