\n"; echo "\n"; echo "\n"; } if ($summary!="") { echo "\n"; echo "\n"; echo "\n"; } if ($speaker!="") { echo "\n"; echo "\n"; echo "\n"; } if ($type==0 | $type == 1 | $type==2 | $type==5 | $type==6 | $type == 7 | $type==8 | $type==9 | $type==10 | $type==11) { echo "\n"; echo "\n"; echo ""; } if ($daterec!=0) { echo "\n"; echo "\n"; echo "\n"; } if ($location!="") { echo "\n"; echo "\n"; echo "\n"; } if ($author!="") { echo "\n"; echo "\n"; echo "\n"; } if ($contact!="") { echo "\n"; echo "\n"; echo "\n"; } if ($uploaded!="") { echo "\n"; echo "\n"; echo "\n"; } if ($keywords!="") { echo "\n"; echo "\n"; echo "\n"; } if ($nomod== 1 | $nosel== 1 | $fee== 1 | $noother== 1) { echo "\n"; echo "\n"; echo "\n"; } $nolen = strlen($notes); if ($nolen>1) { echo "\n"; echo "\n"; echo "\n"; } echo "
Length:
Subtitle:$subtitle
Summary:"; echo nl2br($summary); echo "
Featuring:$speaker
Type:$ntype
Recorded:$drfix
Recorded At:$location
Producer:$author
Uploaded By:$contact
Uploaded On:$ulfix
Keywords:$keywords
Restrictions:\n"; if ($nomod== 1) { echo "No excerpting/modifying without permission.
\n"; } if ($nosel== 1) { echo "For non-profit use only.
\n"; } if ($fee== 1) { echo "Contact producer for permission to broadcast.
\n"; } if ($noother== 1) { echo "See notes.
\n"; } echo "
Notes:

\n"; echo nl2br($notes); echo "

 \;
"; ?> >> "; } if ($script == "") { $show_script = " "; } if ($vtitle!="") { echo "
\n"; } if ($vtitle=="") { echo "
$vtitle
\n"; } echo "
$programtitleLanguage: $lang\n"; echo "$show_script
\n"; echo "\n"; echo "\n"; echo ""; // echo "\n"; $f = 0; while ($f!=$nfresult) { $fileid = db_result($fresult,$f,"FileID"); $seg = db_result($fresult,$f,"Segment"); $segtitle = stripslashes(db_result($fresult,$f,"Title")); $flen = db_result($fresult,$f,"Length"); $finfo = db_result($fresult,$f,"Format"); $ster = db_result($fresult,$f,"Stereo"); if ($ster == 1) { $isstereo = " Stereo"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; $lresult = db_query("select FileLocation,Filename from locations where FileID = $fileid"); $nlresult = db_num_rows($lresult); $lr = 0; while ($lr!=$nlresult) { $nlresult = db_num_rows($lresult); $dl = db_result($lresult,$lr,"FileLocation"); $stream = ereg_replace("ftp://", "http://", $dl); $fname = db_result($lresult,$lr,"Filename"); $streamfmt = 'stream.m3u'; if (ereg("RealAudio", $finfo)) { $streamfmt = 'stream.ram'; $typedata = 'ram'; } $lr++; } echo "\n"; // echo ""; echo "\n"; echo "\n"; $f++; } echo "
SegTitle\n"; echo "LengthFile InfoDownload\n"; // echo "Play
$seg  $segtitle  $flen  $finfo $isstereo  HTTP
(right click to save)
Play
"; echo ' '; ?> "; echo "
\n\n\n"; } if ($nvresult>1) { $v = 0; $vernum = 1; $show_script = 0; while($v!=$nvresult){ $vid = db_result($vresult,$v,"VersionID"); $vtitle = stripslashes(db_result($vresult,$v,"VersionTitle")); $lang = db_result($vresult,$v,"Language"); $vlen = db_result($vresult,$v,"Length"); $script = db_result($vresult,$v,"Script"); if ($show_script == 0) { if ($script!="") { $show_script = ">> "; } if ($script == "") { $show_script = " "; } } $show_script++; echo "
\n"; echo "
$vtitleLanguage: $lang\n"; echo "$show_script
\n"; $va = $v+1; $fresult = db_query("select * from files where ProgramID = $id and Version = $va order by Segment"); $nfresult = db_num_rows($fresult); echo "
\n"; echo "\n"; echo "\n"; $f = 0; while ($f!=$nfresult) { $fileid = db_result($fresult,$f,"FileID"); $seg = db_result($fresult,$f,"Segment"); $segtitle = stripslashes(db_result($fresult,$f,"Title")); $flen = db_result($fresult,$f,"Length"); $finfo = db_result($fresult,$f,"Format"); $ster = db_result($fresult,$f,"Stereo"); if ($ster == 1) { $isstereo = " Stereo"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; $lresult = db_query("select * from locations where FileID = $fileid"); $nlresult = db_num_rows($lresult); $lr = 0; while ($lr!=$nlresult) { $dl = db_result($lresult,$lr,"FileLocation"); $stream = ereg_replace("ftp://", "http://", $dl); $fname = db_result($lresult,$lr,"Filename"); $streamfmt = 'stream.m3u'; if (ereg("RealAudio", $finfo)) { $streamfmt = 'stream.ram'; $typedata = 'ram'; } $lr++; } echo "\n"; echo "\n"; $f++; } echo "
SegTitle\n"; echo "LengthFile InfoDownload\n"; echo "Play
$seg$segtitle$flen$finfo $isstereoHTTPPlay
\n\n\n"; $v++; $vernum++; } } ?>