2015-04-24 - Re: temporary disable button for free login

Header Data

From: Michael Raynor <mx***1@gmail.com>
Message Hash: 7f936a3817bca75db6922d5e2795f0a407abed5854b2b659a492c2ea5e48d7e5
Message ID: <91308854-a3da-46d0-bc78-43b69fc00fe4@grasehotspot.org>
Reply To: <062f43d7-9ff0-4c1a-af5f-7c1495876cb6@grasehotspot.org>
UTC Datetime: 2015-04-24 17:04:25 UTC
Raw Date: Fri, 24 Apr 2015 17:04:25 -0700

Raw message

Hi Dave,

Attached are the files for a simple web app (separate to Grase) to Toggle 
the Free Access on and off.

It talks directly to the radmin database and either sets autocreategroup or 
clears it

Enable Free Access -> "UPDATE settings SET value='Free' WHERE 
setting='autocreategroup'"

Disable Free Access -> "UPDATE settings SET value='' WHERE 
setting='autocreategroup'"

Lots can be improved, but you can use something like the two URLs below to 
toggle the setting

http://SERVER-URL/setfree.php?key=SECRET-KEY&free=enable
http://SERVER-URL/setfree.php?key=SECRET-KEY&free=disable

This should work if you wanted to bind two buttons on an IP Phone to toggle 
the setting - as these need to be GET requests.

Hope this helps if others want something similar, and hopefully in the 
future it could be re-factored in the project.

Michael

On Friday, 17 April 2015 20:43:58 UTC+10, dave wrote:
>
> Hi 
>
> Is it possible to add a "Disable" checkbox for the free login account. 
> We want the wifi free some of the time but not all of the time. 
>
> We now have it setup, and it seems to be working fine but I can't 
> temporarily disable it without deleting the group altogether. 
> It would be great if I could leave it setup and just check on the "Disable 
> Checkbox" 
>
>
> Dave 
>

Thread