';
$escaped_filename = htmlentities($filename, ENT_SUBSTITUTE, $PageEncoding);
$escaped_filename = ($escaped_filename ? $escaped_filename : rawurlencode($filename));
echo ''.$escaped_filename.' | ';
echo ' '.number_format($fileinfo['filesize']).' | ';
echo ' '.NiceDisplayFiletypeFormat($fileinfo).' | ';
echo ' '.(isset($fileinfo['playtime_string']) ? $fileinfo['playtime_string'] : '-').' | ';
echo ' '.(isset($fileinfo['bitrate']) ? BitrateText($fileinfo['bitrate'] / 1000, 0, ((isset($fileinfo['audio']['bitrate_mode']) && ($fileinfo['audio']['bitrate_mode'] == 'vbr')) ? true : false)) : '-').' | ';
echo ' '.(isset($fileinfo['comments_html']['artist']) ? implode(' ', $fileinfo['comments_html']['artist']) : ((isset($fileinfo['video']['resolution_x']) && isset($fileinfo['video']['resolution_y'])) ? $fileinfo['video']['resolution_x'].'x'.$fileinfo['video']['resolution_y'] : '')).' | ';
echo ' '.(isset($fileinfo['comments_html']['title']) ? implode(' ', $fileinfo['comments_html']['title']) : (isset($fileinfo['video']['frame_rate']) ? number_format($fileinfo['video']['frame_rate'], 3).'fps' : '')).' | ';
if (isset($_REQUEST['ShowMD5']) && GETID3_DEMO_BROWSE_ALLOW_MD5_LINK) {
echo ''.(isset($fileinfo['md5_file']) ? $fileinfo['md5_file'] : ' ').' | ';
echo ''.(isset($fileinfo['md5_data']) ? $fileinfo['md5_data'] : ' ').' | ';
echo ''.(isset($fileinfo['md5_data_source']) ? $fileinfo['md5_data_source'] : ' ').' | ';
} else {
echo '- | ';
}
echo ' '.(!empty($fileinfo['tags']) ? implode(', ', array_keys($fileinfo['tags'])) : '').' | ';
echo ' ';
if (!empty($fileinfo['warning'])) {
$FilesWithWarnings++;
echo 'warning ';
}
if (!empty($fileinfo['error'])) {
$FilesWithErrors++;
echo 'error ';
}
echo ' | ';
if (GETID3_DEMO_BROWSE_ALLOW_EDIT_LINK) {
echo ' ';
$fileinfo['fileformat'] = (isset($fileinfo['fileformat']) ? $fileinfo['fileformat'] : '');
switch ($fileinfo['fileformat']) {
case 'mp3':
case 'mp2':
case 'mp1':
case 'flac':
case 'mpc':
case 'real':
echo 'edit tags';
break;
case 'ogg':
if (isset($fileinfo['audio']['dataformat']) && ($fileinfo['audio']['dataformat'] == 'vorbis')) {
echo 'edit tags';
}
break;
default:
break;
}
echo ' | ';
}
if (GETID3_DEMO_BROWSE_ALLOW_DELETE_LINK) {
echo ' delete | ';
}
echo '
';
}
}
if (isset($DirectoryContents[$dirname]['other']) && is_array($DirectoryContents[$dirname]['other'])) {
uksort($DirectoryContents[$dirname]['other'], 'MoreNaturalSort');
foreach ($DirectoryContents[$dirname]['other'] as $filename => $fileinfo) {
echo '';
$escaped_filename = htmlentities($filename, ENT_SUBSTITUTE, $PageEncoding);
$escaped_filename = ($escaped_filename ? $escaped_filename : rawurlencode($filename));
echo ''.$escaped_filename.' | ';
echo ' '.(isset($fileinfo['filesize']) ? number_format($fileinfo['filesize']) : '-').' | ';
echo ' '.NiceDisplayFiletypeFormat($fileinfo).' | ';
echo ' '.(isset($fileinfo['playtime_string']) ? $fileinfo['playtime_string'] : '-').' | ';
echo ' '.(isset($fileinfo['bitrate']) ? BitrateText($fileinfo['bitrate'] / 1000) : '-').' | ';
echo ' | '; // Artist
echo ' | '; // Title
echo ' | '; // MD5_data
echo ' | '; // Tags
//echo ' | '; // Warning/Error
echo ' ';
if (!empty($fileinfo['warning'])) {
$FilesWithWarnings++;
echo 'warning ';
}
if (!empty($fileinfo['error'])) {
if ($fileinfo['error'][0] != 'unable to determine file format') {
$FilesWithErrors++;
echo 'error ';
}
}
echo ' | ';
if (GETID3_DEMO_BROWSE_ALLOW_EDIT_LINK) {
echo ' | '; // Edit
}
if (GETID3_DEMO_BROWSE_ALLOW_DELETE_LINK) {
echo ' delete | ';
}
echo '
';
}
}
echo '';
echo 'Average: | ';
echo ''.number_format($TotalScannedFilesize / max($TotalScannedKnownFiles, 1)).' | ';
echo ' | ';
echo ''.getid3_lib::PlaytimeString($TotalScannedPlaytime / max($TotalScannedPlaytimeFiles, 1)).' | ';
echo ''.BitrateText(round(($TotalScannedBitrate / 1000) / max($TotalScannedBitrateFiles, 1))).' | ';
echo 'Identified Files: | '.number_format($TotalScannedKnownFiles).' | | Errors: | '.number_format($FilesWithErrors).' |
---|
Unknown Files: | '.number_format($TotalScannedUnknownFiles).' | | Warnings: | '.number_format($FilesWithWarnings).' |
---|
';
echo ' |
';
echo '