echo '<td style="width:70px;text-align:right;"><span>' . $fileOwnerName . '/' . $filePerms . '</span></td>'; } echo '<td class="file_date right"><span class="' . (dateIsToday($upload['date']) ? 'datetoday' : '') . '">' . output_date($upload['date']) . '</span></td>'; // delete echo '<td class="delete">'; if ($allowdelete) { echo '<a class="delconfirm" title="' . i18n_r('DELETE_FILE') . ': ' . htmlspecialchars($upload['name']) . '" href="deletefile.php?file=' . rawurlencode($upload['name']) . '&path=' . $urlPath . '&nonce=' . get_nonce("delete", "deletefile.php") . '">×</a>'; } echo '</td></tr>'; } } exec_action('file-extras'); // @hook file-extras after file list table rows echo '</tbody></table>'; if ($counter > 0) { $sizedesc = '(' . fSize($totalsize) . ')'; } else { $sizedesc = ''; } $totalcount = (int) $counter + (int) $foldercount; echo '<p><em><b><span id="pg_counter">' . $totalcount . '</span></b> ' . i18n_r('TOTAL_FILES') . ' ' . $sizedesc . '</em></p>'; ?> </div> </div> </div> <?php if ($allowupload) { ?> <div id="sidebar" > <?php include 'template/sidebar-files.php';
i18n('FILE_SIZE'); ?> </th><th></th></tr> <?php $count = "0"; $path = tsl(GSBACKUPSPATH . 'zip/'); $filenames = getFiles($path); natsort($filenames); rsort($filenames); foreach ($filenames as $file) { if ($file[0] != ".") { $timestamp = explode('_', $file); $name = lngDate($timestamp[0]); clearstatcache(); $ss = stat($path . $file); $size = fSize($ss['size']); echo '<tr> <td><a title="' . i18n_r('DOWNLOAD') . ' ' . $name . '" href="download.php?file=' . $path . $file . '&nonce=' . get_nonce("archive", "download.php") . '">' . $name . '</a></td> <td style="width:70px;text-align:right;" ><span>' . $size . '</span></td> <td class="delete" ><a class="delconfirm" title="' . i18n_r('DELETE_ARCHIVE') . ': ' . $name . '?" href="deletefile.php?zip=' . $file . '&nonce=' . get_nonce("delete", "deletefile.php") . '">×</a></td> </tr>'; $count++; } } ?> </table> <p><em><b><span id="pg_counter"><?php echo $count; ?> </span></b> <?php i18n('TOTAL_ARCHIVES');
$thumbnailLink = '<span> – </span><a href="javascript:void(0)" onclick="submitLink(' . $CKEditorFuncNum . ',\'' . $sitepath . $thumbLinkExternal . '\')">' . i18n_r('THUMBNAIL') . '</a>'; } } else { continue; } } $counter++; echo '<tr class="All ' . $upload['type'] . '" >'; echo $thumb == '' ? '<td style="display: none"></td>' : $thumb; echo '<td><a ' . $selectLink . ' class="primarylink">' . htmlspecialchars($upload['name']) . '</a>' . $thumbnailLink . '</td>'; echo '<td style="width:80px;text-align:right;" ><span>' . $upload['size'] . '</span></td>'; // get the file permissions. if ($isUnixHost && defined('GSDEBUG') && function_exists('posix_getpwuid')) { $filePerms = substr(sprintf('%o', fileperms($path . $upload['name'])), -4); $fileOwner = posix_getpwuid(fileowner($path . $upload['name'])); echo '<td style="width:70px;text-align:right;"><span>' . $fileOwner['name'] . '/' . $filePerms . '</span></td>'; } echo '<td style="width:85px;text-align:right;" ><span>' . shtDate($upload['date']) . '</span></td>'; echo '</tr>'; } } echo '</table>'; echo '<p><em><b>' . $counter . '</b> ' . i18n_r('TOTAL_FILES') . ' (' . fSize($totalsize) . ')</em></p>'; ?> </div> </div> </div> </body> </html>
if ($debug) { echo '<tr><td colspan="4"><pre>' . htmlspecialchars(@$upload['debug']) . '</pre></td></tr>'; } } } ?> </tbody> </table> <p><em><b><?php echo count($filesSorted); ?> </b> <?php i18n('TOTAL_FILES'); ?> (<?php echo fSize($totalsize); ?> )</em></p> <p><a href="javascript:void(0)" onclick="submitAllLinks()"><?php i18n('i18n_gallery/ADD_ALL_IMAGES'); ?> </a></p> <?php // foreach ($metadata as &$m) if (!@$m['title']) $m['title'] = basename($m['url']); ?> <script type='text/javascript'> // <![CDATA[ var metadata = <?php echo json_encode($metadata); ?> ;