Файл: wap/mod/java/index.php
Строк: 5
<?
include 'header.php'; // Заголовок
$this_dir = "."; // Текущая директория
$dir = opendir($this_dir); // Открываем $this_dir
while ($file = readdir($dir)) // В цикле читаем $dir
{
if(
($file != ".") // Это
&& ($file != "..") // все
&& ($file != "jar") // не
&& ($file != "index.php") // будет
&& ($file != "header.php") // отображаться
&& ($file != "footer.php")) // .
{
echo "<a href="".$file."">".$file."</a><br/>"; // Ссылка на файл или директорию
}
}
echo "<br/>";
closedir($dir);
include 'footer.php'; // Конец заголовока
?>