diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-01-25 13:09:29 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-01-25 13:09:29 -0500 |
commit | e0f1a8d6ec0469aebc263f17b8a0e7688e786d33 (patch) | |
tree | b9aff299ed7083800baa42beddf4a5a73211ba74 /usr/local | |
parent | 75d12406a03c2d8b0ec9d6ae52f7446fdef1ad8f (diff) | |
download | pfsense-e0f1a8d6ec0469aebc263f17b8a0e7688e786d33.zip pfsense-e0f1a8d6ec0469aebc263f17b8a0e7688e786d33.tar.gz |
Adding CP pre-authentication redirect URL box
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/services_captiveportal.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php index 89dfa80..cfcc356 100755 --- a/usr/local/www/services_captiveportal.php +++ b/usr/local/www/services_captiveportal.php @@ -82,7 +82,7 @@ $pconfig['radmac_secret'] = $config['captiveportal']['radmac_secret']; $pconfig['reauthenticate'] = isset($config['captiveportal']['reauthenticate']); $pconfig['reauthenticateacct'] = $config['captiveportal']['reauthenticateacct']; $pconfig['httpslogin_enable'] = isset($config['captiveportal']['httpslogin']); -$pconfig['httpsname'] = strtolower($config['captiveportal']['httpsname']); +$pconfig['preauthurl'] = strtolower($config['captiveportal']['preauthurl']); $pconfig['cert'] = base64_decode($config['captiveportal']['certificate']); $pconfig['cacert'] = base64_decode($config['captiveportal']['cacertificate']); $pconfig['key'] = base64_decode($config['captiveportal']['private-key']); @@ -198,6 +198,7 @@ if ($_POST) { $config['captiveportal']['reauthenticateacct'] = $_POST['reauthenticateacct']; $config['captiveportal']['httpslogin'] = $_POST['httpslogin_enable'] ? true : false; $config['captiveportal']['httpsname'] = $_POST['httpsname']; + $config['captiveportal']['preauthurl'] = $_POST['preauthurl']; $config['captiveportal']['peruserbw'] = $_POST['peruserbw'] ? true : false; $config['captiveportal']['bwdefaultdn'] = $_POST['bwdefaultdn']; $config['captiveportal']['bwdefaultup'] = $_POST['bwdefaultup']; @@ -732,6 +733,13 @@ value="<?=htmlspecialchars($pconfig['radiuskey2']);?>"></td> </form></tt></td> </tr> <tr> + <td valign="top" class="vncell"><?=gettext("Pre-authentication redirect URL"); ?> </td> + <td class="vtable"> + <input name="preauthurl" type="text" class="formfld unknown" id="preauthurl" size="30" value="<?=htmlspecialchars($pconfig['preauthurl']);?>"><br> + <?php printf(gettext("Use this field to set \$PORTAL_REDIRURL\$ variable which can be accessed using your custom captive portal index.php page or error pages."));?> + </td> + </tr> + <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Authentication"); ?><br> <?=gettext("error page"); ?><br> <?=gettext("contents"); ?></td> |