function listCurrentPath() { // Verzeichniseintrag holen $path = new Path(); if (!$path->selectByName($_SESSION["path"])) { fehlerausgabe("Verzeichnis existiert nicht!"); return false; } // ACL für das Verzeichnis holen //$user = $_SESSION["user"]; $acl = $_SESSION["user"]->getACLByPath($path->pathname); if ($acl->read_path != "1") { fehlerausgabe("Zugriff auf {$path->pathname} verweigert"); return false; } printHeader($path); // Verzeichnisse listen $pathlist = new PathList(); $pathlist->selectByParentId($path->path_id); for ($i = 0; $i < count($pathlist->list); $i++) { $acl = @$_SESSION["user"]->getACLByPath($pathlist->list[$i]->pathname); if ($acl->read_path) { printDirectoryEntry($pathlist->list[$i], false); } } $filelist = new FileList(); $filelist->selectByPathId($path->path_id); for ($i = 0; $i < count($filelist->list); $i++) { printDirectoryEntry($filelist->list[$i], true); } printFooter(); }