/
';
echo '
';
$pathParts = explode("/",$subPath);
$urlPath = null;
echo '
/
uploads / ';
foreach ($pathParts as $pathPart){
if ($pathPart!=''){
$urlPath .= $pathPart.'/';
echo '
'.$pathPart.' / ';
}
}
echo '
';
echo '
';
echo ' | '.i18n_r('FILE_NAME').' | ';
echo ''.i18n_r('FILE_SIZE').' | ';
if (isDebug()){
echo ''.i18n_r('PERMS').' | ';
}
echo ''.i18n_r('DATE').' | ';
echo ' |
';
if (count($dirsSorted) != 0) {
$foldercount = 0;
foreach ($dirsSorted as $upload) {
# check to see if folder is empty
$directory_delete = null;
if ( check_empty_folder($path.$upload['name']) ) {
$directory_delete = '×';
}
$directory_size = ''.folder_items($path.$upload['name']).' '.i18n_r('ITEMS').'';
echo '';
echo ' | ';
$adm = substr($path . rawurlencode($upload['name']) , 16);
echo ' '.htmlspecialchars($upload['name']).' | ';
echo ''.$directory_size.' | ';
// get the file permissions.
if ($isUnixHost && isDebug() && function_exists('posix_getpwuid')) {
$filePerms = substr(sprintf('%o', fileperms($path.$upload['name'])), -4);
$fileOwner = posix_getpwuid(fileowner($path.$upload['name']));
echo ''.$fileOwner['name'].'/'.$filePerms.' | ';
}
echo ''. shtDate($upload['date']) .' | ';
echo ''.$directory_delete.' | ';
echo '
';
$foldercount++;
}
}
if (count($filesSorted) != 0) {
foreach ($filesSorted as $upload) {
$counter++;
if ($upload['type'] == i18n_r('IMAGES') .' Images') {
$cclass = 'iimage';
} else {
$cclass = '';
}
echo '';
echo '';
if ($upload['type'] == i18n_r('IMAGES') .' Images') {
$gallery = 'rel=" facybox_i"';
$pathlink = 'image.php?i='.rawurlencode($upload['name']).'&path='.$subPath;
$thumbLink = $urlPath.'thumbsm.'.$upload['name'];
$thumbLinkEncoded = $urlPath.'thumbsm.'.rawurlencode($upload['name']);
if (file_exists(GSTHUMBNAILPATH.$thumbLink)) {
$imgSrc=' ';
} else {
$imgSrc=' ';
}
echo ''.$imgSrc.'';
} else {
$gallery = '';
$controlpanel = '';
$pathlink = $path . $upload['name'];
}
echo ' | '.htmlspecialchars($upload['name']) .' | ';
echo ''. $upload['size'] .' | ';
// get the file permissions.
if ($isUnixHost && isDebug() && function_exists('posix_getpwuid')) {
$filePerms = substr(sprintf('%o', fileperms($path.$upload['name'])), -4);
$fileOwner = posix_getpwuid(fileowner($path.$upload['name']));
echo ''.$fileOwner['name'].'/'.$filePerms.' | ';
}
echo ''. shtDate($upload['date']) .' | ';
echo '× | ';
echo '
';
}
}
exec_action('file-extras');
echo '
';
if ($counter > 0) {
$sizedesc = '('. fSize($totalsize) .')';
} else {
$sizedesc = '';
}
$totalcount = (int)$counter+(int)$foldercount;
echo '
'. $totalcount .' '.i18n_r('TOTAL_FILES').' '.$sizedesc.'
';
?>