Пример #1
0
<?php

// -*- tab-width: 3; indent-tabs-mode: 1; -*-
/*  
 * $Id$
 * Created for the StreamOnTheFly project (IST-2001-32226)
 * Authors: András Micsik, Máté Pataki, Tamás Déri 
 *          at MTA SZTAKI DSD, http://dsd.sztaki.hu
 */
require "init.inc.php";
if (sotf_Utils::getParameter('reconnect')) {
    $playlist = new sotf_Playlist();
    $playlist->sendMyRemotePlaylist();
    $page->logRequest();
    exit;
}
if (sotf_Utils::getParameter('stop')) {
    $playlist = new sotf_Playlist();
    $playlist->stopMyStream();
    $page->redirect(myGetenv('HTTP_REFERER'));
    exit;
}
$id = sotf_Utils::getParameter('id');
$fileid = sotf_Utils::getParameter('fileid');
$jingle = sotf_Utils::getParameter('jingle');
if (empty($id)) {
    raiseError("Missing parameters!", 'id');
}
$playlist = new sotf_Playlist();
if ($jingle) {
    // play the jingle of station/series