[ previous ] [ next ] [ threads ]
 From:  Peter <peter at iwebsl dot com>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  Re: [m0n0wall] Captive portal - time based access
 Date:  Sat, 17 Sep 2005 19:38:32 -0400
I'm wondering if one of the team leaders can add these to the beta for testing.

On Fri, 16 Sep 2005 18:15:59 +0200, Carsten Holbach wrote:
> Carsten Holbach wrote:
>> Hello everybody
>> I am looking for an option to use the m0n0wall in a lanparty
>> environment, where I want to restrict the internet access to the
>> visitors with the captive portal, but based on the time of the day
>> rather than just by the date. I want to say: "Okay you may access
>> the
>> internet with thisandthat username/password until 8.00pm". Is this
>> possible, if not: Is there a known modification or something to do
>> this? If not, too, maybe that's a nice feature to have?
> So I did the work myself and changed the code to support the time
> for
> expiring accounts in the local user manager of the captive portal. I
> have tested it and it works.
> I have found two places in the code where expired accounts are
> erased:
> services_captiveportal_users.php and
> services_captiveportal_users_edit.php. If somebody knows additional
> places, please let me know!
> Feel free to test it yourself or to put it into the images. I have
> marked all lines I changed with "// Change to times-based access:"
> The files that have been changed are the following:
> /usr/local/www/services_captiveportal_users.php
> /usr/local/www/services_captiveportal_users_edit.php
> /usr/local/captiveportal/index.php
> The files are attached to this mail. You can upload the files with
> /exec.php, then copy them to the directories they have to be placed
> in.
> Feedback appreciated.
> Greetings
> Carsten