[Chilli] RADIUS based way to set the per session

Danny Magat danny at sb-ps.ae
Wed Jan 16 08:17:49 UTC 2013


Yes inject url per user wherein the URL is coming from the radius reply.


-----Original Message-----
From: Jed Gainer [mailto:jedgainer at gmail.com] 
Sent: Wednesday, January 16, 2013 8:11 AM
To: Danny Magat
Subject: Re: [Chilli] RADIUS based way to set the per session

I am not sure what you mean. Inject per user you mean?

    $.getJSON("http://10.1.0.1:3990/json/status?callback=?",
function(chilli) {
        console.log(chilli);
        if ($.inArray(chilli.session.userName, ['Cyndy', 'Chris']) != -1)
        {
            var addHeight =
(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent))
? 60 : 40;
            $('body').height($('body').height() + addHeight);
            $('body').append('<div style="position: fixed; bottom: 0;
left: 0; right: 0; height: ' + addHeight + 'px; border-top: 2px solid
#000; background-color: #fff"><iframe style="border: 0; width: 99%"
src="http://10.1.0.1/toolbar.php"></iframe></div>');
        }
    });

On Tue, Jan 15, 2013 at 6:07 AM, Danny Magat <danny at sb-ps.ae> wrote:
> Dear All,
>
>
>
> http://coova.org/node/4788#comment-9802
>
>
>
> Based on the above links by David there is a way on how to inject-URL per
> session.
>
> Can somebody guide me on how to achieve this.
>
>
>
> Thanks in Advance.
>
> Danny
>
>
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
>



More information about the Chilli mailing list