<?php // $Id: play.php,v 1.11 2004/03/04 22:20:02 entropie Exp $ // include './cfg/cfg.php'; include './libraries/class.main.php'; include './libraries/class.play.php'; $mp3play = new play(); if (defined('EXTERN_PLAY')) { $m3ufile = $mp3play->playsongs($extern_ids); } else { if (isset($_GET['trackid']) && !empty($_GET['trackid'])) { $m3ufile = $mp3play->playsongs($_GET['trackid']); } elseif (isset($_GET['playlist'])) { $songids = $mp3play->extractids($_GET['playlist']); if ($songids) { $m3ufile = $mp3play->playsongs($songids); } else { $mp3play->sendHeader('index.php?pathid=0'); exit; } } } header('Content-Type: audio/x-mpegurl'); $mp3play->sendHeader($m3ufile); exit;
break; // shoutbox: del // shoutbox: del case isset($irray["sbdel"]) && defined('ADMIN') && ADMIN == 'admin': $mp3sb->delSbEntry($irray["sbdel"]); break; // shoutbox: view more // shoutbox: view more case isset($irray["sbmore"]) && $irray["sbmore"] != '': $mp3sb->moreSbEntry($irray["sbmore"]); exit; break; // mainbrowser: add one folder to playlist // mainbrowser: add one folder to playlist case isset($irray["add_pl_folder"]) && !empty($irray["add_pl_folder"]): $songids = $mp3play->extractids($irray["add_pl_folder"]); if ($songids) { $insert = $mp3playlist_in->insert_songids($songids); } break; // mainbrowser: add one song to playlist // mainbrowser: add one song to playlist case isset($irray["playlist_inid"]) && !empty($irray["playlist_inid"]): $mp3playlist_in->insert_songids($_GET["playlist_inid"]); break; // mainbrowser: enqueue song[s]/folder[s] in playlist per checkbox // mainbrowser: enqueue song[s]/folder[s] in playlist per checkbox case isset($irray["fids_enqueue"]) && !empty($irray["fids_enqueue"]) || isset($irray["ids"]) && !empty($irray["ids"]): if (isset($irray["fids_enqueue"]) && !empty($irray["fids_enqueue"])) { $mp3playlist_in->insert_songids($irray["fids_enqueue"]); }