?> </td> <?php } ?> <?php } ?> </tr> <?php } ?> </tbody> </table> <?php $totalSize = sizeReadable(totalSize()); ?> <?php $term = searchTag() ? _('Found %s element(s) totalling %s %s in size.') : _('This directory contains %s element(s) totalling %s %s in size.'); ?> <?php } else { ?> <div id="nothing"> <p> <?php if (searchTag()) { ?> <?php echo _('No search result.'); ?>
/** * Adds human readable modfication time and size. * @param array $elements * @return array */ function addHumanInformation(&$elements) { if (is_array($elements)) { foreach ($elements as $key => $elementData) { if ($elementData['readable']) { $elements[$key]['sizer'] = sizeReadable($elementData['bytes']); $elements[$key]['mtimer'] = lastModificationReadable($elementData['mtime']); } } return true; } else { return false; } }