// shoutbox: clearsb // shoutbox: clearsb case substr($text, 0, 8) == $cs . "clearsb" && defined('ADMIN') && ADMIN == 'admin': $mp3->log_mysql_query("DELETE FROM " . $cfg["mysql"]["table_sb"]); break; // main: logout // main: logout case substr($text, 0, 7) == $cs . "logout" && defined('USER'): session_destroy(); break; // main: phpinfo(); // main: phpinfo(); case substr($text, 0, 8) == $cs . "phpinfo" && defined('ADMIN') && ADMIN == 'admin': phpinfo(); exit; break; // main: gpl // main: gpl case substr($text, 0, 8) == $cs . "license" || substr($text, 0, 7) == "license" || substr($text, 0, 3) == "gpl" || substr($text, 0, 4) == $cs . "gpl": $mp3->sendHeader('License', TRUE); break; // default: search $string // default: search $string default: $secText = !empty($_POST['secText']) ? $_POST['secText'] : $cfg['defaultSearchType']; $mp3search = new search($text, $secText); exit; break; } $mp3play->sendHeader('index.php?pathid=' . (isset($_GET['backid']) ? $_GET['backid'] : 0), 1);
<?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;