diff options
author | jim-p <jimp@pfsense.org> | 2017-06-14 10:28:21 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-06-14 10:30:33 -0400 |
commit | bf55e97770283824491a89caaae1856a08a9cd72 (patch) | |
tree | c2a6c97106fbddb54a7ca96a43b68eb86257a662 /src/usr/local/www/services_captiveportal.php | |
parent | aa18c5b9b62e110ebf88fbb24c39c2a13813bd89 (diff) | |
download | pfsense-bf55e97770283824491a89caaae1856a08a9cd72.zip pfsense-bf55e97770283824491a89caaae1856a08a9cd72.tar.gz |
Restore the captive portal feature to view the captive portal page directly from the portal web server. Add this as an additional button so both methods are possible. Fixes #7646
Diffstat (limited to 'src/usr/local/www/services_captiveportal.php')
-rw-r--r-- | src/usr/local/www/services_captiveportal.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php index 52b228f..eb6613a 100644 --- a/src/usr/local/www/services_captiveportal.php +++ b/src/usr/local/www/services_captiveportal.php @@ -1084,8 +1084,15 @@ if ($pconfig['httpslogin_enable']) { if ($pconfig['page']['htmltext']) { $group = new Form_Group('Current Portal Page'); $group->add(new Form_Button( + 'btnliveview', + 'Live View', + $href, + 'fa-file-text-o' + ))->addClass('btn btn-info btn-xs')->setAttribute("target", "_blank"); + + $group->add(new Form_Button( 'btnview', - 'View', + 'View Page Contents', '?zone=' . $cpzone . '&act=viewhtml', 'fa-file-text-o' ))->addClass('btn btn-info btn-xs')->setAttribute("target", "_blank"); @@ -1119,7 +1126,7 @@ if ($pconfig['page']['errtext']) { $group = new Form_Group('Current Auth Error Page'); $group->add(new Form_Button( 'btnview', - 'View', + 'View Page Contents', '?zone=' . $cpzone . '&act=viewerrhtml', 'fa-file-text-o' ))->addClass('btn btn-info btn-xs')->setAttribute("target", "_blank"); @@ -1151,7 +1158,7 @@ if ($pconfig['page']['logouttext']) { $group = new Form_Group('Current Logout Page'); $group->add(new Form_Button( 'btnview', - 'View', + 'View Page Contents', '?zone=' . $cpzone . '&act=viewlogouthtml', 'fa-file-text-o' ))->addClass('btn btn-info btn-xs')->setAttribute("target", "_blank"); |