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:
jim-p 2017-06-14 10:28:21 -04:00
parent 4122033534
commit d0dab7f6d5

View File

@ -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");