'; ?> GDLC Worship Service Recordings
Audio of our services
\r\t\r\t\t\r\t\t\t\r"; foreach ($movies as $key => $value) { $pi = pathinfo($value); if (strtoupper($pi[extension]) == "MOV" OR strtoupper($pi[extension]) =="MP3") { $parts = explode("-", $pi[filename]); $year = (int)$parts[0]; $month = (int)$parts[1]; $day = (int)$parts[2]; $service = (int)$parts[3]; if ($service < 1200 ) { $apm = " a.m."; } else { $apm = " p.m."; $service = $service - 1200; } if ($service == 0) { $service = 1200; } $min = fmod($service,100); $hr = floor($service/100); $fmin = sprintf("%'02s",$min); if ($prevmonth != $month) { echo "\t\t\r\t
\r
\r"; $prevmonth = $month; $idr = $year . '-' . $month; if ($prevyear != $year) { echo "

" . $year . "

"; $prevyear = $year; } echo '

' . "\r"; echo '' . $months[$month] . '
'; echo "\r"; if ($firstmonth == "") { $firstmonth = $idr; } echo '\r"; ?>