Lines Matching refs:fileinfo
229 foreach ($DirectoryContents[$dirname]['dir'] as $filename => $fileinfo) {
275 foreach ($DirectoryContents[$dirname]['known'] as $filename => $fileinfo) {
280 echo '<td align="right"> '.number_format($fileinfo['filesize']).'</td>';
281 echo '<td align="right"> '.NiceDisplayFiletypeFormat($fileinfo).'</td>';
282 …echo '<td align="right"> '.(isset($fileinfo['playtime_string']) ? $fileinfo['playtime_string'…
283 …bsp;'.(isset($fileinfo['bitrate']) ? BitrateText($fileinfo['bitrate'] / 1000, 0, ((isset($fileinfo…
284 …fileinfo['comments_html']['artist']) ? implode('<br>', $fileinfo['comments_html']['artist']) : ((i…
285 …fileinfo['comments_html']['title']) ? implode('<br>', $fileinfo['comments_html']['title']) : (i…
287 …echo '<td align="left"><tt>'.(isset($fileinfo['md5_file']) ? $fileinfo['md5_file'] :…
288 …echo '<td align="left"><tt>'.(isset($fileinfo['md5_data']) ? $fileinfo['md5_data'] :…
289 …echo '<td align="left"><tt>'.(isset($fileinfo['md5_data_source']) ? $fileinfo['md5_data_source'] :…
293 …echo '<td align="left"> '.(!empty($fileinfo['tags']) ? implode(', ', array_keys($fileinfo['ta…
296 if (!empty($fileinfo['warning'])) {
298 …'\\n', $fileinfo['warning']))), ENT_QUOTES | ENT_SUBSTITUTE, $PageEncoding).'\'); return false;" t…
300 if (!empty($fileinfo['error'])) {
302 …'\\n', $fileinfo['error']))), ENT_QUOTES | ENT_SUBSTITUTE, $PageEncoding).'\'); return false;" t…
308 $fileinfo['fileformat'] = (isset($fileinfo['fileformat']) ? $fileinfo['fileformat'] : '');
309 switch ($fileinfo['fileformat']) {
319 … if (isset($fileinfo['audio']['dataformat']) && ($fileinfo['audio']['dataformat'] == 'vorbis')) {
337 foreach ($DirectoryContents[$dirname]['other'] as $filename => $fileinfo) {
342 …echo '<td align="right"> '.(isset($fileinfo['filesize']) ? number_format($fileinfo['filesize'…
343 echo '<td align="right"> '.NiceDisplayFiletypeFormat($fileinfo).'</td>';
344 …echo '<td align="right"> '.(isset($fileinfo['playtime_string']) ? $fileinfo['playtime_string'…
345 …echo '<td align="right"> '.(isset($fileinfo['bitrate']) ? BitrateText($fileinfo['bitrate'] / …
353 if (!empty($fileinfo['warning'])) {
355 …e('\\n', $fileinfo['warning']), ENT_QUOTES | ENT_SUBSTITUTE, $PageEncoding).'\'); return false;" t…
357 if (!empty($fileinfo['error'])) {
358 if ($fileinfo['error'][0] != 'unable to determine file format') {
360 …de('\\n', $fileinfo['error']), ENT_QUOTES | ENT_SUBSTITUTE, $PageEncoding).'\'); return false;" ti…
538 function NiceDisplayFiletypeFormat(&$fileinfo) { argument
540 if (empty($fileinfo['fileformat'])) {
544 $output = $fileinfo['fileformat'];
545 if (empty($fileinfo['video']['dataformat']) && empty($fileinfo['audio']['dataformat'])) {
548 if (empty($fileinfo['video']['dataformat']) && !empty($fileinfo['audio']['dataformat'])) {
549 if ($fileinfo['fileformat'] == $fileinfo['audio']['dataformat']) {
552 $output .= '.'.$fileinfo['audio']['dataformat']; // 'ogg.flac'
555 if (!empty($fileinfo['video']['dataformat']) && empty($fileinfo['audio']['dataformat'])) {
556 if ($fileinfo['fileformat'] == $fileinfo['video']['dataformat']) {
559 $output .= '.'.$fileinfo['video']['dataformat']; // 'riff.avi'
562 if ($fileinfo['video']['dataformat'] == $fileinfo['audio']['dataformat']) {
563 if ($fileinfo['fileformat'] == $fileinfo['video']['dataformat']) {
566 $output .= '.'.$fileinfo['video']['dataformat']; // any examples?
569 $output .= '.'.$fileinfo['video']['dataformat'];
570 $output .= '.'.$fileinfo['audio']['dataformat']; // asf.wmv.wma