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
- Return to April 2015
-
Return to May 2015
- Return to “dave <da***e@argyle.com.au>”
- Return to “ku***e@gmail.com”
- Return to “Michael Raynor <mx***1@gmail.com>”
- Return to “Vusumzi Ndzengu <nd***v@gmail.com>”
- Return to “Timothy White <ti***8@gmail.com>”
-
Return to “Edward Allen <yb***j@gmail.com>”
- 2015-04-17 (Fri, 17 Apr 2015 03:43:57 -0700) - temporary disable button for free login - dave <da***e@argyle.com.au>
- 2015-04-18 (Sat, 18 Apr 2015 09:51:28 -0500) - Re: [GRASE-Hotspot] temporary disable button for free login - Edward Allen <yb***j@gmail.com>
- 2015-04-18 (Sat, 18 Apr 2015 18:19:26 +0200) - Re: [GRASE-Hotspot] temporary disable button for free login - Vusumzi Ndzengu <nd***v@gmail.com>
- 2015-04-24 (Fri, 24 Apr 2015 17:04:25 -0700) - Re: temporary disable button for free login - Michael Raynor <mx***1@gmail.com>
- 2015-04-24 (Sat, 25 Apr 2015 06:10:44 +0100) - How to delete multiple users/kickout - ku***e@gmail.com
- 2015-04-24 (Fri, 24 Apr 2015 22:31:14 -0700) - Re: How to delete multiple users/kickout - Michael Raynor <mx***1@gmail.com>
- 2015-04-25 (Sat, 25 Apr 2015 10:59:41 +0100) - Re: [GRASE-Hotspot] Re: How to delete multiple users/kickout - ku***e@gmail.com
- 2015-04-24 (Fri, 24 Apr 2015 22:31:14 -0700) - Re: How to delete multiple users/kickout - Michael Raynor <mx***1@gmail.com>
- 2015-05-28 (Fri, 29 May 2015 14:01:51 +1000) - Re: [GRASE-Hotspot] Re: temporary disable button for free login - Timothy White <ti***8@gmail.com>
- 2015-05-28 (Thu, 28 May 2015 22:56:58 -0700) - Re: [GRASE-Hotspot] Re: temporary disable button for free login - Michael Raynor <mx***1@gmail.com>
- 2015-04-24 (Sat, 25 Apr 2015 06:10:44 +0100) - How to delete multiple users/kickout - ku***e@gmail.com
- 2015-04-18 (Sat, 18 Apr 2015 09:51:28 -0500) - Re: [GRASE-Hotspot] temporary disable button for free login - Edward Allen <yb***j@gmail.com>