mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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
This commit is contained in:
parent
4122033534
commit
d0dab7f6d5
@ -1126,9 +1126,16 @@ 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");
|
||||
@ -1162,7 +1169,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");
|
||||
@ -1194,7 +1201,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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user