Song Requests
You can make song requests during any live show by picking your poison below. We must conform with the rules so you are limited to 2 song requests each hour and there are only 8 total requests allowed during each show.
Song requests are only available during the live show on Monday.
<?php
$station_id = 1017;
$request_host = 'http://s3.total-streaming.com/xml.php';
$_error = false;
if (isset($_GET['request']) && is_numeric($_GET['request']))
{
$requesting = file_get_contents($request_host.'?station='.$station_id.'&get=requesting&id='.$_GET['request'].'&ip='.$_SERVER['REMOTE_ADDR']);
$requesting = trim($requesting);
if ($requesting == 'success')
{
echo "Your request has been made. Listen in to hear your request played soon.”;
}
else
{
echo “Error: $requesting”;
}
}
else
{
?>
List By Artist:
All
<?php
$list = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
foreach ($list as $letter)
{
echo '‘.$letter.’ ‘;
}
?>
<?php
if (isset($_GET['list']))
{
$_stats = file_get_contents($request_host.'?station='.$station_id.'&get=requestable&letter='.$_GET['list']);
$_stats = trim(substr($_stats, 246));
}
elseif (isset($_GET['search']))
{
$_stats = file_get_contents($request_host.'?station='.$station_id.'&get=requestable&search='.$_GET['search']);
$_stats = trim(substr($_stats, 246));
}
else
{
$_stats = file_get_contents($request_host.'?station='.$station_id.'&get=requestable');
$_stats = trim(substr($_stats, 246));
}
$xmlparser = xml_parser_create();
if (!xml_parse_into_struct($xmlparser, $_stats, $_values, $_indexes)) {
echo "Statistics unreadable.
\n\n”;
echo $_stats;
}
xml_parser_free($xmlparser);
for($i=0;$i<sizeof($_indexes['SONGTITLE']);$i++)
{
$id = $_values[$_indexes['SONGID'][$i]]['value'];
$artist = $_values[$_indexes['SONGARTIST'][$i]]['value'];
$title = $_values[$_indexes['SONGTITLE'][$i]]['value'];
if ($artist) { echo $artist.' – '.$title.' (request)
‘; }
else { echo $title.’ (request)
‘; }
}
}
?>



