|
|
";
$filelist[] = "";
chdir("/home/real/Content/xian");
$demandplaylist = $c_demandplaylist;
$sourcelist = array();
$demandlist = "$playlistdir/$demandplaylist";
$fd = fopen("$demandlist", "r");
/* step throught the demand playlist file, getting title of each file */
while($file = fgets($fd, 4096)){
$file = ereg_replace("[[:space:]]", "", $file);
$file = ereg_replace(".*/", "", $file);
$source_id = get_source_id($file);
if("$source_id"){
$source_name = get_source_name($source_id);
$sourcelist["$source_id"] = "$source_name";
}
}
fclose($fd);
asort($sourcelist);
while(list($the_source_id, $the_source_name) = each($sourcelist)){
if($the_source_name){
$speaker = get_speaker($the_source_id);
echo ("$the_source_name ~ $speaker
Listening Choices\n");
}
}
echo " ";
?>
|
|
|