<?php
// Server Settings //
$ip = "213.456.789.10"; // The IP or hostname of your server
$port = "8000"; // The shoutcast port that listeners connect on
$pass = "changeme"; // This should be your ADMIN password, and may not be the same as the one your DJs use to connect
// Messages //
$success_message = "The source has been kicked, you can now connect";
$error_message = "Connection refused, check that server is online";
// No need to edit below //
$fp = @fsockopen($ip, $port, $errno, $errstr, 4);
if (!$fp)
	{
	print $error_message;
	}
else
	{
	fputs($fp, "GET /admin.cgi?pass=$pass&mode=kicksrc HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
	fclose($fp);
	print $success_message;
	}
?>