[gollem] Suggestion for ability to follow directory symlinks...
karaar at bethel.edu
karaar at bethel.edu
Sun Jul 13 17:34:41 PDT 2003
Here's a patch you _may_ want to consider adding. It displays a link for
symlinks that are 'obviously' directories (symlink ends with a slash). Let me
know what you think or if you have questions.
Regards,
Aaron Kardell
PS -- Gollem is great -- thanks for making such a great program!
=========================================
At approximately line 302 of manager.php:
Replace:
$name = htmlspecialchars($item['name'] . ' -> ' .
$item['link']);
$link = $name;
with:
if (strrpos($item['link'], '/') == (strlen($item['link'])-1)) {
$name = htmlspecialchars($item['name'] . ' -> ' .
$item['link']);
$url = Horde::applicationUrl('manager.php');
$url = Horde::addParameter($url, 'dir',
Gollem::subdirectory(Gollem::getDir($backend_key), $item['name']));
$url = Horde::addParameter($url, 'backend_key', $backend_key);
$link = Horde::link($url, $item['name']) . '<b>' . $name .
'</b></a>';
} else {
$name = htmlspecialchars($item['name'] . ' -> ' .
$item['link']);
$link = $name;
}
More information about the gollem
mailing list