|
|
#1 |
|
Junior Member
Join Date: Apr 2006
Posts: 1
|
"Kick Source" script
Hi folks,
i've coded a tiny script for sb. to kick the source of (unlimited) SHOUTcast servers. this is useful if you've got several djs streaming via the same server. perhaps some shoutcast users may profit from this script, too. features: - password protection - xtra password protection to kick source - view status of selected server - kick source easily - unlimited servers supported requires: - php 4/5 tested with: - php 5 (xampp localhost) configuration: - type in var. values for user/pw - enter servers and paramters in arrays PHP Code:
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Oct 2007
Posts: 102
|
Anyone managed to get this script working ?
it seems to get stuck on the login section, i think it mught have something to do with the following line but i could be wrong.... if($_SERVER['PHP_AUTH_USER'] != "$login_user" || $_SERVER['PHP_AUTH_PW'] != "$login_password") { |
|
|
|
|
|
#3 |
|
Junior Member
|
Not working
When the user name is user and password is 1234 and when I change it to something else it stops working.
Can somone PLEASE tell me why? DJ Mikey |
|
|
|
|
|
#4 |
|
Member
|
I'll share my Perl Version for you guys. Its much simpler.
#!/usr/bin/perl use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; $ua->agent(Mozilla); $pass="tranceistotallygay"; $host="localhost"; $port="8666"; my $response = $ua->get("http://$host:$port/admin.cgi?pass=$pass&mode=kicksrc"); if ($response->is_success) { print $response->decoded_content; # or whatever } else { die $response->status_line; } That'll kick my live dj currently connected. Its not as robust as the above script but works well for me. hope it helps. |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Oct 2008
Posts: 104
|
This kicks them from the DNAS, right? I'm really looking for something to kick them from sc_trans (the new beta is NICE!).
|
|
|
|
|
|
#6 |
|
Member
|
yes, mine kicks them from the DNAS.. I only use the sc_trans as a media player. I intergrated VLC into my server so I can do mpg/flash video streaming. sorry I wasn't clear about how my script works. =)
|
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Oct 2008
Posts: 104
|
That's okay.
I have our resident codemonkey working on a way to kick from sc_trans, but it's taking time.
|
|
|
|
|
|
#8 |
|
Junior Member
|
I got it working (kick page)
Hi
For some really odd reason it wont work on my server ( http://eastsidehosting.com ) but its a shared server and I put it on my home server and it worked just fine. I am not sure WHY. Maybe someone has some insight why this is? The only port I have open is port 80 for the web server. If somone has a idea why this is working please let me know. Michael |
|
|
|
|
|
#9 |
|
Junior Member
|
Windows Media (audio) kick source
Do ANYONE know how to make a Windows Media (audio) kick source????
We have one for shoutcast but we cant find one for windows media streaming (audio) Dose such thing exist??? Michael |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Dec 2003
Location: Saarland, Germany
Posts: 331
|
You can`t kick a source on a windows media server.
There are too many ways get your data here (push, get, file, rebroadcast,...) greets, Michael TechnoBase.FM | HouseTime.FM | HardBase.FM | TranceBase.FM | CoreTime.FM | We aRe oNe |
|
|
|
|
|
#11 | |
|
Senior Member
Join Date: Dec 2003
Location: Saarland, Germany
Posts: 331
|
Quote:
Its not designed to support DJs. Its designed to get data from external sources like encoders (push or pull), directorys (files), multicast streams, or special playlists. If you want to change an specific source, you have to delete the publishing point and create a new one with the same name. You can`t do this via an script and listeners will be disconnected if you delete a publishing point. greets, Michael TechnoBase.FM | HouseTime.FM | HardBase.FM | TranceBase.FM | CoreTime.FM | We aRe oNe |
|
|
|
|
|
|
#12 |
|
Junior Member
|
Windows Media (audio) kick source
I've found a service that dose what I wanted done. Thay are in the UK but thay have US servers.
http://streamsolutions.co.uk I would even say thay have GREAT prices |
|
|
|
|
|
#13 | |
|
Moderator
Join Date: Nov 2004
Location: Streamsolutions Headquarters
Posts: 11,956
|
Quote:
This with now playing stats makes windows a viable option for dj use ![]() but this is a shoutcast forum and not a windows media forum
|
|
|
|
|
|
|
#14 |
|
Junior Member
|
Windows Media (audio) kick source
Well well I couldn't FIND a windows media forum
|
|
|
|
|
|
#15 |
|
Moderator
Join Date: Nov 2004
Location: Streamsolutions Headquarters
Posts: 11,956
|
Thats why what we do is so "special"
|
|
|
|
|
|
#16 | |
|
Senior Member
Join Date: Dec 2003
Location: Saarland, Germany
Posts: 331
|
Quote:
There aren't many programs you can use to stream music to a WMS-Server and everyone in this forum needs everything for free Back to the roots ... this are SHOUTcast forums and nothing else... greets, Michael TechnoBase.FM | HouseTime.FM | HardBase.FM | TranceBase.FM | CoreTime.FM | We aRe oNe |
|
|
|
|
|
|
#17 | |
|
Moderator
Join Date: Nov 2004
Location: Streamsolutions Headquarters
Posts: 11,956
|
Quote:
LOL
|
|
|
|
|
|
|
#18 |
|
Junior Member
Join Date: Aug 2011
Posts: 1
|
anyone ever get this working?
|
|
|
|
|
|
#19 |
|
Junior Member
Join Date: May 2011
Posts: 22
|
thank you so much its working fine some time orginal kick system say busy try 4 sec but with this script problem solved thanks we are working everyday it
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|