//CHANGE THIS IF YOU WISH
$erroremail = "admin@lwbwb.org";
//MYSQL CONNECTION INFO
$username = "LWBRoot";
$password = "Malachi4:5-6";
$host = "jeremiah";
$database = "lwbstats";
$statstable = "tune-in_data";
// DO NOT CHANGE ANYTHING BELOW THIS LINE
$stream = $_GET['stream'];
$type = $_GET['type'];
$smallwindow = $_GET['smallwindow'];
if ($smallwindow != "true"):
?>
Living Word Broadcast - Tune In
/*
-->*/?>
else:
$ways = 1;
$mps = $_GET['mps'];
$rps = $_GET['rps'];
if ($mps == "true") $ways++;
if ($rps == "true") $ways++;
function broadcasterror ($broadcasterror, $error) {
GLOBAL $erroremail;
$subject = "Error with the $error";
$body = $broadcasterror;
mail ($erroremail,$subject,$body,"From: $erroremail\r\n");
//echo "$subject - ";
}
/*if ($stream == "") $stream = 1;
$stream = trim($stream);
if (is_numeric($stream)) {
$conn = mysql_pconnect($host,$username,$password) or broadcasterror("Could not connect to mysql server. Please check username & password in the config file", "MYSQL Server in tune-in.lwb program");
mysql_select_db($database) or broadcasterror("MYSQL Query in updater program. Could not select mysql database \"$database.\" Please check config file for permissions", "MYSQL Query in tune-in.lwb program");
$sqlquery = "SELECT * from `tune-in_data`";
$resultsid = mysql_query($sqlquery) or broadcasterror("Error with the MYSQL Query in updater program. It could not do select. The query was: $sqlquery\r\nThe error was:".mysql_error()."\r\n", "MYSQL Query in the tune-in.lwb program");
$linkarr = array();
while ($resultsarr = mysql_fetch_array($resultsid, MYSQL_NUM)) {
$servernum = $resultsarr[0];
$linkarr[$servernum] = $resultsarr[3];
}
$link = trim($linkarr[$stream]);
$winampplslink = "../tunein.lwb?stream=$stream&type=pls";
$wmlink = $link;
$rplink = $link."listen.pls";
} else {
if (strpos($stream, ".pls")) {
$wmlink = str_replace(".pls", ".mp3", $stream);
$rplink = $stream;
} else {
$rplink = $stream."listen.pls";
$winampplslink = $rplink;
}
}*/
?>
Living Word Broadcast - Tune In
Tune In to Living Word Broadcast
Please select one of the players below to tune in.
if ($rps == "true") {
echo " ";
}
if ($mps == "true") {
echo "";
}
?>
endif;
?>