Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 14th February 2008, 18:11   #1
Un Area
Junior Member
 
Join Date: Dec 2006
Location: Buenos Aiers, Argentina
Posts: 11
Send a message via ICQ to Un Area Send a message via AIM to Un Area Send a message via Yahoo to Un Area
Making a Shoutcast PHP Control Panel (need help with php problem)

Im making a php script to manage shoutcast servers remotelly but I´m facing a problem when kicking users.

Inside the panel there is a cell that when you click on "Kick" you kick the listener. It´s working fine, but instead of refreshing the panel itself, it send me to the shoutcast administration panel in the server.

<td><a href=\"http://xx.xx.xx.xx:xxxx/admin.cgi?mode=kickdst&kickdst=".$listeners[$i]["pointer"]."\">Kick</a></td>

(the x represents the ip and port)

Do you know how to execute the action and refresh the panel page instead of going to the default shoutcast administration panel.

I tried with some onclick=refresh() but no success.

Help will be grateful!

Thanks!

Diego
Un Area is offline   Reply With Quote
Old 20th February 2008, 09:23   #2
Un Area
Junior Member
 
Join Date: Dec 2006
Location: Buenos Aiers, Argentina
Posts: 11
Send a message via ICQ to Un Area Send a message via AIM to Un Area Send a message via Yahoo to Un Area
anyone could help me?
Un Area is offline   Reply With Quote
Old 20th February 2008, 23:43   #3
LCR1610AM
Senior Member
 
Join Date: Oct 2007
Location: PNW (Langley,Wa) 40 m N from Seattle Wa.
Posts: 108
you need to gain admin privlige
to use the kick feature would be my first guess or the starting point.
PHP Code:
$scpass =   "shout_cast_password";  // admin password 

LCR1610AM & KWPA 103.1 FM
Radio Tech
on ShoutCast search for (Local Radio & Music)
http://ww2.whidbey.net/lcr1610am

Most computer errors happen between the keyboard & the chair!
LCR1610AM is offline   Reply With Quote
Old 20th February 2008, 23:46   #4
Tom
Moderator
 
Join Date: Apr 2000
Posts: 4,491
You need to use php to connect (fsockopen) to the DNAS web interface and kick the listener not use a hyperlink.

Tom

Tom is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump