diff options
author | Charlie <root@testfbsd8.localdomain> | 2009-06-13 17:24:28 +0000 |
---|---|---|
committer | Charlie <root@testfbsd8.localdomain> | 2009-06-13 17:24:28 +0000 |
commit | 336e3c1cabef46d5825bb0540a6715dff86450e7 (patch) | |
tree | 3b831086004d35bb0abdf9b81605a4ced7d4fb80 /usr/local/www/services_captiveportal.php | |
parent | 67115722ccd3a0c0d40c5ac70cdce079ff02c6ab (diff) | |
download | pfsense-336e3c1cabef46d5825bb0540a6715dff86450e7.zip pfsense-336e3c1cabef46d5825bb0540a6715dff86450e7.tar.gz |
Port voucher login ability on CaptivePortal from M0n0Wall.
Various locking fixes are done with the import and this means that as of now pfSense has a better performin/behaving CP than m0n0wall.
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-x | usr/local/www/services_captiveportal.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php index f0d8b24..93961a5 100755 --- a/usr/local/www/services_captiveportal.php +++ b/usr/local/www/services_captiveportal.php @@ -264,6 +264,7 @@ function enable_change(enable_change) { $tab_array[] = array("Captive portal", true, "services_captiveportal.php"); $tab_array[] = array("Pass-through MAC", false, "services_captiveportal_mac.php"); $tab_array[] = array("Allowed IP addresses", false, "services_captiveportal_ip.php"); + $tab_array[] = array("Vouchers", false, "services_captiveportal_vouchers.php"); $tab_array[] = array("File Manager", false, "services_captiveportal_filemanager.php"); display_top_tabs($tab_array); ?> </td></tr> @@ -558,12 +559,13 @@ value="<?=htmlspecialchars($pconfig['radiuskey2']);?>"></td> <?php endif; ?> Upload an HTML file for the portal page here (leave blank to keep the current one). Make sure to include a form (POST to "$PORTAL_ACTION$") with a submit button (name="accept") and a hidden field with name="redirurl" and value="$PORTAL_REDIRURL$". -Include the "auth_user" and "auth_pass" input fields if authentication is enabled, otherwise it will always fail. +Include the "auth_user" and "auth_pass" and/or "auth_voucher" input fields if authentication is enabled, otherwise it will always fail. Example code for the form:<br> <br> <tt><form method="post" action="$PORTAL_ACTION$"><br> <input name="auth_user" type="text"><br> <input name="auth_pass" type="password"><br> + <input name="auth_voucher" type="text"><br> <input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$"><br> <input name="accept" type="submit" value="Continue"><br> </form></tt></td> |