foreach ($dirs as $dir)
{
echo '<tr>';
if (!in_array($dir, $forbiddenDirs))
{
$link = 'index.php?path=/'.$dir;
echo '<td class="noborder">[
url="'.$link.'"]'.$dir.'[/
url]</td>
<td class="noborder" align="center">[DIR]</td>
<td class="noborder" align="center" width=150px>'.date("Y-m-d H:i",filemtime($path.'/'.$dir)).'</td>
<td class="noborder"</td>';
}
echo '</tr>';
}
foreach ($files as $file)
{
echo '<tr>';
if (!in_array($file, $hiddenFiles))
{
$size = number_format(ceil(filesize($path.'/'.$file) / 1024), 0);
echo '<td class="noborder">[
url="/'.$file.'"]'.$file.'[/
url]</td>
<td class="noborder" align="right">'.$size.'k</td>
<td class="noborder" align="center" width=150px>'.date("Y-m-d H:i",filemtime($path.'/'.$file)).'</td>
<td class="noborder">'.getTitleFromHTML($path.'/'.$file).'</td>';
}
echo '</tr>';
}