array ( 'url' => 'http://example.com:8000/foo-hi.mp3', 'type' => 'mp3', 'title' => 'foo radio', 'artist' => 'foo bar' ), 'foo-lo' => array ( 'url' => 'http://example.com:8000/foo-lo.mp3', 'type' => 'mp3', 'title' => 'foo radio', 'artist' => 'foo bar' ), 'foo-ogg' => array ( 'url' => 'http://example.com:8000/foo.ogg', 'type' => 'ogg', 'title' => 'foo radio', 'artist' => 'foo bar' ), ); $origdir=getcwd(); chdir($workingdir); ?>
Refresh Status
$info ) { clearstatcache(); if (!file_exists($stream)) mkdir($stream); chdir($stream); ?>
stream
Browse Archives
current'); if ($_POST['M']) $info['M'] = '-M ' . escapeshellarg($_POST['M']); if ($_POST['l']) $info['l'] = '-l ' . escapeshellarg(60 * $_POST['l']); $exec = $streamripper . ' ' . escapeshellarg($info['url']) . ' ' . $info['M'] . ' ' . $info['l'] . ' -A -a ' . escapeshellarg($filename) . ' -s -t > /dev/null & echo $! > pid'; exec($exec); clearstatcache(); } if ($_POST['kill']==$stream and file_exists('pid')) { $exec = 'kill `cat pid` ; rm pid'; exec($exec); $file = trim(file_get_contents('current')); exec('rm current'); $date = filemtime($file); if ($_POST['album']) { $info['album'] = $_POST['album']; } else { $info['album'] = date('Y-m-d H:i',$date); } if ($_POST['artist']) $info['artist'] = $_POST['artist']; if ($_POST['title']) $info['title'] = $_POST['title']; $exec = $id3tag . ' -s' . escapeshellarg($info['title']) . ' -A' . escapeshellarg($info['album']) . ' -a' . escapeshellarg($info['artist']) . ' -y' . '"`date +"%Y"`" ' . escapeshellarg($file); exec($exec); clearstatcache(); } if (!file_exists('pid')) { ?>
megabytes
minutes
album:
artist:
title: