Multi cache pool support

This commit is contained in:
bergware
2020-04-12 04:28:08 +02:00
parent 6ed7e5f3b0
commit cd682b613b
+1 -2
View File
@@ -59,11 +59,10 @@ if ($user && count($rows)) {
$tag = implode('|',array_merge(['disk'],pools_filter($disks)));
$set = explode(';',str_replace(',;',',',preg_replace("/($tag)/",';$1',exec("shopt -s dotglob; getfattr --no-dereference --absolute-names --only-values -n system.LOCATIONS $all 2>/dev/null"))));
}
foreach ($rows as $row) {
foreach ($rows as &$row) {
if ($user) $row .= '|'.$set[++$i];
if (substr($row,0,9)=='directory') $dirs[] = $row; else $files[] = $row;
}
unset($rows,$set);
echo "<thead><tr><th>"._('Type')."</th><th class='sorter-text'>"._('Name')."</th><th>"._('Size')."</th><th>"._('Last Modified')."</th><th>"._('Location')."</th></tr></thead>";
if ($link = parent_link()) echo "<tbody class='tablesorter-infoOnly'><tr><td><div><img src='/webGui/icons/folderup.png'></div></td><td>$link</td><td colspan='3'></td></tr></tbody>";