Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | PHP says that arrays cannot be used as keys, protect against this case as ↵ | Ermal | 2011-06-15 | 1 | -2/+6 |
| | | | | reported that some keys are arrays! | ||||
* | Restore this back to allow both users and vouchers enabled at same time. | Ermal | 2011-06-15 | 1 | -1/+1 |
| | |||||
* | Do not call time() uselessly every time for each entry. Instead just ↵ | Ermal | 2011-06-13 | 1 | -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 ↵ | Ermal | 2011-06-13 | 1 | -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 ↵ | Ermal | 2011-06-10 | 1 | -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 ↵ | Ermal | 2011-06-07 | 1 | -2/+2 |
| | | | | index the read db by the field in the db. | ||||
* | Correct variable name so voucher disconnect on synchronized vouchers works ↵ | Ermal | 2011-06-07 | 1 | -1/+1 |
| | | | | properly. | ||||
* | Correct possible lock leak. | Ermal | 2011-06-06 | 1 | -5/+2 |
| | |||||
* | Fix whitespace. | Ermal | 2011-06-06 | 1 | -19/+19 |
| | |||||
* | Just use the long reference here instead of creating potential dangerous ↵ | Ermal | 2011-05-26 | 1 | -6/+5 |
| | | | | reference. | ||||
* | If the bandwidth value is coming from radius scale it up to the requested ↵ | Ermal | 2011-04-21 | 1 | -2/+2 |
| | | | | Kbit/s unit. | ||||
* | Make sure that there is a value before using it as a redirection. | Ermal | 2011-03-25 | 1 | -1/+1 |
| | |||||
* | Make the two default page codes similar in regarding to redirurl in hope ↵ | Ermal | 2011-03-25 | 1 | -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 ↵ | Ermal | 2011-03-25 | 1 | -76/+2 |
| | | | | active when default provided forms are used. | ||||
* | Try to not stomp rule to each other. Reported-by: ↵ | Ermal | 2011-03-24 | 1 | -1/+1 |
| | | | | http://forum.pfsense.org/index.php/topic,34787.msg180186.html#msg180186 | ||||
* | Correct wrong comment. | Ermal | 2011-03-24 | 1 | -1/+1 |
| | |||||
* | Fix voucher disconnect sync issue | Scott Ullrich | 2011-03-23 | 1 | -0/+11 |
| | |||||
* | Make sure we have an ip to kill sessions from. | Ermal | 2011-03-15 | 1 | -10/+11 |
| | |||||
* | Make sure we do not write stale data during prunning periods. | Ermal | 2011-03-12 | 1 | -6/+10 |
| | |||||
* | Use foreach here to be sure we do not reference unexisting results. | Ermal | 2011-03-08 | 1 | -42/+41 |
| | |||||
* | Oops more make code correct. | Ermal | 2011-03-04 | 1 | -2/+2 |
| | |||||
* | Oops make code correct. | Ermal | 2011-03-04 | 1 | -1/+1 |
| | |||||
* | * Prevent concurrent logins on CP to not be recorded on the DB. | Ermal | 2011-03-04 | 1 | -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 Ullrich | 2011-02-25 | 1 | -1/+1 |
| | |||||
* | missing $ | Scott Ullrich | 2011-02-25 | 1 | -1/+1 |
| | |||||
* | misc whitespace cleanups | Scott Ullrich | 2011-02-25 | 1 | -3/+1 |
| | |||||
* | Move all functions from index.php for captiveportal.inc | lgcosta | 2011-02-22 | 1 | -1/+412 |
| | |||||
* | log when CP is restarted. ticket #1278 | Chris Buechler | 2011-02-20 | 1 | -1/+3 |
| | |||||
* | There is no need to call the script to reconfigure CP here. Even more when ↵ | Ermal | 2011-02-10 | 1 | -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 Ullrich | 2011-02-07 | 1 | -5/+5 |
| | | | | process to use the pid name cp-prunedb.pid | ||||
* | Do not launch multiple copies of the captive portal database pruner. | Scott Ullrich | 2011-02-07 | 1 | -0/+4 |
| | |||||
* | Note reinit will disconnect folks | Scott Ullrich | 2011-02-02 | 1 | -0/+1 |
| | |||||
* | Correctly grab the hostname from config for filterdns. | Ermal | 2011-02-02 | 1 | -4/+4 |
| | |||||
* | Ups actually single quotes are needed when / is the first char of a command. ↵ | Ermal | 2011-01-26 | 1 | -4/+4 |
| | | | | Requirment enforced by the parser. | ||||
* | Remove last references to dnswatch. | Ermal | 2011-01-26 | 1 | -2/+2 |
| | |||||
* | Switch to filterdns new and shiny for taking care of dns in CP. | Ermal | 2011-01-26 | 1 | -9/+13 |
| | |||||
* | Transform PORTAL_REDIRURL variable | Scott Ullrich | 2011-01-25 | 1 | -0/+8 |
| | |||||
* | remove single quotes | Scott Ullrich | 2011-01-25 | 1 | -1/+1 |
| | |||||
* | Brute force dnswatch kill if needed | Scott Ullrich | 2011-01-25 | 1 | -0/+2 |
| | |||||
* | Launch dnswatch correctly. | Scott Ullrich | 2011-01-25 | 1 | -2/+2 |
| | |||||
* | Allowed hostname is now working. Make bw up and down checks a bit more ↵ | Scott Ullrich | 2011-01-25 | 1 | -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 Ullrich | 2011-01-25 | 1 | -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 Ullrich | 2011-01-25 | 1 | -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 Ullrich | 2011-01-25 | 1 | -0/+31 |
| | |||||
* | Reformat file. VIM needs to die a flaming death. | Scott Ullrich | 2011-01-25 | 1 | -373/+370 |
| | |||||
* | Ticket #1128. Ooops pass the right parameter to unlock. | Ermal | 2010-12-23 | 1 | -3/+3 |
| | |||||
* | Nuke trailing carriage returns | Scott Ullrich | 2010-12-22 | 1 | -1/+1 |
| | |||||
* | Make the CP locking more granular and make use correctly of exclusive/shared ↵ | Ermal | 2010-12-22 | 1 | -107/+93 |
| | | | | locks where appripriate. This speeds up CP login process. | ||||
* | * Use exclusive locking for parts of config involving CP db. | Ermal | 2010-12-22 | 1 | -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-p | 2010-12-14 | 1 | -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. |