include("menu-v.inc");
//the pre space below forces the menu up
?>
New Songs
|
|
|
$a=opendir($songdir);
$i=0;
while ($f=readdir($a)){
if (($f!="..")&&($f!=".")) {
$array[$i]=date("Y-m-d H:i ", filemtime($songdir.$f)).$f;
$i++;
}
}
$end=$i;
$i=0;
rsort($array);
$fname = substr($array[$i], 17);
while ($i < 17){
$name = str_replace("_", " ", $fname);
$name = str_replace("-", " - ", $name);
$name = substr($name, 0, strlen($name)-4);
if(substr($fname, -4) == ".m3u"){
$dlink = file_get_contents($songdir.$fname);
}else{
$dlink = $appurl.$songdir.$fname;
}
echo " | D | $name | \n";
$i++;
$fname = substr($array[$i], 17);
}
?>
New Playlists
Click green arrow to play list in player
Click W to get a widget for the playlist
To download playlist right click on D and Save As
To play list in your media player right click on D and Copy Link
Get Playlists
|
$a=opendir($listdir);
$i=0;
while ($f=readdir($a)){
$ray[$i]=$f;
$i++;
}
$end=$i;
$i=0;
rsort($ray);
$fname = $ray[$i];
while (($fname <> "..") & ($i < 17)){
$dlink = $appurl.$dlistdir.$fname;
$wlink = "widgets.php?list=".$appurl.$listdir.$fname;
$name = str_replace("_", " ", $fname);
$name = substr($name, 0, 10).str_replace("-", " - ", substr($name,10));
echo " | D | W | $name | \n";
$i++;
$fname = $ray[$i];
}
?>
|
if (strlen($_GET['auto']) > 0){$auto = $_GET['auto'];}
if (strlen($_GET['song']) > 0){$song = $_GET['song'];}
$listlink = $_GET["list"];
?>
if ($submitform == "Y"){
?>
Add Song
}
?>
include("block1.inc"); ?>
|