path}");
$content = "
$title
\n\n";
while (($file = readdir($handle)) !== false)
{
if (substr($file, 0, 1) == '.') continue;
if (is_dir("$dir$file")) $file .= '/';
$file = html_encode($file);
$content .= "- $file
\n";
}
$content .= "
\n";
parent::__construct($data, $content);
$this->title = $title;
$this->noindex = true;
}
function display() {
$this->display_template($this->template_params($this->content));
}
}