return;
}
+ function index()
+ {
+ $this->handler;
+ if (empty($this->handler)) {
+ return;
+ }
+ $User = NULL;
+ $Page = $this;
+ $res = include "./{$this->handler}/index.php";
+ return $res;
+ }
+
function restricted()
{
$this->handler;
function files()
{
# order alphabetically by link
- $dir = iterator_to_array(new RecursiveIteratorIterator($this->iterator));
- array_walk($dir, function (&$row, $name) {
- # prepare values for sorting (directory index first)
- $row = preg_replace('{/index\.html$}', '', $name);
- });
- asort($dir);
+ $dir = [];
+ foreach (new RecursiveIteratorIterator($this->iterator) as $name) {
+ $article = new ArchiveArticle($name);
+ $dir[$article->link] = $article;
+ }
+ ksort($dir);
return $dir;
}
}