summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
Commit message (Collapse)AuthorAgeFilesLines
* PHP says that arrays cannot be used as keys, protect against this case as ↵Ermal2011-06-151-2/+6
| | | | reported that some keys are arrays!
* Restore this back to allow both users and vouchers enabled at same time.Ermal2011-06-151-1/+1
|
* Do not call time() uselessly every time for each entry. Instead just ↵Ermal2011-06-131-7/+16
| | | | snapshot it and use it in calculations. This helps performance and useless paranoic time fetching since every 60 seconds the code will be executed again.
* Do not test for availbility of voucher session_timeout in the database it is ↵Ermal2011-06-131-1/+1
| | | | mandatory for vouchers. This will make sure that if ever a corrupted db happens a user will be required to relogin and correct the db. Possibly related to: http://forum.pfsense.org/index.php/topic,37636.0.html
* Fixes #1327. Trigger synching of vouchers to config through ↵Ermal2011-06-101-0/+6
| | | | check_reload_status. Retire the saveinterval option since it is not useful anymore. Use the prune process of captiveportal to sync vouchers as well to fix issues as reported-by: http://forum.pfsense.org/index.php/topic,37636.0.html
* Allow a second optional argument to captiveportal_read_db to be able to ↵Ermal2011-06-071-2/+2
| | | | index the read db by the field in the db.
* Correct variable name so voucher disconnect on synchronized vouchers works ↵Ermal2011-06-071-1/+1
| | | | properly.
* Correct possible lock leak.Ermal2011-06-061-5/+2
|
* Fix whitespace.Ermal2011-06-061-19/+19
|
* Just use the long reference here instead of creating potential dangerous ↵Ermal2011-05-261-6/+5
| | | | reference.
* If the bandwidth value is coming from radius scale it up to the requested ↵Ermal2011-04-211-2/+2
| | | | Kbit/s unit.
* Make sure that there is a value before using it as a redirection.Ermal2011-03-251-1/+1
|
* Make the two default page codes similar in regarding to redirurl in hope ↵Ermal2011-03-251-1/+1
| | | | that when one voucher login succeeds it redirects to the url submmitted.
* Display the correct error page if vouchers are active or if normal CP is ↵Ermal2011-03-251-76/+2
| | | | active when default provided forms are used.
* Try to not stomp rule to each other. Reported-by: ↵Ermal2011-03-241-1/+1
| | | | http://forum.pfsense.org/index.php/topic,34787.msg180186.html#msg180186
* Correct wrong comment.Ermal2011-03-241-1/+1
|
* Fix voucher disconnect sync issueScott Ullrich2011-03-231-0/+11
|
* Make sure we have an ip to kill sessions from.Ermal2011-03-151-10/+11
|
* Make sure we do not write stale data during prunning periods.Ermal2011-03-121-6/+10
|
* Use foreach here to be sure we do not reference unexisting results.Ermal2011-03-081-42/+41
|
* Oops more make code correct.Ermal2011-03-041-2/+2
|
* Oops make code correct.Ermal2011-03-041-1/+1
|
* * Prevent concurrent logins on CP to not be recorded on the DB.Ermal2011-03-041-90/+83
| | | | | | | * Make the locking more complex to avoid locking exclusively during pruning task which would hurt a lot CP performance. * Retire the disconnect_client and make all the disconnect functions use the sessionid as identifier. All this was triggered by: http://forum.pfsense.org/index.php/topic,33879.0.html
* missing $Scott Ullrich2011-02-251-1/+1
|
* missing $Scott Ullrich2011-02-251-1/+1
|
* misc whitespace cleanupsScott Ullrich2011-02-251-3/+1
|
* Move all functions from index.php for captiveportal.inclgcosta2011-02-221-1/+412
|
* log when CP is restarted. ticket #1278Chris Buechler2011-02-201-1/+3
|
* There is no need to call the script to reconfigure CP here. Even more when ↵Ermal2011-02-101-4/+4
| | | | it breaks all kind of things.
* minicron is now used on a number of items in the gui. tell the cp prune ↵Scott Ullrich2011-02-071-5/+5
| | | | process to use the pid name cp-prunedb.pid
* Do not launch multiple copies of the captive portal database pruner.Scott Ullrich2011-02-071-0/+4
|
* Note reinit will disconnect folksScott Ullrich2011-02-021-0/+1
|
* Correctly grab the hostname from config for filterdns.Ermal2011-02-021-4/+4
|
* Ups actually single quotes are needed when / is the first char of a command. ↵Ermal2011-01-261-4/+4
| | | | Requirment enforced by the parser.
* Remove last references to dnswatch.Ermal2011-01-261-2/+2
|
* Switch to filterdns new and shiny for taking care of dns in CP.Ermal2011-01-261-9/+13
|
* Transform PORTAL_REDIRURL variableScott Ullrich2011-01-251-0/+8
|
* remove single quotesScott Ullrich2011-01-251-1/+1
|
* Brute force dnswatch kill if neededScott Ullrich2011-01-251-0/+2
|
* Launch dnswatch correctly.Scott Ullrich2011-01-251-2/+2
|
* Allowed hostname is now working. Make bw up and down checks a bit more ↵Scott Ullrich2011-01-251-1/+5
| | | | strict using intval() and comparing >0. Fix bw and upload checks allowing either to be set.
* Allowed hostname is now working. Make bw up and down checks a bit more ↵Scott Ullrich2011-01-251-13/+19
| | | | strict using intval() and comparing >0. Fix bw and upload checks allowing either to be set.
* Adding preliminary version of allowed hostnames. Allowed hostnames function ↵Scott Ullrich2011-01-251-11/+14
| | | | similar to allowed IP addresses and permit the captive portal to pass traffic out. An example usage of this is to allow access to a hotel web page freely and then require authentcation hotlinking from this point.
* Fix formatting. Die, VIM, DIE!Scott Ullrich2011-01-251-0/+31
|
* Reformat file. VIM needs to die a flaming death.Scott Ullrich2011-01-251-373/+370
|
* Ticket #1128. Ooops pass the right parameter to unlock.Ermal2010-12-231-3/+3
|
* Nuke trailing carriage returnsScott Ullrich2010-12-221-1/+1
|
* Make the CP locking more granular and make use correctly of exclusive/shared ↵Ermal2010-12-221-107/+93
| | | | locks where appripriate. This speeds up CP login process.
* * Use exclusive locking for parts of config involving CP db.Ermal2010-12-221-38/+40
| | | | | | * Use more strict checking against empty/not set values for timeout and idletimeout * Do not overwrite idletimeout value with the per user idletimeout value during processing * Make distinction between radius accounting and re-authentication with radius to allow the code to be executed correctly. Ticket #1013
* Revert "Add voucher backup, configurable from Diagnostics > NanoBSD. Fixes ↵jim-p2010-12-141-14/+1
| | | | | | #1087" - voucher db backup already existed under a different name. Ticket is still fixed, just by different code that was already there. This reverts commit 0d89a2fcac3deea06bdc4a481bbdfae4f18b1ff8.
OpenPOWER on IntegriCloud