MixStream All-In-One StreamStats 1.1 - Display SHOUTast stats on any website

Thank you for downloading this script from http://mixstream.net/streaming/resources/allinone/

This script uses PHP to grab some information from your SHOUTcast server, generates a Javascript file, 
and allows you to put stream details onto your website quickly and easily. Unlike many other alternatives,
this won't increase the load time because the script queries your SHOUTcast server after the page has loaded.

It's really easy to use, simply open configure.php and edit the variables. They should be self-explanatory
but here is some more info on each option.

Make sure that you upload shoutcast.php and configure.php to the same directory.

---------------------------------------------------------------------------------------------------
General Configuration

$SHOUTcastServer 
This is the hostname or IP address of your SHOUTcast server as provided by your stream host.

$SHOUTcastPort 
This is the port of your server, normally a 4 or 5 digit number provided by your stream host.

Don't have a server? Visit http://mixstream.net

$SHOUTcastVersion 
Valid options for the version are 1 and 2. There is no need to put 1.9.8 or 2.0.0.

$SHOUTcastSID
If you're using SHOUTcast V2 then you will need to enter an SID. This is usually 1.

$showHistory
If you want to show a table with the song history then set this to 1. Otherwise, you should 
disable it by setting is to 0. 

$tableClass
The CSS class for your song history table. The default value is "table table-striped" for
those of you that are using Twitter Bootstrap.

---------------------------------------------------------------------------------------------------
Status Messages

You can use HTML in the following options, but remember to escape any double quotes \"

$SHOUTcastStatus['refused']
The message that is displayed when the script is unable to connect to your server.
Reasons for this could be the server being stopped, firewall rules, etc.

$SHOUTcastStatus['down']
The message shown when the server is running but no source connected.

$SHOUTcastStatus['up']
The message shown when the server is up and streaming.

---------------------------------------------------------------------------------------------------
Displaying stats on your web page.

To include the script on your page, put the following code just above the </body> tag - this
needs to be at the end of the page to work:

<script src="/path/to/shoutcast.php"></script>

You will need to change /path/to/ to the location of shoutcast.php. 

To display the information, use the following codes:

	SHOUTcastStatus: 
	<span id="SHOUTcastStatus"></span>

	SHOUTcastBitrate: 
	<span id="SHOUTcastBitrate"></span> 

	SHOUTcastListeners: 
	<span id="SHOUTcastListeners"></span>

	SHOUTcastListenersMax: 
	<span id="SHOUTcastListenersMax"></span>

	SHOUTcastListenersUnique: 
	<span id="SHOUTcastListenersUnique"></span>

	SHOUTcastListenersPeak: 
	<span id="SHOUTcastListenersPeak"></span>

	SHOUTcastAverageListenTime: 
	<span id="SHOUTcastAverageListenTime"></span>

	SHOUTcastTitle: 
	<span id="SHOUTcastTitle"></span>

	SHOUTcastFormat: 
	<span id="SHOUTcastFormat"></span>

	SHOUTcastGenre: 
	<span id="SHOUTcastGenre"></span>

	SHOUTcastHistory:
	<div id="SHOUTcastHistory"></div>

(Note: It is possible to put multiple instances of each onto your page and in most cases it will
work, but strictly speaking the HTML may not validate properly)

---------------------------------------------------------------------------------------------------
MixStream All-In-One StreamStats 1.1 - Display SHOUTast stats on any website
Copyright (C) 2013  Bell Online Ltd

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
	
---------------------------------------------------------------------------------------------------
Changes

1.0 Initial release
1.1 Fixed small bug that caused the wrong information to show up in some cases