[icecast] php script for listener count and www admin interface password

Marco Alanen marco at sbg.se
Wed Mar 12 10:11:18 UTC 2003



On Wed, 12 Mar 2003 04:01:33 -0500
pharkawik at hampshire.edu wrote:

> yes.. but can anybody tell me how to pull a simple listener count out 
> of that page with php?
> 
> also still don't know how to figure out that HTTP user/pass problem... 
> there is NOTHING about it in the docs or online

You need to find and edit mountlist.html, where you can enter some
commands with @COMMAND at . To get the current ammount of listeners, simply
write @LISTENERS@, or to make it a little more interesting:
@LISTENERS@/@MAXLISTENERS@
Regarding that admin page.. I've changed it so I've whitelisted a few
IP's (126.1.120.*, my internal ones) in icecast.conf. The access control is
at the bottom of that list. Here is what I have:

acl_policy 0
allow all 126.1.120.*
allow all 127.0.0.1 *
allow client *

 /Marco

----------------------------
Embedded RT System Developer

Marco Alanen                 
Svensk ByggnadsGeodesi AB   
Kvarnbergsvägen 27          
141 45  HUDDINGE            
SWEDEN

Phone: +46 (0)8 7112090
Fax: +46 (0)8 7112098
Homepage: http://www.sbg.se
E-mail: marco at sbg.se
----------------------------
--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list