2013/2/2 Alexander <[email protected]>:
> Hello,
Hi!
> Is it possible to allow deejays login with their credentionals from the
> website through harbour? I had a couple questions regarding that:
>
> 1) It is possible using external script (written in php or smth similar),
> that will check their credentionals, permissions and then allow or disallow
> their authentication?
> as i see input.harbor has "auth" parameter, a function. Is it possible?
Yup. This auth function can invoke a custom script of yours, something like:
def auth(user, login) =
list.hd(get_process_lines("/path/to/auth.php #{user} #{password}")) == "true"
end
> 2) Is it possible to kick deejay from harbour, when it is streaming
> something? It could be very useful to do this if next deejay should play on
> a station next hour, and previous deejay did not disconnected.
You should be able to do that by trrigering:
<harbor>.kick
in telnet/server.
However, the best in this case could be that you design a switch that
would select your new DJ when his time comes..
Romain
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users