I try to modify a little part of the script. What I need is that Back-Button-Output as I've seen it by testing, but cannot find it know in the sourcecode.
The first little thing I want to add to the script is in m3ugenerator->start() the ability to save a playlist as a file on the server. This will be used for my Jukebox-Winamp.
Can someone point me to the partwhere to find the (maybe) function call for the back-button?
Regards,
Waldemar
- Code: Select all
PS: my new m3ugenerator->start():
function start($saveAsJukeboxList='')
{
$num = lzero(getrand(1,999999),6);
if (db_guinfo('plinline')) $method = 'inline'; else $method = 'attachment';
if ($this->addcrlf) $this->data .= $this->crlf;
if (trim($saveAsJukeboxList)!='')
{
$fp = @fopen($saveAsJukeboxList,'wb');
if($fp===FALSE) return FALSE;
$ret = @fwrite($fp,$this->data,strlen($this->data));
@fclose($fp);
return $ret===FALSE ? FALSE : TRUE;
}
header('Content-Disposition: '.$method.'; filename=kp'.$num.'.m3u', true);
header('Content-Type: audio/x-mpegurl', true);
header('Content-Length: '.strlen($this->data), true);
header('Cache-Control: must-revalidate, post-check=0, pre-check=0', true);
echo $this->data;
}
