Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 31st, 2009, 08:55 PM
lovedfriend lovedfriend is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2009
Posts: 2 lovedfriend User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 36 sec
Reputation Power: 0
Kick Source Script for windows audio

Dose anyone know where I can find a Kick Source Script for windows audio? If no such thing is around can someone make one? I will be happy to pay but not alot.

Michael

Reply With Quote
  #2  
Old January 2nd, 2010, 09:55 PM
drgroove's Avatar
drgroove drgroove is offline
Moderator Emeritus
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Feb 2002
Location: Scottsdale, AZ
Posts: 7,174 drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Days 23 h 53 m 36 sec
Reputation Power: 2131
I googled "kick source script for windows"; the top link in the results was your Devshed post.

So... mind explaining what a "kick source script" is?
__________________
DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Need ServiceNow consulting or ITIL process design? Connect with me on LinkedIn

Reply With Quote
  #3  
Old January 2nd, 2010, 10:15 PM
lovedfriend lovedfriend is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2009
Posts: 2 lovedfriend User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 36 sec
Reputation Power: 0
Quote:
Originally Posted by drgroove
I googled "kick source script for windows"; the top link in the results was your Devshed post.

So... mind explaining what a "kick source script" is?


I couldnt find anything. This is the kick source for shoutcast
PHP Code:
<?php

// SET ALL CONFIG VALUES

$kick_password         "";
$timeout        5;            // SECONDS TO WAIT FOR CONNECTION


$shoutcast_ip        = array("");
$shoutcast_name        = array("");    
$shoutcast_port        = array("");
$shoutcast_password    = array("");

if(
$_SERVER ['PHP_AUTH_PW'] != "$login_password") {
 
header('WWW-Authenticate: Basic realm="SHOUTcast | KICK SOURCE"');
 
header('HTTP/1.0 401 Unauthorized');
 echo 
'<html><head><title>Kick On Air DJ</title></head><body bgcolor="#C6E2FF" text="black">';
 echo 
'<h1>Kick On Air DJ<hr width="100%" size="1" color="black" noshade></h1>';
 echo 
'<font face="Verdana" size="3" color="red"><b>Authorisation failed</b></font><br>';
 echo 
'<font face="Verdana" size="2"><b>Reload this page and <a href="'.$_SERVER['PHP_SELF'].'" style="color: black;">try login again</a></b></font></body></html>';
 exit; }  
?>

<html>
<head>
<title>Staff - Kick Our On Air DJ</title>
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<style>
 td {
  border:1px black solid; }
 font { font-family: Verdana; }
</style>
</head>

<body bgcolor=" #000000" text="#2698BD">

<h1>Kick the On Air DJ

<hr width="100%" size="1" color="#2698BD" noshade></h1>

<font size="2">Select stream:</font>
<form method="get" style="margin: 0px;">
 <select name="id" style="border: 1px solid black;">
  <option value="0">>> Please choose</option>
  <?php
    $id 
$_REQUEST['id'];

    if(!isset(
$_REQUEST['id']) || $id == ''$id 0;

    for(
$x=0;$x<count($shoutcast_ip);$x++) {
     if(
$x == $id) echo "  <option value=\"$x\" selected>".$shoutcast_name[$x]." | ".$shoutcast_ip[$x].":".$shoutcast_port[$x]."</option>\n";
     else echo 
"  <option value=\"$x\">".$shoutcast_name[$x]." | ".$shoutcast_ip[$x].":".$shoutcast_port[$x]."</option>\n";
    }
  
?>
 </select>
 <input name="send2" type="submit" value=">> Select!" style="border: 1px solid black;">
</form>
<br>

<?php

 $kickit 
$_POST['password_kick'];

 if(isset(
$_POST['send'])) {

  if(
$kickit != "$kick_password") {

    
$mess "Password wrong. On air DJ not kicked";
    
$col  "red";

   echo 
"<table width=\"400\" cellpadding=\"2\">
     <tr>
      <td width=\"100%\" bgcolor=\"
$col\"><font size=\"2\"><b>Notice</b></font></td>
     </tr>
     <tr>
      <td width=\"100%\" bgcolor=\"white\" height=\"60\"><font size=\"2\">
$mess</font></td>
     </tr>
    </table><br>"
;
  echo 
"<meta http-equiv=refresh content=4;URL=".$_SERVER['PHP_SELF']."?id=$id>"; }

  else {

   if(
$_POST['kick_all'] ==  'true') { $start 0$end  count($shoutcast_ip); }
   else  { 
$start $id$end  $start+1; }

   for(
$s=$start;$s<$end;$s++)
   {

    
$fp = @fsockopen($shoutcast_ip[$s], $shoutcast_port[$s], &$errno, &$errstr$timeout);

    if (
$fp) {
     
$mess "On air DJ <b>".$shoutcast_ip[$s]."</b> successfully kicked.";
     
$col  "green";

     @
fputs($fp,"GET /admin.cgi?pass=".$shoutcast_password[$s]."&mode=kicksrc HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
     @
fclose($fp); }
    else {
     
$mess "Connection parameters wrong. Source <b>".$shoutcast_ip[$s]."</b> not kicked.";
     
$col  "red"; } 

   echo 
"<table width=\"400\" cellpadding=\"2\">
     <tr>
      <td width=\"100%\" bgcolor=\"
$col\"><font size=\"2\"><b>Notice</b></font></td>
     </tr>
     <tr>
      <td width=\"100%\" bgcolor=\"white\" height=\"60\"><font size=\"2\">
$mess</font></td>
     </tr>
    </table><br>"
;
  } 
// END FOR
  
echo "<meta http-equiv=refresh content=4;URL=".$_SERVER['PHP_SELF']."?id=$id>";
 }  
}

?>

<li><font size="2"><b>Service description</b><br>This service is used to kick DJ via webclient</font>

<li><font size="2"><b>Source details</b></font><br>
<?php
 $fp 
= @fsockopen($shoutcast_ip[$id], $shoutcast_port[$id], &$errno, &$errstr$timeout);
 if(
$fp) {
  
fputs($fp,"GET /admin.cgi?pass=".$shoutcast_password[$id]." HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
  while(!
feof($fp)) { $cont .= fgets($fp128); }
  
$cont strip_tags($cont);
  if(
ereg("Power Jammin' Radio is currently down"$cont)) { echo "<font size=\"2\"><font color=\"red\">Power Jammin' Radio is down/</font> >> Kickin' source has <b>no</b> effect</font>"; }
  elseif(
ereg("Server is currently up"$cont)) { echo "<font size=\"2\"><font color=\"green\">Station is Live!</font> >> Kickin' On Air DJ has effect</font>"; }
  else { echo 
"<font size=\"2\" color=\"red\">Unknown server/source status</font>"; }
   }
 else  echo 
"<font size=\"2\" color=\"red\"></font>";
?>



<li><font size="2"><b>Kick the On Air DJ Now!</b><br>Enter password and click "Kick the On Air DJ Now!" to Kick the On Air DJ:</font><br>

<form method="post" style="margin: 0px;">
<input type="hidden" name="id" value="<? echo $id?>">
<input type="checkbox" name="kick_all" value="true" checked style="border: 1px solid black;"><font size="1">Kick the On Air DJ Now!</font><br>
<input type="password" name="password_kick" style="border: 1px solid black;">
<input type="submit" value=">> Kick the On Air DJ Now!" name="send" style="border: 1px solid black;">
</form>
</body>

</html>

Last edited by drgroove : January 3rd, 2010 at 12:11 AM. Reason: added php tags

Reply With Quote
  #4  
Old January 3rd, 2010, 12:12 AM
drgroove's Avatar
drgroove drgroove is offline
Moderator Emeritus
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Feb 2002
Location: Scottsdale, AZ
Posts: 7,174 drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Days 23 h 53 m 36 sec
Reputation Power: 2131
Maybe it's me, and I'm getting old, but I still have no idea what "kick source" is.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Kick Source Script for windows audio

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap