Ejemplo n.º 1
0
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 $file_data = ' ' . implode(" ", $file_meta);
 if ($file_classes != null) {
     $file_attr = ' class="' . implode(" ", $file_classes) . '"';
 } else {
     $file_attr = null;
 }
 $table_body .= "<a href=\"" . htmlentities(rawurlencode($item['bname']), ENT_QUOTES, 'utf-8') . "\"{$file_attr}{$file_data}{$virtual_attr}{$modified_attr}>" . utf8ify($display_name) . "</a></td>" . PHP_EOL;
 // Size
 if ($table_options['size']) {
     $table_body .= "            <td";
     if ($options['general']['enable_sort']) {
         $table_body .= " class=\"text-" . $right . "\" data-sort-value=\"" . $item['bytes'] . "\"";
         $table_body .= " title=\"" . $item['bytes'] . " " . _('bytes') . "\"";
     }
     $table_body .= ">" . $item_pretty_size . "</td>" . PHP_EOL;
 }
 // Modified
 if ($table_options['age']) {
     $table_body .= "            <td";
     if ($options['general']['enable_sort']) {
         $table_body .= " class=\"text-" . $right . "\" data-sort-value=\"" . $item['mtime'] . "\"";
         $table_body .= " title=\"" . $item['iso_mtime'] . "\"";
Ejemplo n.º 2
0
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 $file_data = ' ' . implode(" ", $file_meta);
 if ($file_classes != null) {
     $file_attr = ' class="' . implode(" ", $file_classes) . '"';
 } else {
     $file_attr = null;
 }
 $table_body .= "<a href=\"" . htmlentities(rawurlencode($item['bname']), ENT_QUOTES, 'utf-8') . "\"{$file_attr}{$file_data} data-modified=\"" . $item_pretty_size . "\">" . utf8ify($display_name) . "</a></td>" . PHP_EOL;
 // Size
 if ($table_options['size']) {
     $table_body .= "            <td";
     if ($options['general']['enable_sort']) {
         $table_body .= " class=\"text-" . $right . "\" data-sort-value=\"" . $item['bytes'] . "\"";
         $table_body .= " title=\"" . $item['bytes'] . " " . _('bytes') . "\"";
     }
     $table_body .= ">" . $item_pretty_size . "</td>" . PHP_EOL;
 }
 // Modified
 if ($table_options['age']) {
     $table_body .= "            <td";
     if ($options['general']['enable_sort']) {
         $table_body .= " class=\"text-" . $right . "\" data-sort-value=\"" . $item['mtime'] . "\"";
         $table_body .= " title=\"" . $item['iso_mtime'] . "\"";
Ejemplo n.º 3
0
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 $file_data = ' ' . implode(" ", $file_meta);
 if ($file_classes != null) {
     $file_attr = ' class="' . implode(" ", $file_classes) . '"';
 } else {
     $file_attr = null;
 }
 $table_body .= "<a href=\"" . ("/content" . substr($navigation_dir, 1)) . htmlentities(rawurlencode($item['bname']), ENT_QUOTES, 'utf-8') . "\"{$file_attr}{$file_data}{$virtual_attr}{$modified_attr}>" . utf8ify($display_name) . "</a>";
 // Append checksum info if enabled
 if ($options['general']['enable_checksums'] == true && !empty($options["checksum_files"])) {
     foreach ($options["checksum_files"] as $chksum_ext) {
         if (array_key_exists($chksum_ext, $item)) {
             // Fake indentation
             if ($options['bootstrap']['icons'] == 'fontawesome' || $options['bootstrap']['icons'] == 'fa' || $options['bootstrap']['icons'] == 'fa-files') {
                 $fake_indent = "<span class=\"fa fa-fw\"></span> ";
             } else {
                 $fake_indent = null;
             }
             // Construct href to original checksum file though client can download
             if ($options['bootstrap']['checksum_label'] != null) {
                 $label = "<span class=\"label " . $options['bootstrap']['checksum_label'] . "\">" . strtoupper($chksum_ext) . "</span> ";
             } else {
                 $label = null;